im trying to pass a string to a function in the tft library, but im using a variable to pass the string and it gives me the error :
START_MENU_ino:284: error: no matching function for call to 'TFT::drawString(String&, int, int, int, int)'
C:\ARDUINO\libraries\TFT_Touch_Shield_libraries/TFT.h:172: note: candidates are: void TFT::drawString(char*, unsigned int, unsigned int, unsigned int, unsigned int)
my code looks like this :
void Confirm_Menu(String tmpWord){
Tft.drawString("The Pin Number You Entered Is:",30,30,2,YELLOW);
Tft.drawString(tmpWord,50,50,4,GREEN); // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<***
Tft.drawString("Do You Want To Use This Number?",30,100,2,YELLOW);
mkbutton(30,150,50,75,3);
mkbutton(30,225,50,75,3);
Tft.drawString("YES",50,50,2,GREEN);
Tft.drawString("NO",50,50,2,RED);
}
if I just send a word inside of "" it works just fine but as a variable it fails...?
what am I doing wrong here?
this is the seeedstudio tft v 1.0