Text LCD "Hello"
Revision 0:41c8fde7347e, committed 2013-05-14
- Comitter:
- MasudaToshio
- Date:
- Tue May 14 10:38:01 2013 +0000
- Commit message:
- Test LCD "Hello"
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD.lib Tue May 14 10:38:01 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/simon/code/TextLCD/#44f34c09bd37
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue May 14 10:38:01 2013 +0000
@@ -0,0 +1,29 @@
+#include "mbed.h"
+#include "TextLCD.h"
+
+TextLCD lcd(p24, p26, p27, p28, p29, p30); // rs, e, d0-d3
+// In BoardOrange, the "RW" signal is unnecessary.
+
+/////////////////////////////////////////////////////
+// main
+/////////////////////////////////////////////////////
+int main(void) {
+
+ lcd.cls();
+
+ while(1) {
+
+ lcd.cls();
+ wait(1);
+
+ lcd.locate(0,0);
+ lcd.printf("Hello");
+ wait(1);
+
+ lcd.locate(0,1);
+ lcd.printf("mbed");
+ wait(1);
+ }
+
+ return 0;
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue May 14 10:38:01 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/10b9abbe79a6 \ No newline at end of file