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.
Fork of XBEE_LCD by
main.cpp
00001 #include "mbed.h" 00002 #include "TextLCD.h" 00003 00004 Serial xbee(p13, p14); // tx, rx 00005 TextLCD lcd(p24, p26, p27, p28, p29, p30); 00006 00007 ///////////////////////////////////////////////////// 00008 // main 00009 ///////////////////////////////////////////////////// 00010 int main(void) { 00011 char pc_in[32] ; 00012 lcd.cls() ; 00013 lcd.printf( "wait xbee input" ) ; 00014 00015 while(1) { 00016 if(xbee.readable()) { 00017 pc_in[0] = xbee.getc() ; 00018 if( pc_in[0] == 0x063 ){ 00019 lcd.cls(); 00020 }else{ 00021 lcd.printf( pc_in ); 00022 } 00023 } 00024 } 00025 return 0; 00026 }
Generated on Sun Jul 17 2022 23:29:51 by
1.7.2
