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 00003 Serial xbee1(p9, p10); 00004 Serial pc(USBTX, USBRX); 00005 00006 uint32_t i=0; 00007 00008 void readxBee() 00009 { 00010 char c; 00011 00012 i++; 00013 //if(xbee1.readable()) 00014 //{ 00015 xbee1.scanf("%c", &c); 00016 pc.printf("%c", c); 00017 //} 00018 if(c == '?') 00019 { 00020 xbee1.printf("i=%u\n\r", i); 00021 } 00022 } 00023 int main() { 00024 xbee1.attach(&readxBee, Serial::RxIrq); 00025 }
Generated on Tue Jul 26 2022 08:04:44 by
1.7.2