Vizic Technologies
/
SimplePaint_SG2
Simple Paint Demo - MBED + SmartGPU2 board
Revision 3:840b97775616, committed 2014-04-18
- Comitter:
- emmanuelchio
- Date:
- Fri Apr 18 00:27:38 2014 +0000
- Parent:
- 2:747505abb216
- Child:
- 4:be44a445d990
- 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:22:40 2014 +0000 +++ b/main.cpp Fri Apr 18 00:27:38 2014 +0000 @@ -30,19 +30,20 @@ /***************************************************/ int main() { POINT point; + int bytes; lcd.baudChange(BAUD6); // Set a fast baud!, always that we use touch functions is recommended to use fast baud rates //front cover lcd.setTextColour(YELLOW); lcd.setTextSize(FONT4); - lcd.string(85,50,MAX_X_LANDSCAPE,MAX_Y_LANDSCAPE,"Mini Paint",0); + lcd.string(85,50,MAX_X_LANDSCAPE,MAX_Y_LANDSCAPE,"Mini Paint",&bytes); lcd.setTextColour(BLUE); lcd.setTextSize(FONT3); - lcd.string(70,95,MAX_X_LANDSCAPE,MAX_Y_LANDSCAPE,"Touch on corner \nto erase screen",0); + lcd.string(70,95,MAX_X_LANDSCAPE,MAX_Y_LANDSCAPE,"Touch on corner \nto erase screen",&bytes); lcd.setTextColour(MAGENTA); lcd.setTextSize(FONT2); - lcd.string(50,170,MAX_X_LANDSCAPE,MAX_Y_LANDSCAPE,"Touch screen to begin",0); + lcd.string(50,170,MAX_X_LANDSCAPE,MAX_Y_LANDSCAPE,"Touch screen to begin",&bytes); while(lcd.touchScreen(&point)==INVALID); // Wait for a touch on the screen to start lcd.erase();