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:b650d4db4e6e, committed 2012-02-24
- Comitter:
- techand
- Date:
- Fri Feb 24 09:55:34 2012 +0000
- Commit message:
Changed in this revision
| 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 b650d4db4e6e main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Feb 24 09:55:34 2012 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+Serial pc(USBTX, USBRX); // tx, rx
+Serial lcd(p9, p10);  	 // lcd Port
+
+char kanji[] = {0x8A,0xBF,0x8E,0x9A,0x82,0xBE,0x82,0xBC,0x00};
+char color[] = {0x8A,0xBF,0x8E,0x9A,0x82,0xC9,0x90,0x46,0x82,0xAA,0x82,0xC2,0x82,0xAB,0x82,0xDC,0x82,0xB7,0x00};
+
+int main() {
+
+    int y = 1;
+	int x = 10;
+	lcd.printf ("\x1b@0Z");          // clear all data
+	lcd.printf ("\x1b[%d;%dH",y,x);  // set curser
+	
+    lcd.printf ("BlackOne\r\n");     // display char with CRLF
+    
+    lcd.printf ("          %s\r\n",kanji); // Dispaly 2Byte code Kajni    
+    lcd.printf ("\x1b[1;5;17m");     // set color
+    lcd.printf ("\x1b[6;10H");       // Set cursee
+    lcd.printf ("%s",color);         // Dispalya
+}
diff -r 000000000000 -r b650d4db4e6e mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Feb 24 09:55:34 2012 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/4c0c40fd0593