-
Notifications
You must be signed in to change notification settings - Fork 12
New Waveshare (b) devices use Different CH422G outputs #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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! |
Yes I will try and report hopefully this weekend |
I did try a simple 1 second pause loop expander - digitalWrite(8, HIGH); simple light test But nothing on the DO0 and D01 outputs |
Thank you for the testing! Could you please provide your complete code and the serial output logs? It would also be best if you could add |
the changes made by H-sw123 work fine my end |
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 :-

Datasheet Layout:-

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
The text was updated successfully, but these errors were encountered: