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 DigitalOut myledg(LED1); 00004 DigitalOut myledb(LED2); 00005 DigitalOut myledr(LED3); 00006 Serial pc(USBTX, USBRX); 00007 00008 int main() { 00009 pc.baud(115200); 00010 pc.printf("start Firmware\r\n"); 00011 while(1) { 00012 myledg = 1; // LED is ON 00013 wait(0.2); // 200 ms 00014 myledg = 0; // LED is OFF 00015 wait(1.0); // 1 sec 00016 00017 myledb =1; 00018 wait(0.2); 00019 myledb = 0; 00020 wait(1.0); 00021 00022 myledr =1; 00023 wait(0.2); 00024 myledr = 0; 00025 wait(1.0); 00026 pc.printf("s"); 00027 } 00028 }
Generated on Sun Jul 17 2022 01:00:42 by
1.7.2