Skip to content
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

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

Open
adrian-05 opened this issue May 17, 2024 · 0 comments
Open

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

adrian-05 opened this issue May 17, 2024 · 0 comments

Comments

@adrian-05
Copy link

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

@adrian-05 adrian-05 changed the title not all dots are usable at a 6 digit Display not all dots are usable on a 6 digit Display May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant