wayoda / LedControl

An Arduino library for MAX7219 and MAX7221 Led display drivers
Other
464 stars 243 forks source link

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

Open GodlikeRU opened 5 years ago

GodlikeRU commented 5 years ago

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