esp-arduino-libs / ESP32_IO_Expander

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

New Waveshare (b) devices use Different CH422G outputs #5

Open bondango opened 4 days ago

bondango commented 4 days ago

The new Waveshare revision (B) devices for example esp 4.3(b) use the 8 directional i/o's and also the General purpose Output Pins of the CH422G. As per CH422G Datasheet :- The pins OC3-OC0 of CH422 are push-pull or open-drain output pins, and are push-pull output pins by default.

Waveshare schematic :- 1728054451643

Datasheet Layout:- 1728054329375

On the new revision boards OC0 and OC1 are used as digital Outputs to drive BC817-40's via PC817X3's

The current library has support for the 8 Directional I/Os but not the OCx Outputs.

Marty

Lzw655 commented 7 hours ago

Hi @bondango, sorry for the late. I tried modifying the driver according to the CH422G manual so that it can control the OCx (pin number: 8-11) output level. However, since I don't have the hardware, could you please help me test it? Thank you very much!