LCD Iiko Oide World!

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
takeuchi
Date:
Sun Aug 08 11:49:32 2010 +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 02cc53f5b42a main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Aug 08 11:49:32 2010 +0000
@@ -0,0 +1,42 @@
+#include "mbed.h"
+#include "TextLCD.h"
+
+#define WAIT_time 1.0
+#define D() wait(WAIT_time)
+#define ON 1
+#define OFF 0
+
+DigitalOut mled0(LED1);
+DigitalOut mled1(LED2);
+//DigitalOut mled2(LED3);
+//DigitalOut mled3(LED4);
+
+TextLCD lcd(p24, p25, p26, p27, p28, p29, p30,16,2); // rs, rw, e, d0, d1, d2, d3
+
+int main() {
+    while(1){
+      
+      mled0 = ON;
+      
+      // Row 1
+        lcd.cls();
+        lcd.locate(0,0);
+        lcd.printf("Hello Iiko");
+      
+      D();
+      
+      mled0=OFF;
+      mled1=ON;
+      
+      // Row 2
+       lcd.cls();
+       lcd.locate(0,1);
+       lcd.printf("Oide World!");
+      
+      D();
+      
+      mled1=OFF;
+    }//while
+}//main
+
+
diff -r 000000000000 -r 02cc53f5b42a mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Aug 08 11:49:32 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9114680c05da