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 #include "C12832_lcd.h" 00003 00004 Serial pc(USBTX, USBRX); // tx, rx 00005 Serial device(p9, p10); // tx, rx 00006 C12832_LCD lcd; 00007 DigitalOut myled(LED1); 00008 00009 int main() { 00010 00011 char* ch[16]={"0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"}; 00012 char v_val[2]; 00013 char val; 00014 int tmp1,tmp2; 00015 00016 int sd_data_on[20]={0x7E,0x00,0x10,0x17,0x01,0x00,0x13,0xA2,0x00,0x40,0x92,0xFF,0x77,0xFF,0xFE,0x02,0x44,0x32,0x05,0x70}; 00017 int sd_data_off[20]={0x7E,0x00,0x10,0x17,0x01,0x00,0x13,0xA2,0x00,0x40,0x92,0xFF,0x77,0xFF,0xFE,0x02,0x44,0x32,0x04,0x71}; 00018 00019 lcd.cls(); 00020 lcd.locate(0,0); 00021 00022 while(1){ 00023 myled=1; 00024 val=device.getc(); 00025 00026 tmp1 = val/16; 00027 tmp2 = val%16; 00028 pc.printf("%s%s",ch[tmp1],ch[tmp2]); 00029 myled=0; 00030 } 00031 }
Generated on Sun Jul 17 2022 09:26:22 by
1.7.2