Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
lampda::utils::ELK Namespace Reference

decode ELK control messages More...

Classes

struct  Package
 

Enumerations

enum class  Type : uint8_t {
  INVALID = 0 , ONOFF , BRIGHTNESS , PATTERN_SELECT ,
  PATTERN_SPEED , COLOR_SELECT , MIC_ONOFF , MIC_MODE ,
  MIC_SENSITIVITY , LED_ORDER , SET_TIME , TIMING
}
 

Functions

bool decode_ELK_message (const uint8_t *msg, uint16_t len, Package &package)
 Decode a given message, assuming it it a ELK control message.
 

Detailed Description

decode ELK control messages

Enumeration Type Documentation

◆ Type

enum class lampda::utils::ELK::Type : uint8_t
strong
Enumerator
INVALID 

invalid value

ONOFF 

turn output onand off

BRIGHTNESS 

set a brightness

PATTERN_SELECT 

select a display pattern in a list

PATTERN_SPEED 

set the current pattern speed

COLOR_SELECT 

set output as a target color

MIC_ONOFF 

turn on/off the microphone

MIC_MODE 

set the pattern changes type with the microphone

MIC_SENSITIVITY 

set microphone sensitivity

LED_ORDER 

set the new RGB led ordering

SET_TIME 

set the system time to a set time

TIMING 

set a desired on/off time

Function Documentation

◆ decode_ELK_message()

bool lampda::utils::ELK::decode_ELK_message ( const uint8_t *  msg,
uint16_t  len,
Package package 
)
inline

Decode a given message, assuming it it a ELK control message.

TODO: finish this check