Go Down

Topic: LCD Display issue (Read 872 times) previous topic - next topic


I try this code and keep getting an error,,, and am only a hobbyist. suggestions are appreciated.

I am using a MEGA and a SEEEDUINO 2.8 TFT Shield.

the error is in: Tft.init();  //init TFT library

#include <stdint.h>
#include <TFT.h>

void setup()

Tft.init();  //init TFT library

/*  Demo of
    void drawCircle(int poX, int poY, int r,unsigned int color) and
    void fillCircle(int poX, int poY, int r,unsigned int color);
Tft.drawCircle(100, 100, 30,YELLOW);
Tft.drawCircle(100, 200, 40,CYAN);
Tft.fillCircle(200, 100, 30,RED);
Tft.fillCircle(200, 200, 30,BLUE);

void loop()



Sorry, my crystal ball is broken so I can't see the error :)


sorry,,,the error says TFT was not declared in this scope.

But isn't it included in the header?


Can you post the whole of the error message, it usually says something before like it can't find the file TFT.h or some other file.

Have you installed this library?
If you give a link to it maybe others could try it.


The TFT files (examples folder, font.c, TFT.cpp, TFT.h) have to be in a folder labeled TFT, within the Libraries folder.

Software's good, software's impressive, but it's hardware that does the work.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131