Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I'm trying to create a font to use on my TFT screen. I used the GLCD font creator as recommended by Peter Dreschler in his cookbook article. In his cookbook article hte fonts seem to be stored in TFT_fonts library. I created a magneto font using GLCD and included it in my program but I get the "identifier "magneto" is undefined error. I dont know enough about libraries or c++ to sort this out. Can anyone help please.I imported my magneto.h file so I can see it in the compiler.
#include "mbed.h" #include "SPI_TFT.h" #include "magneto.h" #include "touch_tft.h" touch_tft tt(p19,p20,p16,p17,p11, p12, p13, p14, p15,"TFT"); // x+,x-,y+,y-,mosi, miso, sclk, cs, reset int main() { tt.claim(stdout); // send stdout to the TFT display tt.background(Red); // set background to black tt.foreground(Black); // set chars to white tt.cls(); // clear the screen //tt.set_font((unsigned char*) Arial12x12); // select the font tt.set_font((unsigned char*) magneto); tt.set_orientation(1); tt.locate(0,100); printf("Black on Red Magneto") }