|
Lamp-Da 0.1
A compact lantern project
|
Define the behavior of an indexable lamp. More...
Go to the source code of this file.
Namespaces | |
| namespace | lampda |
| Program scope. | |
| namespace | lampda::user |
| Contains code handling custom user mode functions for indexable strips. | |
Functions | |
| void | lampda::user::button_clicked_default (const uint8_t clicks) |
| Called to handle button click events for default user mode behaviors. | |
| void | lampda::user::button_hold_default (const uint8_t nbClickAndHold, const bool isEndOfHoldEvent, const uint32_t holdDuration) |
| Called to handle button click+hold events for user mode behaviors. | |
| void | lampda::user::__private_elk::handle_pattern_select_command (const uint8_t patternIndex, const uint32_t requestedColor=0) |
| Handle a pattern change command. | |
| void | lampda::user::handle_elk_command (const utils::ELK::Package &elkControlCommand) |
| Handle a ELK BLE package. | |
Define the behavior of an indexable lamp.
| void lampda::user::__private_elk::handle_pattern_select_command | ( | const uint8_t | patternIndex, |
| const uint32_t | requestedColor = 0 |
||
| ) |
Handle a pattern change command.
| [in] | patternIndex | Index of the pattern to use |
| [in] | requestedColor | Color to display, valid if patternIndex == 0 |