Prints "Hello World!" every 5 seconds, and blinks LED1 at a defined hertz.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 1:f09b0fb6022a
- Parent:
- 0:543eb4b01cda
--- a/main.cpp Tue Oct 14 18:07:09 2014 +0000 +++ b/main.cpp Tue Oct 14 18:11:35 2014 +0000 @@ -1,13 +1,12 @@ #include "mbed.h" -// A simple and concise explanation of what this program does /* Simple Hello World program that outputs "Hello World!" every five seconds to the serial debug port, and blinks at the user defined hertz */ // LED blink rate: higher -> faster blinking -#define LED_BLINK_RATE 4 //Hertz +#define LED_BLINK_RATE 1 //Hertz //Define the LED pin output DigitalOut led(LED1);