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 led1(D4); 00004 DigitalOut led2(D5); 00005 DigitalOut led3(D6); 00006 void LED_Blinkly(DigitalOut led1,DigitalOut led2,DigitalOut led3); 00007 // main() runs in its own thread in the OS 00008 int main() { 00009 LED_Blinkly(led1, led2, led3); 00010 } 00011 void LED_Blinkly(DigitalOut led1,DigitalOut led2,DigitalOut led3){ 00012 while(true){ 00013 led1 =! led1; 00014 wait(0.5); 00015 led2 =! led2; 00016 wait(0.5); 00017 led3 =! led3; 00018 wait(0.5); 00019 } 00020 } 00021
Generated on Sat Jul 16 2022 02:11:09 by
1.7.2