Skip to content

Commit ae343b8

Browse files
committed
feat(config): add new IO expander CH422G
1 parent ee30ddd commit ae343b8

File tree

7 files changed

+32
-6
lines changed

7 files changed

+32
-6
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44

55
### Enhancements:
66

7+
* feat(touch): add spi xpt2046 by @Lzw655 (#21)
8+
* feat(config): add new IO expander CH422G
9+
10+
### Bugfixes:
11+
12+
* fix some typo by @leeebo (#16, #17)
13+
* fix(docs): add more details on the version by @leeebo (#23)
14+
715
## v0.1.0 - 2024-03-07
816

917
### Breaking changes:

ESP_Panel_Board_Custom.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@
305305
#if ESP_PANEL_USE_EXPANDER
306306
/**
307307
* IO expander name. Choose one of the following:
308+
* - CH422G
308309
* - HT8574
309310
* - TCA95xx_8bit
310311
* - TCA95xx_16bit
@@ -318,7 +319,9 @@
318319
*/
319320
#define ESP_PANEL_EXPANDER_SKIP_INIT_HOST (0) // 0/1
320321
/* IO expander parameters */
321-
#define ESP_PANEL_EXPANDER_I2C_ADDRESS (0x20)
322+
#define ESP_PANEL_EXPANDER_I2C_ADDRESS (0x20) // The actual I2C address. Even for the same model of IC,
323+
// the I2C address may be different, and confirmation based on
324+
// the actual hardware connection is required
322325
#if !ESP_PANEL_EXPANDER_SKIP_INIT_HOST
323326
#define ESP_PANEL_EXPANDER_HOST_ID (0) // Typically set to 0
324327
#define ESP_PANEL_EXPANDER_I2C_CLK_HZ (400 * 1000)

examples/LVGL/v8/Porting/ESP_Panel_Board_Custom.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@
305305
#if ESP_PANEL_USE_EXPANDER
306306
/**
307307
* IO expander name. Choose one of the following:
308+
* - CH422G
308309
* - HT8574
309310
* - TCA95xx_8bit
310311
* - TCA95xx_16bit
@@ -318,7 +319,9 @@
318319
*/
319320
#define ESP_PANEL_EXPANDER_SKIP_INIT_HOST (0) // 0/1
320321
/* IO expander parameters */
321-
#define ESP_PANEL_EXPANDER_I2C_ADDRESS (0x20)
322+
#define ESP_PANEL_EXPANDER_I2C_ADDRESS (0x20) // The actual I2C address. Even for the same model of IC,
323+
// the I2C address may be different, and confirmation based on
324+
// the actual hardware connection is required
322325
#if !ESP_PANEL_EXPANDER_SKIP_INIT_HOST
323326
#define ESP_PANEL_EXPANDER_HOST_ID (0) // Typically set to 0
324327
#define ESP_PANEL_EXPANDER_I2C_CLK_HZ (400 * 1000)

examples/LVGL/v8/Rotation/ESP_Panel_Board_Custom.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@
305305
#if ESP_PANEL_USE_EXPANDER
306306
/**
307307
* IO expander name. Choose one of the following:
308+
* - CH422G
308309
* - HT8574
309310
* - TCA95xx_8bit
310311
* - TCA95xx_16bit
@@ -318,7 +319,9 @@
318319
*/
319320
#define ESP_PANEL_EXPANDER_SKIP_INIT_HOST (0) // 0/1
320321
/* IO expander parameters */
321-
#define ESP_PANEL_EXPANDER_I2C_ADDRESS (0x20)
322+
#define ESP_PANEL_EXPANDER_I2C_ADDRESS (0x20) // The actual I2C address. Even for the same model of IC,
323+
// the I2C address may be different, and confirmation based on
324+
// the actual hardware connection is required
322325
#if !ESP_PANEL_EXPANDER_SKIP_INIT_HOST
323326
#define ESP_PANEL_EXPANDER_HOST_ID (0) // Typically set to 0
324327
#define ESP_PANEL_EXPANDER_I2C_CLK_HZ (400 * 1000)

examples/Panel/PanelTest/ESP_Panel_Board_Custom.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@
305305
#if ESP_PANEL_USE_EXPANDER
306306
/**
307307
* IO expander name. Choose one of the following:
308+
* - CH422G
308309
* - HT8574
309310
* - TCA95xx_8bit
310311
* - TCA95xx_16bit
@@ -318,7 +319,9 @@
318319
*/
319320
#define ESP_PANEL_EXPANDER_SKIP_INIT_HOST (0) // 0/1
320321
/* IO expander parameters */
321-
#define ESP_PANEL_EXPANDER_I2C_ADDRESS (0x20)
322+
#define ESP_PANEL_EXPANDER_I2C_ADDRESS (0x20) // The actual I2C address. Even for the same model of IC,
323+
// the I2C address may be different, and confirmation based on
324+
// the actual hardware connection is required
322325
#if !ESP_PANEL_EXPANDER_SKIP_INIT_HOST
323326
#define ESP_PANEL_EXPANDER_HOST_ID (0) // Typically set to 0
324327
#define ESP_PANEL_EXPANDER_I2C_CLK_HZ (400 * 1000)

examples/SquareLine/v8/Porting/ESP_Panel_Board_Custom.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@
305305
#if ESP_PANEL_USE_EXPANDER
306306
/**
307307
* IO expander name. Choose one of the following:
308+
* - CH422G
308309
* - HT8574
309310
* - TCA95xx_8bit
310311
* - TCA95xx_16bit
@@ -318,7 +319,9 @@
318319
*/
319320
#define ESP_PANEL_EXPANDER_SKIP_INIT_HOST (0) // 0/1
320321
/* IO expander parameters */
321-
#define ESP_PANEL_EXPANDER_I2C_ADDRESS (0x20)
322+
#define ESP_PANEL_EXPANDER_I2C_ADDRESS (0x20) // The actual I2C address. Even for the same model of IC,
323+
// the I2C address may be different, and confirmation based on
324+
// the actual hardware connection is required
322325
#if !ESP_PANEL_EXPANDER_SKIP_INIT_HOST
323326
#define ESP_PANEL_EXPANDER_HOST_ID (0) // Typically set to 0
324327
#define ESP_PANEL_EXPANDER_I2C_CLK_HZ (400 * 1000)

examples/SquareLine/v8/WiFiClock/ESP_Panel_Board_Custom.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@
305305
#if ESP_PANEL_USE_EXPANDER
306306
/**
307307
* IO expander name. Choose one of the following:
308+
* - CH422G
308309
* - HT8574
309310
* - TCA95xx_8bit
310311
* - TCA95xx_16bit
@@ -318,7 +319,9 @@
318319
*/
319320
#define ESP_PANEL_EXPANDER_SKIP_INIT_HOST (0) // 0/1
320321
/* IO expander parameters */
321-
#define ESP_PANEL_EXPANDER_I2C_ADDRESS (0x20)
322+
#define ESP_PANEL_EXPANDER_I2C_ADDRESS (0x20) // The actual I2C address. Even for the same model of IC,
323+
// the I2C address may be different, and confirmation based on
324+
// the actual hardware connection is required
322325
#if !ESP_PANEL_EXPANDER_SKIP_INIT_HOST
323326
#define ESP_PANEL_EXPANDER_HOST_ID (0) // Typically set to 0
324327
#define ESP_PANEL_EXPANDER_I2C_CLK_HZ (400 * 1000)

0 commit comments

Comments
 (0)