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 4DGL-uLCD-SE MMA8452
Diff: main.cpp
- Revision:
- 0:2f4225a589d1
- Child:
- 1:47394b602697
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sun Mar 10 05:28:18 2019 +0000
@@ -0,0 +1,29 @@
+#include "mbed.h"
+#include "uLCD_4DGL.h"
+#include "main_character.h"
+
+uLCD_4DGL uLCD(p9, p10, p11); // serial tx, serial rx, reset pin;
+
+
+extern void main_character_constructor(void);
+extern sprite main_character;
+
+DigitalOut myled(LED1);
+
+int main() {
+ //increase BAUD rate
+ uLCD.baudrate(3000000);
+ uLCD.background_color(WHITE);
+
+ main_character_constructor();
+ //main_character_i();
+ uLCD.BLIT(0,0,16,16,main_character.skins);
+ uLCD.BLIT(15,15,16,16,main_character.skins);
+ uLCD.BLIT(31,31,16,16,main_character.skins);
+ while(1) {
+ myled = 1;
+ wait(0.2);
+ myled = 0;
+ wait(0.2);
+ }
+}