Pages: [1]   Go Down
Author Topic: LCD Display issue  (Read 623 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 35
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

France
Offline Offline
Edison Member
*
Karma: 37
Posts: 1005
Scientia potentia est.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry, my crystal ball is broken so I can't see the error smiley
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 35
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

But isn't it included in the header?
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 619
Posts: 33961
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pennsylvania
Offline Offline
Newbie
*
Karma: 0
Posts: 41
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

-__-
Logged

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

Pages: [1]   Go Up
Jump to: