00001 #include "mbed.h"00002 00003 DigitalOut led1(LED2);
00004 00005 // main() runs in its own thread in the OS00006 // (note the calls to Thread::wait below for delays)00007 int main() {
00008 while (true) {
00009 led1 = !led1;
00010 Thread::wait(500);
00011 }
00012 }
00013
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.