add light to settings face
This commit is contained in:
parent
b96d1eabf4
commit
0cfcb1b601
@ -311,6 +311,9 @@ bool settings_face_loop(movement_event_t event, void *context) {
|
|||||||
settings_state_t *state = (settings_state_t *)context;
|
settings_state_t *state = (settings_state_t *)context;
|
||||||
|
|
||||||
switch (event.event_type) {
|
switch (event.event_type) {
|
||||||
|
case EVENT_LIGHT_LONG_PRESS:
|
||||||
|
movement_illuminate_led();
|
||||||
|
break;
|
||||||
case EVENT_LIGHT_BUTTON_DOWN:
|
case EVENT_LIGHT_BUTTON_DOWN:
|
||||||
state->current_page = (state->current_page + 1) % state->num_settings;
|
state->current_page = (state->current_page + 1) % state->num_settings;
|
||||||
// fall through
|
// fall through
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user