ArduinoPhone

Can’t get the code to work and by reading this thread i think that come from the TFT who display nothing.
I readed previous comment and fixed Tft.TFTinit(); and #include <TFTv2.h>
but now i’m facing this:

C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::drawButton(int, int)': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:44: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:58: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::drawButtonNumber()': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:71: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:71: error: 'WHITE' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:76: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:76: error: 'WHITE' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::drawButtonAbc()': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:89: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:89: error: 'WHITE' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::drawDialogBox()': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:103: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::drawMsgDialogBox()': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:109: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:110: error: 'BLACK' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::init()': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:119: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::msgAdd(char)': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:169: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:170: error: 'BLUE' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::msgAdd(char, unsigned int)': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:182: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::msgDel()': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:199: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::msgShowCount()': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:206: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:208: error: 'RED' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:210: error: 'RED' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::callAdd(unsigned char)': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:223: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:223: error: 'BLACK' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:228: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:228: error: 'BLACK' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::callDel()': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:242: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::msgNumAdd(char)': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:254: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:254: error: 'BLACK' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:259: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:259: error: 'BLACK' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::msgNumDel()': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:279: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::showMainPage()': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:481: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:481: error: 'GREEN' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:482: error: 'GRAY1' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:483: error: 'YELLOW' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:484: error: 'GRAY2' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::showPageKB()': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:505: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:505: error: 'BLACK' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::showMsg()': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:510: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:510: error: 'RED' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:512: error: 'YELLOW' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::showCall()': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:518: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:518: error: 'YELLOW' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::drawReadMsgTxt()': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:553: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:553: error: 'GRAY2' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::drawReadMsg()': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:567: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:567: error: 'GRAY1' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:568: error: 'GRAY2' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:570: error: 'WHITE' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:571: error: 'BLACK' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::drawReadMsgPage()': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:578: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:578: error: 'GRAY1' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:579: error: 'BLUE' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:580: error: 'GRAY2' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:583: error: 'RED' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp: In member function 'void UI_ArduinoPhone::drawTimeDate(int, int)': C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:686: error: 'Tft' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:686: error: 'BLACK' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:687: error: 'GRAY1' was not declared in this scope C:\Users\PXbytes\Documents\Arduino\libraries\ArduinoPhone\UI_ArduinoPhone.cpp:688: error: 'GRAY2' was not declared in this scope
I use the 2.0b 07/27/2012 tft shield.

Can you please post your code? this errors can be everything

Edit: Fixed the problem…
In attachement the good code with good libs for compiling with the TFTv2
ArduinoPhone-master.zip (1.31 MB)

Hi guys,

Thank you so much for this! I love it! I’m trying to build my own one and I’m hoping someone can help me as my screen is blank!

To give you an idea with what hardware I have

Arduino Uno
Quectel m10 Arduino GSM shield
Adafruit 2.8" TFT Touch Shield v2 - Capacitive or Resistive
Arduino adapter 9V

Is it possible to use your code for the interface? If so how do I adapt it? Because at the moment all I have is a blank screen and when I run the code I get these errors…

Demo.ino: In function ‘void stateMachine()’:
Demo:109: error: ‘Tft’ was not declared in this scope
Demo:202: error: ‘WHITE’ was not declared in this scope
Demo:203: error: ‘GRAY1’ was not declared in this scope
Demo:204: error: ‘RED’ was not declared in this scope
Demo:237: error: ‘BLACK’ was not declared in this scope
Demo:249: error: ‘GREEN’ was not declared in this scope
Demo.ino: In function ‘void stateMsg()’:
Demo:486: error: ‘RED’ was not declared in this scope
Demo:502: error: ‘RED’ was not declared in this scope
Demo.ino: In function ‘void enableTimer()’:
Demo:640: error: ‘Timer1’ was not declared in this scope
Demo.ino: In function ‘void disableTimer()’:
Demo:645: error: ‘Timer1’ was not declared in this scope
Demo.ino: In function ‘void setup()’:
Demo:654: error: ‘Timer1’ was not declared in this scope

Would appreciate any sort of help! Thanks a million!

Hi there,

I got the code to compile and upload but still blank screen. I’ve just realised I bought a capacitive screen rather than resistive… is it still possible to use the capacitive one? Sorry if these are stupid questions… still so newish! If anyone has any insight they would like to share, please do!!

Thanks!!

I see that you have used Quectel m10 Arduino GSM shield for your project, but the one we used is GPRS SHIELD v2. The software is different between Arduino GSM Shield and GPRS Shield v2. So the TFT shield may not display anything on the screen.

Jacket

i would like to build one.
What I have here is

  1. arduino UNO
    2 Seeed Studio GPRS shield v 2.1
    3 Seeed Studio TFT touch shield v 1.0

i dont have a RTC.
but would like to build it without it if i could.

i try the code but only have white screen.
What can i do to make it work?
i also have a SmartGpu2 shield made by Vizic Technologies that i could use. it has a SD card reader on it.

please some one help me. i have spent to much money on this not to work. I have now went and bought a Seeed Studio TFT touch shield v 2.1. thinking maybe be better. still white screen with it.

Thank you for having finally updated the code on the github repo loovee.
github.com/Seeed-Studio/ArduinoPhone