Hopefully someone can supply a bit of sample code to get me over my problem of not being able to display custom fonts using serial commands from an Arduino.
I would have thought that host sample code would have been provided in the application notes, but alas, that is not the case.
I followed the procedures in App Note 89 and all worked pretty much as detailed. I was able to successfully display the custom font on the screen using Serial Commander.
However... when I try to display the fonts using the Arduino I am having no joy.
The screen I have is the Gen4-uLCD-35DCT-CLB
The font files on the uSD card are named Fonts.d01 and Fonts.g01
The uSD was successfully mounted using the Arduino.
If it is of any use, the response when using Serial Commander was (ACK 16072 0x3EC8) when loading this custom font.
I have declared
word hFont1;
Setup() contains:
hFont1 = Display.file_LoadImageControl("Fonts.d01", "Fonts.g01", 1);
Loop() contains:
Display.txt_FontID(hFont1) ;
Display.txt_FGcolour(WHITE) ;
Display.txt_BGcolour(BLACK) ;
Display.gfx_MoveTo(50 , 100) ;
Display.putstr("Test") ;
delay(1000);
What am I missing?
I would have thought that host sample code would have been provided in the application notes, but alas, that is not the case.
I followed the procedures in App Note 89 and all worked pretty much as detailed. I was able to successfully display the custom font on the screen using Serial Commander.
However... when I try to display the fonts using the Arduino I am having no joy.
The screen I have is the Gen4-uLCD-35DCT-CLB
The font files on the uSD card are named Fonts.d01 and Fonts.g01
The uSD was successfully mounted using the Arduino.
If it is of any use, the response when using Serial Commander was (ACK 16072 0x3EC8) when loading this custom font.
I have declared
word hFont1;
Setup() contains:
hFont1 = Display.file_LoadImageControl("Fonts.d01", "Fonts.g01", 1);
Loop() contains:
Display.txt_FontID(hFont1) ;
Display.txt_FGcolour(WHITE) ;
Display.txt_BGcolour(BLACK) ;
Display.gfx_MoveTo(50 , 100) ;
Display.putstr("Test") ;
delay(1000);
What am I missing?
Comment