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: mbed
main.cpp
00001 #include "mbed.h" // this tells us to load mbed related functions 00002 00003 DigitalOut myled(LED1); // we create a variable 'myled', use it as an out port 00004 00005 // this code runs when the microcontroller starts up 00006 int main() { 00007 00008 // spin in a main loop all the time 00009 while(1) { 00010 // turn on LED 00011 myled = 1; 00012 00013 // wait 00014 wait(0.2); 00015 00016 // YOUR CODE HERE : turn off the LED 00017 00018 00019 // wait again 00020 wait(0.2); 00021 } 00022 }
Generated on Sun Jul 17 2022 00:33:16 by
1.7.2