Pages: [1]   Go Down
Author Topic: Alternative Character Set for LED Library  (Read 962 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 87
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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
};
« Last Edit: August 02, 2010, 03:45:48 am by squiggler » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

Would you mind posting the whole ledcontrol.h library?

Thanx
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 87
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just download it from here!
Logged

Pages: [1]   Go Up
Jump to: