blink a led on pin PA_5 using the toggle function
Dependencies: Hotboards_leds mbed
Fork of toggle by
Diff: main.cpp
- Revision:
- 0:7d0ffff768ec
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Feb 29 20:01:46 2016 +0000 @@ -0,0 +1,22 @@ + +/* + * The simplest program II, blink a led on pin PA_5 + * but this time using the toggle function + * + */ + +#include "mbed.h" +#include "Hotboards_leds.h" + +//Creates a simple led object +Hotboards_leds led( PA_5 ); + +int main() +{ + while(1) + { + //Toggles led + led.toggle( ); + wait_ms( 300 ); + } +}