feature-requests icon indicating copy to clipboard operation
feature-requests copied to clipboard

Support for WCH(Jiangsu Qin Heng) CH422G I/O Expander

Open lboue opened this issue 1 year ago • 2 comments

Describe the problem you have/What new integration you would like

Support for WCH(Jiangsu Qin Heng) CH422G I/O Expander

Please describe your use case for this integration and alternatives you've tried:

Waveshare ESP32-S3-Touch-LCD-4.3 board: As the 4.3-inch screen occupies most GPIO pins, we use a CH422G chip to expand IO for functions like reset and backlight control.

  • Manufacturer WCH(Jiangsu Qin Heng)
  • Mfr. Part # CH422G
  • LCSC Part # C57543
  • Package SOP-16
  • Description 8 * 1MHz SOP-16 I/O Expanders
  • Datasheet: https://www.lcsc.com/datasheet/lcsc_datasheet_2403131123_WCH-Jiangsu-Qin-Heng-CH422G_C57543.pdf

Additional context

lboue avatar Apr 02 '24 11:04 lboue

I found 2 forks from ESP32_IO_Expander that include drivers for CH422G I/O Expander:

This could help to add support to ESPHome.

lboue avatar May 05 '24 07:05 lboue

We need ESP-IDF compatible component for this (to drop Arduino on ESP32-xx)

nagyrobi avatar May 05 '24 15:05 nagyrobi

ESP32_IO_Expander Release v0.0.3 is out with CH422G support:

v0.0.3 - 2024-05-07 Enhancements:

  • Add support for CH422G from Waveshare
  • Update the example to show how to use the CH422G

lboue avatar Jun 05 '24 20:06 lboue

I found 2 forks from ESP32_IO_Expander that include drivers for CH422G I/O Expander:

This could help to add support to ESPHome.

Or maybe it could be added a ESPHome component like another PCA9554 I/O Expander.

lboue avatar Jun 05 '24 20:06 lboue

I'm interested in this also... Thanks!

Per4merKC avatar Jul 11 '24 02:07 Per4merKC

Has anyone moved forward with this?

styphonthal avatar Jul 26 '24 15:07 styphonthal

Has anyone moved forward with this?

No.

lboue avatar Jul 26 '24 16:07 lboue

It would be great if anyone is interested in trying it out and giving me feedback on it ;)

jesterret avatar Aug 26 '24 19:08 jesterret

It would be great if anyone is interested in trying it out and giving me feedback on it ;)

Working fine and tested with this config file: Waveshare_ESP32-S3_Touch_4.3.yaml

lboue avatar Sep 01 '24 12:09 lboue

CH422G support has been merged into dev branch:

image

Thanks @jesterret.

lboue avatar Sep 02 '24 05:09 lboue