mbed/ARM 活用事例 第2章 キャラクタLCDを極めよう

Dependencies:   TextLCD mbed

Files at this revision

API Documentation at this revision

Comitter:
sunifu
Date:
Tue Oct 04 12:25:04 2011 +0000
Commit message:

Changed in this revision

TextLCD.lib Show annotated file Show diff for this revision Revisions of this file
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 dbbcf079e093 TextLCD.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Tue Oct 04 12:25:04 2011 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/TextLCD/#44f34c09bd37
diff -r 000000000000 -r dbbcf079e093 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Oct 04 12:25:04 2011 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+#include "TextLCD.h"
+
+TextLCD lcd(p24, p26, p27, p28, p29, p30);
+
+
+int main() {
+    lcd.cls();
+
+    lcd.locate(3,0);
+    lcd.printf("Eleki Jack!");
+
+    lcd.locate(5,1);
+    lcd.putc(0xB4); 
+    lcd.putc(0xDA); 
+    lcd.putc(0xB7);  
+    lcd.putc(0xBC); 
+    lcd.putc(0xDE); 
+    lcd.putc(0xAC); 
+    lcd.putc(0xAF); 
+    lcd.putc(0xB8); 
+    lcd.putc(0x21); 
+}
+
+
diff -r 000000000000 -r dbbcf079e093 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Oct 04 12:25:04 2011 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912