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: Servo mbed-rtos mbed
led.cpp
00001 #include "mbed.h" 00002 #include "led.hpp" 00003 #include "car_config.hpp" 00004 00005 static Ticker alive_ticker; 00006 static DigitalOut alive_led(HW_ALIVE_LED); 00007 00008 void blink_led() 00009 { 00010 alive_led = !alive_led; 00011 } 00012 00013 void init_led () 00014 { 00015 //alive blinking led - 1Hz 00016 alive_led = 0; 00017 alive_ticker.attach(blink_led, 1.0); 00018 }
Generated on Wed Aug 3 2022 13:20:54 by
1.7.2