ArduinoPhone

Moderators: lily.li, violet, jessie, chao.zhang

phoenixbytes
Pre-kindergarten
Pre-kindergarten
Posts: 4
Joined: Fri Jan 31, 2014 6:19 am

Re: ArduinoPhone

Post by phoenixbytes » Fri Jan 31, 2014 6:20 am

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:

Code: Select all

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.

c-sieber
Pre-kindergarten
Pre-kindergarten
Posts: 5
Joined: Tue Sep 24, 2013 5:45 am

Re: ArduinoPhone

Post by c-sieber » Sat Feb 01, 2014 9:55 pm

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

phoenixbytes
Pre-kindergarten
Pre-kindergarten
Posts: 4
Joined: Fri Jan 31, 2014 6:19 am

Re: ArduinoPhone

Post by phoenixbytes » Wed Feb 12, 2014 9:23 am

Edit: Fixed the problem..
In attachement the good code with good libs for compiling with the TFTv2

fionaoleary0
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Tue Feb 03, 2015 5:46 am

Re: ArduinoPhone

Post by fionaoleary0 » Tue Feb 03, 2015 5:51 am

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!

fionaoleary0
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Tue Feb 03, 2015 5:46 am

Re: ArduinoPhone

Post by fionaoleary0 » Tue Feb 03, 2015 5:27 pm

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!!

User avatar
Jacket Chen
Staff
Staff
Posts: 659
Joined: Thu Jun 21, 2012 4:25 pm
Are you a staff member of seeedstudio?: yes
Which products/projects are your favorite?: Seeeduino Shields
Location: China

Re: ArduinoPhone

Post by Jacket Chen » Fri Apr 10, 2015 9:04 am

fionaoleary0 wrote: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
Love little, love long.

kdrury70
Pre-kindergarten
Pre-kindergarten
Posts: 6
Joined: Thu Aug 20, 2015 7:51 am

Re: ArduinoPhone

Post by kdrury70 » Tue Aug 25, 2015 4:52 am

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.

kdrury70
Pre-kindergarten
Pre-kindergarten
Posts: 6
Joined: Thu Aug 20, 2015 7:51 am

Re: ArduinoPhone

Post by kdrury70 » Tue Sep 08, 2015 11:59 am

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.

phoenixbytes
Pre-kindergarten
Pre-kindergarten
Posts: 4
Joined: Fri Jan 31, 2014 6:19 am

Re: ArduinoPhone

Post by phoenixbytes » Sun Oct 25, 2015 1:55 am

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

Post Reply