|
roo_blink
API Documentation for roo_blink
|
Runs blink sequences on an RGB LED. More...
#include <blinker.h>
Public Member Functions | |
| RgbBlinker (RgbLed &led) | |
| Constructs a RgbBlinker using the default scheduler. | |
| RgbBlinker (RgbLed &led, roo_scheduler::Scheduler &scheduler) | |
| Constructs a RgbBlinker using the specified scheduler. | |
| void | loop (RgbBlinkSequence sequence) |
| Repeats the sequence indefinitely. | |
| void | repeat (RgbBlinkSequence sequence, int repetitions, Color terminal_color=Color()) |
| Repeats the sequence the specified number of times. | |
| void | execute (RgbBlinkSequence sequence, Color terminal_color=Color()) |
| Executes the sequence once. | |
| void | setColor (Color color) |
| Enables the LED, setting it to the specified color. | |
| void | turnOff () |
| Disables the LED. | |
| roo_blink::RgbBlinker::RgbBlinker | ( | RgbLed & | led | ) |
Constructs a RgbBlinker using the default scheduler.
Definition at line 11 of file blinker.cpp.
| roo_blink::RgbBlinker::RgbBlinker | ( | RgbLed & | led, |
| roo_scheduler::Scheduler & | scheduler | ||
| ) |
Constructs a RgbBlinker using the specified scheduler.
Definition at line 13 of file blinker.cpp.
| void roo_blink::RgbBlinker::execute | ( | RgbBlinkSequence | sequence, |
| Color | terminal_color = Color() |
||
| ) |
Executes the sequence once.
Definition at line 28 of file blinker.cpp.
| void roo_blink::RgbBlinker::loop | ( | RgbBlinkSequence | sequence | ) |
Repeats the sequence indefinitely.
Definition at line 19 of file blinker.cpp.
| void roo_blink::RgbBlinker::repeat | ( | RgbBlinkSequence | sequence, |
| int | repetitions, | ||
| Color | terminal_color = Color() |
||
| ) |
Repeats the sequence the specified number of times.
Definition at line 23 of file blinker.cpp.
| void roo_blink::RgbBlinker::setColor | ( | Color | color | ) |
Enables the LED, setting it to the specified color.
Definition at line 32 of file blinker.cpp.
| void roo_blink::RgbBlinker::turnOff | ( | ) |
Disables the LED.
Definition at line 34 of file blinker.cpp.