Open jasonacox opened 1 year ago
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. I have kept them separate for now in the interest of getting my project up and running, might revisit this in the next iteration.
Question from @Kravatox