Hi everybody,
I'm using a ITDB02 display with shield, and Arduino Uno. I downloaded the most recent library version and examples, from Electronics - Henning Karlsen
I got to draw lines, set colors, and so on, but I'm stucked in a problem with fonts. I tried this example which comes with the download, above:
#include </home/francisco/sketchbook/UTFT/UTFT.h>
#include </home/francisco/sketchbook/UTFT/UTFT.cpp>
// Declare which fonts we will be using
extern uint8_t BigFont[];
extern uint8_t SevenSegNumFont[];
// Uncomment the next line for chipKit Uno32
UTFT myGLCD(ITDB24E_8,19,18,17,16); // Remember to change the model parameter to suit your display module!
void setup()
{
myGLCD.InitLCD();
myGLCD.clrScr();
myGLCD.setFont(BigFont);
}
void loop()
{
myGLCD.print("Text rotation", 0, 0);
myGLCD.setColor(0, 0, 255);
myGLCD.print("0 degrees", 0, 16, 0);
myGLCD.print("90 degrees", 319, 0, 90);
myGLCD.print("180 degrees", 319, 239, 180);
myGLCD.print("270 degrees", 0, 239, 270);
myGLCD.setFont(SevenSegNumFont);
myGLCD.setColor(0, 255, 0);
myGLCD.print("45", 90, 100, 45);
myGLCD.print("90", 200, 50, 90);
myGLCD.print("180", 300, 200, 180);
while (true) {};
}
The compiler gives me the error:
sketch_UTFT.cpp.o: In function `global constructors keyed to _ZN4UTFT16_hw_special_initEv':
sketch_UTFT.cpp:23: undefined reference to `BigFont'
sketch_UTFT.cpp:23: undefined reference to `BigFont'
sketch_UTFT.cpp:48: undefined reference to `SevenSegNumFont'
sketch_UTFT.cpp:48: undefined reference to `SevenSegNumFont'
collect2: ld returned 1 exit status
Where is the error? I have searched a lot but I don't find the solution.
Thanks in advance.