Open einarav opened 1 month ago
Hello. The hardcoded limit looks one char fix. You more than welcome to open pull request.
For the esp8266 the problem I guess is the way timer interrupt setup. I'll be happy if you have a look.
Just curious did you figure out pins to use for display on esp8266?
Gives me 9 pins so 2 digits without dot or one digit with dot max.
Also we should figure out connection which will let it boot.
I'll be happy if you share your experience.
I am using a couple of SN74HC595 shift registers connected to my displays! Hot fixing the char limit on my library clone allows me to set the pins:
I still need to figure out the interrupt routine to get anything usefull displayed on the displays, I will share whenever I get closer to resolving this!
That's great! Checked their code of sn74hc595 component
It performs write operation whenever single pin changed. But for display it will be nice ti change all at once:
I guess you'll need to update also sn74hc595 component to change 'outputbytes' all at once.
Or just a flag disabling gopio_write calls so you can set all the bits in state you like and write them all at once when done.
from 7segment_gpio.h line 33:
constexpr uint8_t max_digit_count = 4;
Cannot initialize more digits because of this limit.I also tried using this with esp8266 and that did not work, are you planning to implement support for that?