Go Down

Topic: Alternative Character Set for LED Library (Read 983 times) previous topic - next topic

Squiggler

Aug 02, 2010, 10:39 am Last Edit: Aug 02, 2010, 10:45 am by squiggler Reason: 1
I was getting a little frustrated at having to add characters to the LED library, so here is a modified character set for the header file ledcontrol.H

it now contains :-

01234567890ABCDEFGHIJLnOoPSTU?+-_=.

letters are included in both upper and lower case, where there is only one the only upper/lower case letter is O! rather than trying to remember which is which!


Code: [Select]

const static byte charTable[128] = {
   B01111110,B00110000,B01101101,B01111001,B00110011,B01011011,B01011111,B01110000,
   B01111111,B01111011,B01110111,B00011111,B01001110,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,B00110001,B00000000,B00000001,B10000000,B00000000,
   B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
   B00000000,B00000000,B00000000,B00000000,B00000000,B00001001,B00000000,B01100101,
   B00000000,B01110111,B00011111,B01001110,B00111101,B01001111,B01000111,B01111011,
   B00110101,B00110000,B00111100,B00000000,B00001110,B00000000,B00010101,B01111110,
   B01100111,B00000000,B00000000,B01011011,B00001111,B00111110,B00000000,B00000000,
   B00000000,B00110011,B00000000,B00000000,B00000000,B00000000,B00000000,B00110011,
   B00000000,B01110111,B00011111,B01001110,B00111101,B01001111,B01000111,B01111011,
   B00110101,B00110000,B00111100,B00000000,B00001110,B00000000,B00010101,B00011101,
   B01100111,B00000000,B00000000,B01011011,B00001111,B00111110,B00000000,B00000000,
   B00000000,B00110011,B00000000,B00000000,B00000000,B00000000,B00000000,B00110011
};


Efi

Hi,

Would you mind posting the whole ledcontrol.h library?

Thanx

Squiggler


Go Up