mirror of
https://github.com/undera/pylgbst.git
synced 2020-11-18 19:37:26 -08:00
Fix #25
This commit is contained in:
parent
24797cae51
commit
e4ed6d3904
@ -14,7 +14,7 @@ def demo_led_colors(movehub):
|
||||
# LED colors demo
|
||||
log.info("LED colors demo")
|
||||
movehub.color_distance_sensor.subscribe(lambda x, y: None)
|
||||
for color in COLORS.keys()[1:] + [COLOR_BLACK]:
|
||||
for color in list(COLORS.keys())[1:] + [COLOR_BLACK]:
|
||||
log.info("Setting LED color to: %s", COLORS[color])
|
||||
movehub.led.set_color(color)
|
||||
sleep(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user