esp-arduino-libs / ESP32_IO_Expander

Arduino library of driving IO expander chips for the ESP SoCs
Apache License 2.0
8 stars 9 forks source link

CH422G support #10

Open ThermIQ opened 2 weeks ago

ThermIQ commented 2 weeks ago

I believe the correct bitmap for the control register is:

` // // Bit: | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | // | --- | --- | --- | --- | ------- | ------- | -------- | ------- | // Value: | [SLEEP] | / | / | [OD_EN] | |[A_SCAN] | | [IO_OE] | // | --- | --- | --- | --- | ------- | ------- | -------- | ------- | // Default: | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |

`