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
Fork of el17dg by
Diff: main.cpp
- Revision:
- 1:5aa2312d3e94
- Parent:
- 0:69abdc43ae39
- Child:
- 2:ec89189860e0
--- a/main.cpp Mon Feb 25 10:55:33 2019 +0000
+++ b/main.cpp Tue Feb 26 14:24:01 2019 +0000
@@ -9,8 +9,67 @@
*/
-
+#include "mbed.h"
+#include "N5110.h"
+//#include "Gamepad.h"
-#include "mbed.h"
+N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
+AnalogIn pot(PTB2);
+
+//AnalogIn x_dir(PTB10);
+//AnalogIn y_dir(PTB11);
+//AnalogIn j_button(PTC16);
+
+void intro();
+void pointer();
+int main(){
+ lcd.init();
+
+ intro();
+
+
+ while(1){
+
+ lcd.clear();
+ pointer();
+ lcd.printString(" Start ",1,2);
+ lcd.printString(" Tutorial",1,3);
+ lcd.printString(" Settings",1,4);
+ lcd.refresh();
+ wait_ms(1000/10);
+
+
+ }
+
+
+
+}
+
+void intro(){
+ lcd.clear();
+ lcd.printString(" StarBarians",1,1);
+ lcd.refresh();
+ wait(2);
+ lcd.printString(" And the quest ",1,2);
+ lcd.printString(" of the Princess Boobeta",1,3);
+ lcd.printString(" Boobeta",1,4);
+ lcd.refresh();
+ wait(2);
+}
+
+void pointer(int x, int y){
+
+ int cursor[84] = {0,0,0,0,1,0,0,0,0,0,1,1,
+ 0,0,1,1,1,1,0,0,0,1,0,0,
+ 0,1,0,0,1,1,1,0,1,0,0,0,
+ 1,1,1,1,1,0,1,1,1,0,1,1,
+ 0,1,0,0,1,1,1,0,1,0,0,0,
+ 0,0,1,1,1,1,0,0,0,1,0,0,
+ 0,0,0,0,1,0,0,0,0,0,1,1};
+
+
+ lcd.drawSprite(x,y,7,12,cursor);
+}
+
