I'm a noob.. storing a font in arduino
i can't believe got far fast...
i got few of these cheap displays... , using theory based @ link, able control it.. (on first freaking try even)
http://www.robotroom.com/multisegmentleddisplay.html
so issue, top 7 items 14 segment displays. hand calculated , googled find:
http://www.ee.ualberta.ca/~elliott/ee552/studentappnotes/2001_w/interfacing/alphanumeric_led/
that has characters need. question is, how store in arduino code? i've searched around trying find code saves font on chip.. haven't found much...
i'm more of perl/php/ruby guy.. how 1 make proper hash in c?
many thanks...
i got few of these cheap displays... , using theory based @ link, able control it.. (on first freaking try even)
http://www.robotroom.com/multisegmentleddisplay.html
so issue, top 7 items 14 segment displays. hand calculated , googled find:
http://www.ee.ualberta.ca/~elliott/ee552/studentappnotes/2001_w/interfacing/alphanumeric_led/
that has characters need. question is, how store in arduino code? i've searched around trying find code saves font on chip.. haven't found much...
i'm more of perl/php/ruby guy.. how 1 make proper hash in c?
many thanks...
here fragment hope started. off top of head , needs work trust going in right direction
#define nbr_segments 14 // each array element has bit indicating state of 14 segments
unsigned int letters[] = {0b11101100100010,0b00111100000000,... }; // fonts 'a' 'z'
unsigned int numbers[] = {0b11111100010001,... }; //numbers 0 9
void showletters(char character){
int index = toupper(character) - 'a'; // convert upper case , offset start of array
for( int i=0, unsigned int bit = 1; < nbr_segments; ++, bit <<= 1) //shift through 14 bits
if( letters[index] & bit ) // light segement if bit in array 1
// code turn on segment
}
#define nbr_segments 14 // each array element has bit indicating state of 14 segments
unsigned int letters[] = {0b11101100100010,0b00111100000000,... }; // fonts 'a' 'z'
unsigned int numbers[] = {0b11111100010001,... }; //numbers 0 9
void showletters(char character){
int index = toupper(character) - 'a'; // convert upper case , offset start of array
for( int i=0, unsigned int bit = 1; < nbr_segments; ++, bit <<= 1) //shift through 14 bits
if( letters[index] & bit ) // light segement if bit in array 1
// code turn on segment
}
Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > I'm a noob.. storing a font in arduino
arduino
Comments
Post a Comment