avishorp / TM1637

Arduino library for TM1637 (LED Driver)
GNU Lesser General Public License v3.0
428 stars 218 forks source link

not all dots are usable on a 6 digit Display #101

Open adrian-05 opened 6 months ago

adrian-05 commented 6 months ago

Hi, I just found a problem when using a 6 digit Display, so it is impossible to use the dots of the 5th and 6th digit of my display. to fix this problem you have to change the 4 in the for statement in line 248 to a 6.

void TM1637Display::showDots(uint8_t dots, uint8_t* digits) { for(int i = 0; i < 4; ++i) { digits[i] |= (dots & 0x80); dots <<= 1; } }

Thanks