-
Notifications
You must be signed in to change notification settings - Fork 20
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
Using 4 and 6 digit displays at the same time #23
Comments
Hi @Kravatox I am moving this into a new issue to address your question. Yes, you can use both. Here is a code snip from my Powerwall-Display project that uses two 4-digit displays and one 6-digit display. #include <TM1637TinyDisplay6.h>
#include <TM1637TinyDisplay.h>
TM1637TinyDisplay display1(CLK1, DIO1); // Solar
TM1637TinyDisplay6 display3(CLK2, DIO2); // Power for Grid, House, Bat
TM1637TinyDisplay display2(CLK3, DIO3); // Battery Level |
Is it possible to share the one CLK pin for say two 6digit displays? |
That is possible. However, as you update one display, it is unknown what will happen to the the other display. It is possible that it will zero out even with no DIO toggles. Let us know if you try it out. Alternatively, you could create a new class that manages two displays and update both displays at the same time using a shared CLK.
I don't think it would be too difficult. If you or anyone else wants to attempt adding this new class, I would be happy to accept a PR to add it to the library. |
Thanks Jason. |
Question from @Kravatox
The text was updated successfully, but these errors were encountered: