Vizic Technologies
/
SimplePaint_SG2
Simple Paint Demo - MBED + SmartGPU2 board
Diff: main.cpp
- Revision:
- 5:2318aa0508db
- Parent:
- 4:be44a445d990
- Child:
- 6:b7a024b9fc2d
--- a/main.cpp Fri Apr 18 00:30:20 2014 +0000 +++ b/main.cpp Fri Apr 18 01:21:17 2014 +0000 @@ -48,14 +48,14 @@ while(lcd.touchScreen(&point)==INVALID); // Wait for a touch on the screen to start lcd.erase(); lcd.objButton(MAX_X_LANDSCAPE-40,0,MAX_X_LANDSCAPE,25,DESELECTED,"clear"); - delay(500); + wait_ms(500); while(1){ // Loop forever if(lcd.touchScreen(&point)==VALID){ // If we receive a touch on the screen if((point.x > (MAX_X_LANDSCAPE-40)) && (point.y < 25)){ // if touch on clear button lcd.erase(); lcd.objButton(MAX_X_LANDSCAPE-40,0,MAX_X_LANDSCAPE,25,DESELECTED,"clear"); - delay(200); + wait_ms(200); }else{ // touch anywhere on the screen lcd.drawCircle(point.x,point.y,PENSIZE,YELLOW,FILL); // Draw circle on touched coordinates }