Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 0:241486bcebbb, committed 2010-11-23
- Comitter:
- ohneta
- Date:
- Tue Nov 23 01:44:23 2010 +0000
- Commit message:
- 0.1
Changed in this revision
--- /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