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

Show uppercase 'C' for temperature - workaround here #32

Open
GodlikeRU opened this issue Nov 9, 2018 · 0 comments
Open

Show uppercase 'C' for temperature - workaround here #32

GodlikeRU opened this issue Nov 9, 2018 · 0 comments

Comments

@GodlikeRU
Copy link

For unknown reasons the library converts uppercase 'C' to lowercase 'c' if you use setChar. You may want to use uppercase one, most likely for temperature display but not only for that. As library seems to be unmaintained now I'm publishing a workaround in "Issues".

In that case, open LedControl.h and replace PROGMEM with this
const static byte charTable [] PROGMEM = { B01111110,B00110000,B01101101,B01111001,B00110011,B01011011,B01011111,B01110000, B01111111,B01111011,B01110111,B00011111,B00001101,B00111101,B01001111,B01000111, B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000, B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000, B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000, B00000000,B00000000,B00000000,B00000000,B10000000,B00000001,B10000000,B00000000, B01111110,B00110000,B01101101,B01111001,B00110011,B01011011,B01011111,B01110000, B01111111,B01111011,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000, B00000000,B01110111,B00011111,B01001110,B00111101,B01001111,B01000111,B00000000, B00110111,B00000000,B00000000,B00000000,B00001110,B00000000,B00000000,B00000000, B01100111,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000, B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00001000, B00000000,B01110111,B00011111,B00001101,B00111101,B01001111,B01000111,B00000000, B00110111,B00000000,B00000000,B00000000,B00001110,B00000000,B00010101,B00011101, B01100111,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000, B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000 };

You can modify this array to make library show other characters if you wish, binary data is as following:

1st bit - Decimal point
rest of bits - binary segment data representation on standard 7 seg display. Look in the internet for scheme

Regards,
Daniel

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