Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: Rasturizer/Rasturizer.cpp
- Revision:
- 27:e46af658c67a
- Parent:
- 26:8a85aede976d
- Child:
- 29:4a02f0bae202
--- a/Rasturizer/Rasturizer.cpp Thu Apr 04 19:03:06 2019 +0000
+++ b/Rasturizer/Rasturizer.cpp Thu Apr 04 20:13:39 2019 +0000
@@ -1,6 +1,6 @@
#include "Rasturizer.h"
+N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
-N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
Rasturizer::Rasturizer(){
for(int i = 0; i < 6; i++){
@@ -233,30 +233,20 @@
selectionCube.translate(-x, -y, -z);
}
-void Rasturizer::drawHelp(){
- clear();
- lcd.printString("Use the",17,1);
- refresh();
- wait(0.2);
- lcd.printString("joystick",15,2);
- refresh();
- wait(0.2);
- lcd.printString("to move",17,3);
- refresh();
- wait(0.2);
+void Rasturizer::drawHelpScreen1(){
+ lcd.printString("Use the",20,1);
+ lcd.printString("joystick",17,2);
+ lcd.printString("to move",20,3);
lcd.printString("left and right",0,4);
- refresh();
- wait(3);
- clear();
- refresh();
- lcd.printString("Dodge all",15,1);
- wait(0.2);
- refresh();
- lcd.printString("the cubes!",15,2);
- refresh();
- wait(1);
- lcd.printString("Good Luck!",15,4);
- refresh();
- wait(3);
- clear();
+}
+
+void Rasturizer::drawHelpScreen2(){
+ lcd.printString("Dodge the",15,1);
+ lcd.printString("cubes as they",3,2);
+ lcd.printString("move closer",10,3);
+ lcd.printString("to you",25,4);
+}
+
+void Rasturizer::drawHelpScreen3(){
+ lcd.printString("Good Luck!",15,2);
}
\ No newline at end of file