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 // example showing sending/receiving character 00002 00003 #include "mbed.h" 00004 00005 // connect p9 to p14 with a wire! 00006 Serial out(p9, NC); 00007 Serial in(NC, p14); 00008 00009 DigitalOut led(LED1); 00010 00011 int main() { 00012 out.putc('h'); 00013 out.putc('i'); 00014 char c1 = in.getc(); 00015 char c2 = in.getc(); 00016 00017 led = 1; 00018 printf("c1: %c, c2: %c\n", c1, c2); 00019 }
Generated on Thu Jul 14 2022 01:01:44 by
1.7.2