Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Namespaces | Functions
indexable_behavior.hpp File Reference

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.
 

Detailed Description

Define the behavior of an indexable lamp.

Function Documentation

◆ handle_pattern_select_command()

void lampda::user::__private_elk::handle_pattern_select_command ( const uint8_t  patternIndex,
const uint32_t  requestedColor = 0 
)

Handle a pattern change command.

Parameters
[in]patternIndexIndex of the pattern to use
[in]requestedColorColor to display, valid if patternIndex == 0