Takehisa Oneta / Mbed 2 deprecated TextLCD_HelloWorld_For_Nico-TECH

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
ohneta
Date:
Tue Nov 23 01:44:23 2010 +0000
Commit message:
0.1

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Tue Nov 23 01:44:23 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/TextLCD/#a53b3e2d6f1e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Nov 23 01:44:23 2010 +0000
@@ -0,0 +1,62 @@
+#include "mbed.h"
+#include "TextLCD.h"
+
+// for StarBoard Orange I/O
+TextLCD lcd(p24, p26, p27, p28, p29, p30); // rs, e, d0-d3
+
+int main() {
+    lcd.printf("HelloWord!\n for Nico-TECH:");
+    wait(3);
+  
+    lcd.cls();
+    wait(0.5);
+
+/*
+    char *kao_00 = " \   o   o     ";
+    char *kao_01 = "  \    p       ";
+
+    char *kao_10 = " _   o   o     ";
+    char *kao_11 ="   \    p        ";
+
+    char *kao_20 = "     o   o     ";
+    char *kao_21 = " __    p       ";
+*/
+
+    char kao_00[] = {0x20, 0xA4, 0x20, 0x20, 0x6f, 0x20, 0x20, 0x20, 0x6f, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, '\0'};
+    char kao_01[] = {0x20, 0x20, 0xA4, 0x20, 0x20, 0x20, 0x70, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, '\0'};
+    char kao_10[] = {0x20, 0x5f, 0x20, 0x20, 0x6f, 0x20, 0x20, 0x20, 0x6f, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, '\0'};
+    char kao_11[] = {0x20, 0x20, 0xa4, 0x20, 0x20, 0x20, 0x70, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, '\0'};
+    char kao_20[] = {0x20, 0x20, 0x20, 0x20, 0x6f, 0x20, 0x20, 0x20, 0x6f, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, '\0'};
+    char kao_21[] = {0x20, 0x5f, 0x5f, 0x20, 0x20, 0x20, 0x70, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, '\0'};
+
+    while (true) {
+        lcd.cls();
+        lcd.locate(0, 0);
+        lcd.printf(kao_00);
+        lcd.locate(0, 1);
+        lcd.printf(kao_01);
+        wait(0.3);
+
+        lcd.cls();
+        lcd.locate(0, 0);
+        lcd.printf(kao_10);
+        lcd.locate(0, 1);
+        lcd.printf(kao_11);
+        wait(0.1);
+
+        lcd.cls();
+        lcd.locate(0, 0);
+        lcd.printf(kao_20);
+        lcd.locate(0, 1);
+        lcd.printf(kao_21);
+        wait(0.4);
+
+        lcd.cls();
+        lcd.locate(0, 0);
+        lcd.printf(kao_10);
+        lcd.locate(0, 1);
+        lcd.printf(kao_11);
+        wait(0.05);
+    }
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Nov 23 01:44:23 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/e6be4cd80aad