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.
Dependencies: BufferedSerial mbed
main.cpp
00001 #include "mbed.h" 00002 #include "BufferedSerial.h" 00003 00004 00005 DigitalOut myled(LED2); 00006 BufferedSerial pc(USBTX, USBRX); 00007 //Serial pc(USBTX, USBRX); 00008 00009 00010 int main() 00011 { 00012 pc.baud(115200); 00013 pc.printf("\r\n\r\nProgram started\r\n"); 00014 00015 while(1) 00016 { 00017 pc.printf("OFF\r\n"); 00018 myled = 1; 00019 wait(1); 00020 00021 pc.printf("ON\r\n"); 00022 myled = 0; 00023 wait(1); 00024 } 00025 }
Generated on Wed Jul 20 2022 02:12:56 by
1.7.2