Justin,
Thanks for the response. I had previously seen his code, but I don't understand how each character gets called.
In the code pasted, I see the message below:
-
- The Dot Factory (Home - Technology In The Arts - Emerging Science and Technology Trends)
- This a good windows software for using fonts but bitmaps, too.
- For using bitmaps/fonts select the tool icon, check "Flip X", "90°" at Flip/Rotate. "Width" at Fixed, "MsbFirst" if it wasn't.
- You can import any bitmap.
- Ppush Generate, replace the "const uint_8" " with "unsigned char PROGMEM" and call the bitmap by with its name.
So I did that. I used verdana 16pt font to generate all characters, and pasted that into my program (instead of using external files. A sample is below:
0x00, 0x00, 0x00, /* */
0x00, 0x00, 0x00, /* */
0x00, 0x00, 0x00, /* */
0x00, 0x00, 0x00, /* */
0x7F, 0xFF, 0x80, /* ################ */
0x7F, 0xFF, 0x80, /* ################ */
0x70, 0x00, 0x00, /* ### */
0x3E, 0x00, 0x00, /* ##### */
0x0F, 0x80, 0x00, /* ##### */
0x01, 0xE0, 0x00, /* #### */
0x00, 0x78, 0x00, /* #### */
0x00, 0x78, 0x00, /* #### */
0x01, 0xE0, 0x00, /* #### */
0x07, 0x80, 0x00, /* #### */
0x1E, 0x00, 0x00, /* #### */
0x70, 0x00, 0x00, /* ### */
0x7F, 0xFF, 0x80, /* ################ */
0x7F, 0xFF, 0x80, /* ################ */
0x00, 0x00, 0x00, /* */
0x00, 0x00, 0x00, /* */
0x00, 0x00, 0x00, /* */
0x00, 0x00, 0x00, /* */
0x00, 0x00, 0x00, /* */
0x00, 0x00, 0x00, /* */
0x00, 0x00, 0x00, /* */
0x7F, 0xFF, 0x80, /* ################ */
0x7F, 0xFF, 0x80, /* ################ */
0x70, 0x00, 0x00, /* ### */
0x7C, 0x00, 0x00, /* ##### */
0x1F, 0x00, 0x00, /* ##### */
0x07, 0x80, 0x00, /* #### */
0x01, 0xE0, 0x00, /* #### */
0x00, 0x78, 0x00, /* #### */
0x00, 0x1E, 0x00, /* #### */
0x00, 0x07, 0x80, /* #### */
0x7F, 0xFF, 0x80, /* ################ */
0x7F, 0xFF, 0x80, /* ################ */
0x00, 0x00, 0x00, /* */
0x00, 0x00, 0x00, /* */
0x00, 0x00, 0x00, /* */
I pasted this in at the beginning:
unsigned char PROGMEM verdana16ptBitmaps[] =
, as instructed. I then went down to where text operations are performed, and changed the font name to the following:
// scrolltextxsize(y location, string , size as integer, colorname (RANDOMCOLOR for random color), name of the second color (instead of BLACK), name of the font array, number of columns, number of rows, 'G' for Gimp or 'T' for The Dot Factory font arrays, delaytime in milliseconds)
//scrolltextsizexcolor(4,"ON A CALL ",1,RED, 0,my2font,8,8,'G',10);
scrolltextsizexcolor(0,"ON A CALL ",1,RED, 0,verdana16ptBitmaps,20,16,'T',10);
At the beginning of the code I also changed the variable for NUMCOLUMS to 20, which is what it looks like is referenced in TheDotFactory information:
// insert here the number of columns of your font files
// the compiler will comment how large the number of columns
// should be
#define NCOLUMNS 20
I tried to compile it but I get the following error:
ht1632_kjus_1b_er.cpp: In function 'void loop()':
ht1632_kjus_1b_er:3311: error: cannot convert 'unsigned char*' to 'unsigned char ()[20]' for argument '6' to 'void scrolltextsizexcolor(int, char, char, byte, byte, unsigned char (*)[20], int, char, char, int)'
This is where I'm confused. First, do I need to include the descriptor lookup table? am i calling the font correctly? I'm missing something but I don't know what.