Jurica Resetar
/
Lizzy_blinky
Blinky program for Lizzy HW.
Diff: main.cpp
- Revision:
- 0:6603328e7c5b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Apr 23 08:23:08 2018 +0000 @@ -0,0 +1,31 @@ +/* + * + */ + +#include "mbed.h" + +#define RED (p31) +#define GREEN (p2) +#define BLUE (p3) +#define DELAY_MS (1000) + +DigitalOut red(RED); +DigitalOut green(GREEN); +DigitalOut blue(BLUE); + + +int main() +{ + while(1) + { + red = 1; + green = 1; + blue = 1; + wait_ms(DELAY_MS); + red = 0; + green = 0; + blue = 0; + wait_ms(DELAY_MS); + } +} + \ No newline at end of file