j
Dependencies: mbed yeswecancoap C12832 LM75B
lib/Heartbeat.cpp@1:92958e26bf2e, 2015-10-23 (annotated)
- Committer:
- arnedesmet
- Date:
- Fri Oct 23 14:58:08 2015 +0000
- Revision:
- 1:92958e26bf2e
- Parent:
- 0:92d2ef9f009d
mlkj;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
arnedesmet | 0:92d2ef9f009d | 1 | |
arnedesmet | 0:92d2ef9f009d | 2 | #include "Heartbeat.h" |
arnedesmet | 0:92d2ef9f009d | 3 | |
arnedesmet | 0:92d2ef9f009d | 4 | Heartbeat::Heartbeat(RGB* led) |
arnedesmet | 0:92d2ef9f009d | 5 | :Effect(led){ |
arnedesmet | 0:92d2ef9f009d | 6 | |
arnedesmet | 0:92d2ef9f009d | 7 | } |
arnedesmet | 0:92d2ef9f009d | 8 | |
arnedesmet | 0:92d2ef9f009d | 9 | void Heartbeat::run(){ |
arnedesmet | 0:92d2ef9f009d | 10 | while(1){ |
arnedesmet | 0:92d2ef9f009d | 11 | RGB* led = new RGB(p23,p24,p25); |
arnedesmet | 0:92d2ef9f009d | 12 | led->setColor(Color::RED); |
arnedesmet | 0:92d2ef9f009d | 13 | wait_ms(500); |
arnedesmet | 0:92d2ef9f009d | 14 | |
arnedesmet | 0:92d2ef9f009d | 15 | } |
arnedesmet | 0:92d2ef9f009d | 16 | } |