Skip to content
Snippets Groups Projects
Verified Commit d3106d0e authored by rahix's avatar rahix
Browse files

chore(leds): Rename functions for consistency


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent 6f1981a5
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ def clear(): ...@@ -25,7 +25,7 @@ def clear():
sys_leds.set_all(values) sys_leds.set_all(values)
def flashlight(on): def set_flashlight(on):
""" """
Turn on the bright side LED. Turn on the bright side LED.
...@@ -37,25 +37,7 @@ def flashlight(on): ...@@ -37,25 +37,7 @@ def flashlight(on):
sys_leds.set_flashlight(on) sys_leds.set_flashlight(on)
def dim_top(value): def set_rocket(led, value):
"""
Set global brightness for top RGB LEDs.
:param int value: Brightness. Default = 1, range = 1...8
"""
sys_leds.dim_top(value)
def dim_bottom(value):
"""
Set global brightness for bottom RGB LEDs.
:param int value: Brightness. Default = 8, range = 1...8
"""
sys_leds.dim_bottom(value)
def rocket(led, value):
""" """
Set brightness of one of the rocket LEDs. Set brightness of one of the rocket LEDs.
...@@ -76,6 +58,24 @@ def rocket(led, value): ...@@ -76,6 +58,24 @@ def rocket(led, value):
sys_leds.set_rocket(led, value) sys_leds.set_rocket(led, value)
def dim_top(value):
"""
Set global brightness for top RGB LEDs.
:param int value: Brightness. Default = 1, range = 1...8
"""
sys_leds.dim_top(value)
def dim_bottom(value):
"""
Set global brightness for bottom RGB LEDs.
:param int value: Brightness. Default = 8, range = 1...8
"""
sys_leds.dim_bottom(value)
def prep(led, color): def prep(led, color):
""" """
Prepare am RGB LED to be set to an RGB value. Prepare am RGB LED to be set to an RGB value.
...@@ -183,7 +183,7 @@ def gay(value=0.5): ...@@ -183,7 +183,7 @@ def gay(value=0.5):
sys_leds.set_all_hsv(values) sys_leds.set_all_hsv(values)
def powersave(eco=True): def set_powersave(eco=True):
""" """
Enable or disable powersave mode. Enable or disable powersave mode.
...@@ -197,7 +197,7 @@ def powersave(eco=True): ...@@ -197,7 +197,7 @@ def powersave(eco=True):
sys_leds.set_powersave(eco) sys_leds.set_powersave(eco)
def gamma(power=4.0): def set_gamma(power=4.0):
""" """
Applies same power function gamma correction to all RGB channels. Applies same power function gamma correction to all RGB channels.
...@@ -209,7 +209,7 @@ def gamma(power=4.0): ...@@ -209,7 +209,7 @@ def gamma(power=4.0):
sys_leds.update() sys_leds.update()
def gamma_rgb(channel, power=4.0, gain=1.0): def set_gamma_rgb(channel, power=4.0, gain=1.0):
""" """
Applies power function gamma correction with optional amplification to a single RGB channel. Applies power function gamma correction with optional amplification to a single RGB channel.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment