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 e_Disp2(p9, p10); // tx, rx 00004 00005 // Kanji Messages 00006 char msg2[] = {0x8a,0xbf,0x8e,0x9a,0x83,0x74,0x83,0x48,0x83,0x93,0x83,0x67,0x93,0xe0,0x91,0xa0,0x54,0x46,0x54,0x83,0x4a,0x83,0x89,0x81,0x5b,0x4c,0x43,0x44,0x82,0xc6}; 00007 char msg3[] = {0x58,0x62,0x65,0x65,0x96,0xb3,0x90,0xfc,0x83,0x82,0x83,0x57,0x83,0x85,0x81,0x5b,0x83,0x8b,0x82,0xcc,0x83,0x5c,0x83,0x50,0x83,0x62,0x83,0x67,0x82,0xf0,0x91,0x95,0xf5}; 00008 char msg4[] = {0x6d,0x62,0x65,0x64,0x81,0x69,0x4c,0x43,0x50,0x31,0x37,0x36,0x38,0x81,0x6a,0x82,0xcc,0x8a,0x88,0x97,0x70,0x82,0xcc,0x95,0x9d,0x82,0xf0,0x8d,0x4c,0x82,0xb0,0x82,0xe9}; 00009 char msg5[] = {0x4c,0x43,0x50,0x58,0x70,0x72,0x65,0x73,0x73,0x6f,0x81,0x40,0x4c,0x43,0x50,0x31,0x37,0x36,0x39,0x82,0xe0,0x4f,0x21}; 00010 00011 00012 // Display Kanji Message 00013 void msg() 00014 { 00015 e_Disp2.printf("\x1b@0Z"); // clear all 00016 e_Disp2.printf("\x1b@0;0;320;240;0;0;32767z"); // Fill White BG-Buff 00017 00018 e_Disp2.printf("\x1b[1;30;m"); // Set Color of Char to BLACK 00019 e_Disp2.printf("%s\n\r",msg2); 00020 e_Disp2.printf("\x1b[1;31;m"); // Set Color of Char to RED 00021 e_Disp2.printf("%s\n\r",msg3); 00022 e_Disp2.printf("\x1b[1;32;m"); // Set Color of Char to GREEN 00023 e_Disp2.printf("%s\n\r",msg4); 00024 e_Disp2.printf("\x1b[1;34;m"); // Set Color of Char to BLUE 00025 e_Disp2.printf("%s\n\r",msg5); 00026 00027 } 00028 00029 00030 00031 int main() { 00032 e_Disp2.printf("\x1b[2J"); // Clear all charactors and set curser to Homeposition 00033 00034 e_Disp2.printf("\x1b@30Z"); // Set Buffer_0 to BackGround buffer 00035 e_Disp2.printf("\x1b@80Z"); // BackLight ON 00036 for (;;) 00037 { 00038 for (int i=1 ;i<=9;i++) 00039 { // Display Image 00040 e_Disp2.printf("\x1b@%d;0I",i); 00041 wait_ms(2000); 00042 } 00043 msg(); // Display KANJI msg 00044 wait_ms(5000); 00045 e_Disp2.printf("\x1b[2J"); 00046 } 00047 }
Generated on Sat Jul 16 2022 21:11:42 by
1.7.2