|
Post by powersoft on Aug 5, 2018 10:51:11 GMT -8
I have constructed 2 font files. One with size 48, and another with the size 96. The original font is Digital-7. When I display the font with the size 48 the output is as it would be. With the size 96 I get a strange screen. I run the sketch on an Arduino Due, because I need later the 32bit double. Is it posible that there is an internal memory issue? My project is attached. Left picture is with font size 96 and the right one with 48 Thanks for any help. Klok.zip (24.09 KB)  Attachments:
|
|
|
Post by jamesbowman on Aug 5, 2018 18:21:44 GMT -8
Running on an Arduino Uno with the sketch reduced to: #include <SPI.h> #include <GD2.h> // #include "digital7_size48.h" #include "digital7_size96.h"
void setup() { GD.begin(~GD_STORAGE); LOAD_ASSETS(); }
void loop() { GD.ClearColorRGB(0xffffff); GD.Clear(); GD.ColorRGB(0x0000ff);
char timebuf[15] = {0}; sprintf(timebuf,"%02d:%02d:%02d", 18,19,20); GD.cmd_text(239,135,0,OPT_CENTER,timebuf); GD.swap(); }
Gives the two fonts as expected. Maybe you can try this simplified version on the Arduino Due?  
|
|
|
Post by powersoft on Aug 6, 2018 0:25:04 GMT -8
Thanks for the quick response. Have run your program on a arduino Uno and a Due and I have the same behavior. I will remainder on my early send posts on the forum with problems of the self test. Is there a problem with my GD3?
Regards,
Jan
|
|
|
Post by jamesbowman on Aug 6, 2018 6:15:37 GMT -8
Yes, that seems likely. Please email me and I will arrange for a replacement.
jamesb@excamera.com
|
|