aaaa
Dependencies: SeeedStudioTFTv2 TFT_fonts mbed
Fork of Seeed_TFT_Touch_Shield by
Revision 9:f226caed4c66, committed 2014-10-25
- Comitter:
- bhavk11
- Date:
- Sat Oct 25 21:57:39 2014 +0000
- Parent:
- 7:5cf5aeae1954
- Child:
- 10:5ea126441b8a
- Commit message:
- Ring
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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)