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.
main.cpp
00001 #include "mbed.h" 00002 Serial pc(USBTX, USBRX); // tx, rx 00003 Serial lcd(p9, p10); // lcd Port 00004 00005 char kanji[] = {0x8A,0xBF,0x8E,0x9A,0x82,0xBE,0x82,0xBC,0x00}; 00006 char color[] = {0x8A,0xBF,0x8E,0x9A,0x82,0xC9,0x90,0x46,0x82,0xAA,0x82,0xC2,0x82,0xAB,0x82,0xDC,0x82,0xB7,0x00}; 00007 00008 int main() { 00009 00010 int y = 1; 00011 int x = 10; 00012 lcd.printf ("\x1b@0Z"); // clear all data 00013 lcd.printf ("\x1b[%d;%dH",y,x); // set curser 00014 00015 lcd.printf ("BlackOne\r\n"); // display char with CRLF 00016 00017 lcd.printf (" %s\r\n",kanji); // Dispaly 2Byte code Kajni 00018 lcd.printf ("\x1b[1;5;17m"); // set color 00019 lcd.printf ("\x1b[6;10H"); // Set cursee 00020 lcd.printf ("%s",color); // Dispalya 00021 }
Generated on Sun Jul 24 2022 21:06:41 by
1.7.2