Breathing now finally working, a key to enable it, not sane defaults, and a toggle button

This commit is contained in:
Kyle Brown
2019-02-20 20:40:46 -08:00
parent 0ba5911f8f
commit 31983a0873
5 changed files with 78 additions and 49 deletions

View File

@@ -118,3 +118,14 @@ def td_pressed(key, state, *args, **kwargs):
def td_released(key, state, *args, **kwargs):
return state._process_tap_dance(key, False)
def rgb_tog(key, state, *args, **kwargs):
state.config.pixel_state['enable'] = not state.config.pixel_state['enable']
return state
def rgb_mode_breathe(key, state, *args, **kwargs):
state.config.pixel_state['animation_mode'] = 'breathing'
return state