LCD 課題0 文字表示練習 ”Hello World”

Dependencies:   TextLCD mbed

Fork of LCD課題0 by 中野班 中野班

Revision:
0:b064834f3e7a
Child:
1:fe4982ab76f2
diff -r 000000000000 -r b064834f3e7a main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Aug 19 06:03:24 2016 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "TextLCD.h"
+
+TextLCD lcd(D8,D10,D11,D12,D13,D14); // rs, e, d4, d5, d6, d7)
+
+int main(){
+    while(1){
+        lcd.cls();
+        lcd.locate(0,0);
+        lcd.printf("Hello");
+        wait(1.0);
+        lcd.cls();
+        lcd.locate(0,1);
+        lcd.printf("World!");
+        wait(1.0);
+    }//while
+}//main
\ No newline at end of file