Hi,
I have a problem with my new 2.8" TFT Touch Shield, i get allways an error at my Arduino software. The scatch is:
[code]#include <stdint.h>
#include <TouchScreen.h>
#include <TFT.h>
#ifdef SEEEDUINO
#define YP A2 // must be an analog pin, use “An” notation!
#define XM A1 // must be an analog pin, use “An” notation!
#define YM 14 // can be a digital pin, this is A0
#define XP 17 // can be a digital pin, this is A3
#endif
#ifdef MEGA
#define YP A2 // must be an analog pin, use “An” notation!
#define XM A1 // must be an analog pin, use “An” notation!
#define YM 54 // can be a digital pin, this is A0
#define XP 57 // can be a digital pin, this is A3
#endif
void setup()
{
Tft.init(); //init TFT library
Tft.drawString(“Happy!”,0,160,1,CYAN);
Tft.drawString(“Happy!”,0,200,2,WHITE);
Tft.drawString(“Happy!”,0,240,4,WHITE);
}
void loop()
{
}[/code]
the errors are:
text.ino: In function ‘void setup()’:
text:39: error: ‘Tft’ was not declared in this scope
text:41: error: ‘CYAN’ was not declared in this scope
text:42: error: ‘WHITE’ was not declared in this scope
What did i wrong? Could you please help me to get that working?
Thank You for your help.
Dirk