Contains classes which are able to change the color of a LED
Diff: Heartbeat.cpp
- Revision:
- 0:8fd12f8121c1
diff -r 000000000000 -r 8fd12f8121c1 Heartbeat.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Heartbeat.cpp Mon Jan 18 18:51:35 2016 +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