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 pc(USBTX,USBRX); 00004 DigitalOut myled(PB_3); 00005 void pc_rx_callback(){ 00006 pc.attach(pc_rx_callback, Serial::RxIrq); 00007 //pc.printf("%s\r\n",pc.getc()); 00008 } 00009 int main() { 00010 pc.baud(115200); 00011 pc.attach(pc_rx_callback, Serial::RxIrq); 00012 while(1) { 00013 myled = 1; 00014 wait(0.5); 00015 } 00016 }
Generated on Wed Jul 27 2022 21:56:09 by
1.7.2