Simon Ford / Mbed 2 deprecated MobileLCDHelloWorld

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
simon
Date:
Sun Nov 22 20:55:57 2009 +0000
Commit message:

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 65fb200517b9 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Nov 22 20:55:57 2009 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+#include "MobileLCD.h"
+
+MobileLCD lcd(p5, p6, p7, p8, p9);
+
+int main() {
+    lcd.background(0x0000FF);
+    lcd.cls();
+    lcd.fill(2, 51, 128, 10, 0x00FF00);
+    lcd.fill(50, 1, 10, 128, 0xFF0000);
+    lcd.locate(0,3);
+    lcd.printf("Hello World!");
+    for(int i=0; i<130; i++) {
+        lcd.pixel(i, 80 + sin((float)i / 5.0)*10, 0x000000);
+    }
+}
diff -r 000000000000 -r 65fb200517b9 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Nov 22 20:55:57 2009 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/32af5db564d4