lib/led: add BREATHE mode (but not implemented yet)

This commit is contained in:
Beat Küng 2017-02-24 10:20:47 +01:00 committed by Lorenz Meier
parent 729486f992
commit 8dae94d90a
2 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,7 @@ uint8 MODE_DISABLED = 2 # disable this priority (switch to lower priority setti
uint8 MODE_BLINK_SLOW = 3
uint8 MODE_BLINK_NORMAL = 4
uint8 MODE_BLINK_FAST = 5
# uint8 MODE_BREATHE = 6 # not implemented (yet)
uint8 MODE_BREATHE = 6 # continuously increase & decrease brightness (solid color if driver does not support it)
uint8 MAX_PRIORITY = 2 # maxium priority (minimum is 0)

View File

@ -179,6 +179,7 @@ void LedController::get_control_data(LedControlData &control_data)
switch (cur_data.mode) {
case led_control_s::MODE_ON:
case led_control_s::MODE_BREATHE: // TODO: handle this properly
control_data.leds[i].color = cur_data.color;
break;