Simple Paint Demo - MBED + SmartGPU2 board

Dependencies:   SMARTGPU2 mbed

Files at this revision

API Documentation at this revision

Comitter:
emmanuelchio
Date:
Fri Apr 18 01:21:17 2014 +0000
Parent:
4:be44a445d990
Child:
6:b7a024b9fc2d
Commit message:
SmartGPU2 SimplePaint_SG2 demo- Please select(uncomment) your smartGPU2 board under SMARTGPU2.h file before compiling!!!

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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          
         }