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 00002 #include "mbed.h" 00003 RawSerial pc(USBTX, USBRX, 1152000); 00004 RawSerial serial(PC_10,PC_11, 115200); 00005 00006 void display() 00007 { 00008 static int i; 00009 unsigned char c = serial.getc(); 00010 pc.printf("%d %d\r\n",i , c); 00011 i++; 00012 if(i == 100){ 00013 i=0; 00014 } 00015 } 00016 int main() 00017 { 00018 pc.printf("hello\r\n"); 00019 serial.attach(display); 00020 while (true) { 00021 } 00022 }
Generated on Sun Jul 17 2022 06:45:03 by
1.7.2