Added 2 more keys, stripped unused cruft, and added more docs.

This commit is contained in:
Kyle Brown
2019-02-24 22:32:13 -08:00
parent 5c8c2e97fd
commit f65ea1e841
6 changed files with 86 additions and 20 deletions

View File

@@ -125,16 +125,6 @@ def rgb_tog(key, state, *args, **kwargs):
return state
def rgb_forward(key, state, *args, **kwargs):
# TODO
return state
def rgb_reverse(key, state, *args, **kwargs):
# TODO
return state
def rgb_hui(key, state, *args, **kwargs):
state.config.pixels.increase_hue(state.config.pixels.hue_step)
return state
@@ -165,6 +155,16 @@ def rgb_vad(key, state, *args, **kwargs):
return state
def rgb_ani(key, state, *args, **kwargs):
state.config.pixels.increase_ani()
return state
def rgb_and(key, state, *args, **kwargs):
state.config.pixels.decrease_ani()
return state
def rgb_mode_static(key, state, *args, **kwargs):
state.config.pixels.effect_init = True
state.config.pixels.animation_mode = 'static'