Skip to content

Commit e3ad80d

Browse files
committed
feat(repo): update to i2c-ng driver
1 parent f67d061 commit e3ad80d

36 files changed

+680
-742
lines changed

.github/workflows/build_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
build:
1313
strategy:
1414
matrix:
15-
idf_ver: ["release-v5.1", "release-v5.2", "release-v5.3"]
16-
idf_target: ["esp32", "esp32s2", "esp32c3", "esp32s3"]
17-
runs-on: ubuntu-20.04
15+
idf_ver: ["release-v5.4", "release-v5.5"]
16+
idf_target: ["esp32", "esp32s2", "esp32c3", "esp32s3", "esp32c6", "esp32p4"]
17+
runs-on: ubuntu-latest
1818
container: espressif/idf:${{ matrix.idf_ver }}
1919
steps:
2020
- uses: actions/checkout@v3

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# ChangeLog
22

3+
## v2.0.0 - 2025-07-13
4+
5+
### Breaking Changes:
6+
7+
* break(repo): depend on esp-idf v5.4 or later (arduino-esp32 v3.2.0 or later)
8+
* break(repo): remove legacy header files and macros which are marked as deprecated
9+
* break(repo): support i2c-ng driver and not compatible with old i2c driver
10+
311
## v1.1.1 - 2025-07-07
412

513
### Enhancements:

CMakeLists.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,3 @@ idf_component_register(
1212
REQUIRES
1313
driver
1414
)
15-
16-
target_compile_options(${COMPONENT_LIB}
17-
PUBLIC
18-
-Wno-missing-field-initializers
19-
PRIVATE
20-
$<$<COMPILE_LANGUAGE:CXX>:-std=gnu++17>
21-
)

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
**Latest Espressif Component Version**: [![Espressif Release](https://components.espressif.com/components/espressif/esp32_io_expander/badge.svg)](https://components.espressif.com/components/espressif/esp32_io_expander)
66

7-
# ESP32_IO_Expander
7+
# ESP IO Expander
88

99
## Overview
1010

@@ -17,7 +17,7 @@
1717

1818
## Table of Contents
1919

20-
- [ESP32\_IO\_Expander](#esp32_io_expander)
20+
- [ESP IO Expander](#esp-io-expander)
2121
- [Overview](#overview)
2222
- [Table of Contents](#table-of-contents)
2323
- [Supported Drivers](#supported-drivers)
@@ -41,9 +41,9 @@
4141
| **Driver** | **Version** |
4242
| ---------------------------------------------------------------------------------------------------- | ----------- |
4343
| [esp_io_expander](https://components.espressif.com/components/espressif/esp_io_expander) | 1.0.1 |
44-
| [TCA95XX_8BIT](https://components.espressif.com/components/espressif/esp_io_expander_tca9554) | 1.0.1 |
45-
| [TCA95XX_16BIT](https://components.espressif.com/components/espressif/esp_io_expander_tca95xx_16bit) | 1.0.0 |
46-
| [HT8574](https://components.espressif.com/components/espressif/esp_io_expander_ht8574) | 1.0.0 |
44+
| [TCA95XX_8BIT](https://components.espressif.com/components/espressif/esp_io_expander_tca9554) | 2.0.1 |
45+
| [TCA95XX_16BIT](https://components.espressif.com/components/espressif/esp_io_expander_tca95xx_16bit) | 2.0.0 |
46+
| [HT8574](https://components.espressif.com/components/espressif/esp_io_expander_ht8574) | 2.0.0 |
4747
| CH422G | x |
4848

4949
## How to Use
@@ -52,10 +52,10 @@
5252

5353
#### Dependencies and Versions
5454

55-
| **Dependency** | **Version** |
56-
| ------------------------------------------------------------------ | -------------------- |
57-
| [esp-idf](https://github.com/espressif/esp-idf) | >= 5.1 |
58-
| [esp-lib-utils](https://github.com/esp-arduino-libs/esp-lib-utils) | >= 0.1.0 && <= 0.2.0 |
55+
| **Dependency** | **Version** |
56+
| ------------------------------------------------------------------ | ----------- |
57+
| [esp-idf](https://github.com/espressif/esp-idf) | >= 5.4 |
58+
| [esp-lib-utils](https://github.com/esp-arduino-libs/esp-lib-utils) | 0.2.* |
5959

6060
#### Adding to Project
6161

@@ -75,10 +75,10 @@ Since `ESP32_IO_Expander` depends on the `esp-lib-utils` library which implement
7575

7676
#### Dependencies and Versions
7777

78-
| **Dependency** | **Version** |
79-
| ------------------------------------------------------------------ | -------------------- |
80-
| [arduino-esp32](https://github.com/espressif/arduino-esp32) | >= v3.0.0 |
81-
| [esp-lib-utils](https://github.com/esp-arduino-libs/esp-lib-utils) | >= 0.1.0 && <= 0.2.0 |
78+
| **Dependency** | **Version** |
79+
| ------------------------------------------------------------------ | ------------------- |
80+
| [arduino-esp32](https://github.com/espressif/arduino-esp32) | >= v3.2.0 |
81+
| [esp-lib-utils](https://github.com/esp-arduino-libs/esp-lib-utils) | >= 0.2.0 && < 0.3.0 |
8282

8383
#### Installing the Library
8484

examples/ch422g/ch422g.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141

4242
#define EXAMPLE_I2C_SDA_PIN (8)
4343
#define EXAMPLE_I2C_SCL_PIN (9)
44-
#define EXAMPLE_I2C_ADDR (ESP_IO_EXPANDER_I2C_CH422G_ADDRESS)
4544

4645
esp_expander::CH422G *expander = NULL;
4746

@@ -50,7 +49,7 @@ void setup() {
5049
delay(1000);
5150
Serial.println("Test begin");
5251

53-
expander = new esp_expander::CH422G(EXAMPLE_I2C_SCL_PIN, EXAMPLE_I2C_SDA_PIN, EXAMPLE_I2C_ADDR);
52+
expander = new esp_expander::CH422G(EXAMPLE_I2C_SCL_PIN, EXAMPLE_I2C_SDA_PIN);
5453
expander->init();
5554
expander->begin();
5655

idf_component.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
version: "1.1.1"
1+
version: "2.0.0"
22
description: ESP32_IO_Expander is a library designed for driving IO expander chips using ESP SoCs
33
url: https://github.com/esp-arduino-libs/ESP32_IO_Expander
44
repository: https://github.com/esp-arduino-libs/ESP32_IO_Expander.git
55
issues: https://github.com/esp-arduino-libs/ESP32_IO_Expander/issues
66
dependencies:
7-
idf: ">=5.1"
7+
idf: ">=5.4"
8+
89
espressif/esp-lib-utils:
910
version: "0.2.*"
10-
public: true
11+
public: false

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ESP32_IO_Expander
2-
version=1.1.1
2+
version=2.0.0
33
author=espressif
44
maintainer=espressif
55
sentence=ESP32_IO_Expander is a library designed for driving IO expander chips using ESP SoCs

micropython.cmake

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,5 @@ target_sources(usermod_esp_io_expander INTERFACE ${SRCS_C} ${SRCS_CXX})
1313
# Add the current directory as an include directory.
1414
target_include_directories(usermod_esp_io_expander INTERFACE ${SRC_DIR})
1515

16-
# Add compile options. Since the target is not created by `idf_component_register()`, we need to add the `ESP_PLATFORM` define manually.
17-
target_compile_options(usermod_esp_io_expander
18-
INTERFACE
19-
-Wno-missing-field-initializers -DESP_PLATFORM $<$<COMPILE_LANGUAGE:CXX>:-std=gnu++17>
20-
)
21-
2216
# Link our INTERFACE library to the usermod target.
2317
target_link_libraries(usermod INTERFACE usermod_esp_io_expander)

src/ESP_IOExpander.h

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/ESP_IOExpander_Library.h

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)