more fixes
This commit is contained in:
parent
3651b6fb70
commit
d1a3a2b35d
@ -236,6 +236,7 @@ def change_blue(amount):
|
||||
led_blue_brightness = amount*factor
|
||||
|
||||
def change_led_colour(red_amount,green_amount,blue_amount):
|
||||
global leds_constant_update, led_red, led_green, led_blue, led_red_brightness, led_green_brightness, led_blue_brightness
|
||||
# sets an RGB value for the led strip.
|
||||
if red_amount < 0 or red_amount > 255 or green_amount < 0 or green_amount > 255 or blue_amount < 0 or blue_amount > 255:
|
||||
# valid rgb values should be between 0 and 255
|
||||
@ -268,7 +269,7 @@ def change_led_speed(colour, speed):
|
||||
return false
|
||||
|
||||
def led_handler():
|
||||
global timer_led_blink_toggle, timer_led_switched, timer_led_updated
|
||||
global timer_led_blink_toggle, timer_led_switched, timer_led_updated, leds_constant_update
|
||||
|
||||
# led blinking effect. can be toggled on or off by setting led_blink to true or false.
|
||||
# blinks every second-
|
||||
@ -538,9 +539,6 @@ timer_game_ending_started = False
|
||||
# test: enable led blinking permanently
|
||||
led_blink = False
|
||||
timer_led_blink_toggle = 1
|
||||
led_red_brightness_temp = 0
|
||||
led_green_brightness_temp = 0
|
||||
led_blue_brightness_temp = 0
|
||||
timer_led_switched = 0
|
||||
|
||||
############################################
|
||||
|
Loading…
Reference in New Issue
Block a user