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
Fork of Timer_HelloWorld by
main.cpp
00001 #include "mbed.h" 00002 00003 void led_task(void); 00004 00005 Ticker timer_ticker; 00006 DigitalOut led(LED1); 00007 00008 00009 00010 int main(){ 00011 timer_ticker.attach(&led_task, 0.2); 00012 while(1) { 00013 wait(1); 00014 } 00015 } 00016 00017 00018 void led_task() { 00019 led=!led; 00020 }
Generated on Fri Jul 15 2022 03:05:05 by
1.7.2
