j
Dependencies: mbed yeswecancoap C12832 LM75B
Diff: lib/Heartbeat.cpp
- Revision:
- 0:92d2ef9f009d
diff -r 000000000000 -r 92d2ef9f009d lib/Heartbeat.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/Heartbeat.cpp Fri Oct 23 11:51:28 2015 +0000 @@ -0,0 +1,16 @@ + +#include "Heartbeat.h" + +Heartbeat::Heartbeat(RGB* led) + :Effect(led){ + +} + +void Heartbeat::run(){ + while(1){ + RGB* led = new RGB(p23,p24,p25); + led->setColor(Color::RED); + wait_ms(500); + + } +} \ No newline at end of file