Go Down

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

RazorFly

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()
{
 
}


Thanks

guix

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

RazorFly

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

But isn't it included in the header?

Grumpy_Mike

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