aaaa
Dependencies: SeeedStudioTFTv2 TFT_fonts mbed
Fork of Seeed_TFT_Touch_Shield by
Diff: main.cpp
- Revision:
- 9:f226caed4c66
- Parent:
- 7:5cf5aeae1954
- Child:
- 10:5ea126441b8a
--- a/main.cpp Sat Oct 25 21:55:05 2014 +0000 +++ b/main.cpp Sat Oct 25 21:57:39 2014 +0000 @@ -381,7 +381,7 @@ TFT.printf("TEXT"); TFT.circle(180,240,50,Maroon); - while(!(strcmp(cmd, "Call") == 0)) + while((strcmp(cmd, "Back") == 0) || cmd == NULL) { if (TFT.getTouch(p) == TFT.YES) { @@ -391,20 +391,14 @@ { //call cmd = "Call"; - break; } else if(p.y >= 4500 && p.y <= 7100) { //text cmd = "Text"; - break; } - else - {} - } - }else if(cmd == "RING"){ - } + } } if(strcmp(cmd, "Call") == 0)