Hi All,
I have some expoerience ofArduino, i just started a new project with a TFT shield i purchased a few years back.
I have a problem with the example code, "Example Arduino Sketch (menu driven)" at the link below.
http://www.hobbytronics.co.uk/arduino-tft-shield?keyword=tft%20shield
Both libraries installed ok. Can anyone help or even try and compile it and comment back for me?
Messages:
E:\Dropbox\Arduino\TFT DataLogger\TFT_Shield\TFT_Shield.ino:33:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
"SD Card Bitmap "};
^
E:\Dropbox\Arduino\TFT DataLogger\TFT_Shield\TFT_Shield.ino:33:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
E:\Dropbox\Arduino\TFT DataLogger\TFT_Shield\TFT_Shield.ino:33:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
E:\Dropbox\Arduino\TFT DataLogger\TFT_Shield\TFT_Shield.ino:33:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
E:\Dropbox\Arduino\TFT DataLogger\TFT_Shield\TFT_Shield.ino:33:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
E:\Dropbox\Arduino\TFT DataLogger\TFT_Shield\TFT_Shield.ino:33:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
E:\Dropbox\Arduino\TFT DataLogger\TFT_Shield\TFT_Shield.ino:33:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
E:\Dropbox\Arduino\TFT DataLogger\TFT_Shield\TFT_Shield.ino:33:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
E:\Dropbox\Arduino\TFT DataLogger\TFT_Shield\TFT_Shield.ino:33:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
TFT_Shield:36:29: error: 'tftTextTest' was not declared in this scope
tftTextTest(),
^
TFT_Shield:37:17: error: 'tftPrintTest' was not declared in this scope
tftPrintTest,
^
TFT_Shield:38:17: error: 'tftLinesTest' was not declared in this scope
tftLinesTest,
^
TFT_Shield:39:17: error: 'tftRectTest' was not declared in this scope
tftRectTest,
^
TFT_Shield:40:17: error: 'tftBarGraphTest' was not declared in this scope
tftBarGraphTest,
^
TFT_Shield:41:17: error: 'tftCirclesTest' was not declared in this scope
tftCirclesTest,
^
TFT_Shield:42:17: error: 'tftMediaButtonsTest' was not declared in this scope
tftMediaButtonsTest,
^
TFT_Shield:43:17: error: 'tftBitmapTest' was not declared in this scope
tftBitmapTest};
^
E:\Dropbox\Arduino\TFT DataLogger\TFT_Shield\TFT_Shield.ino:53:62: warning: passing NULL to non-pointer argument 3 of 'Adafruit_ST7735::Adafruit_ST7735(int8_t, int8_t, int8_t)' [-Wconversion-null]
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);
^
E:\Dropbox\Arduino\TFT DataLogger\TFT_Shield\TFT_Shield.ino: In function 'void tftTextTest()':
E:\Dropbox\Arduino\TFT DataLogger\TFT_Shield\TFT_Shield.ino:183:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char * lorem="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur adipiscing ante sed nibh tincidunt feugiat.";
^
E:\Dropbox\Arduino\TFT DataLogger\TFT_Shield\TFT_Shield.ino: In function 'void tftPrintTest()':
E:\Dropbox\Arduino\TFT DataLogger\TFT_Shield\TFT_Shield.ino:197:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char * hello="Hello World!";
^
E:\Dropbox\Arduino\TFT DataLogger\TFT_Shield\TFT_Shield.ino: In function 'void tftBitmapTest()':
E:\Dropbox\Arduino\TFT DataLogger\TFT_Shield\TFT_Shield.ino:361:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
bmpDraw("ht_logo.bmp", 0, 0);
^
E:\Dropbox\Arduino\TFT DataLogger\TFT_Shield\TFT_Shield.ino: In function 'void bmpDraw(char*, uint8_t, uint8_t)':
E:\Dropbox\Arduino\TFT DataLogger\TFT_Shield\TFT_Shield.ino:399:40: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]
if ((bmpFile = SD.open(filename)) == NULL) {
^
TFT_Shield:475:31: error: 'class Adafruit_ST7735' has no member named 'Color565'
tft.pushColor(tft.Color565(r,g,b));
^
exit status 1
'tftTextTest' was not declared in this scope