1
0
mirror of https://github.com/undera/pylgbst.git synced 2020-11-18 19:37:26 -08:00
This commit is contained in:
Andrey Pohilko 2019-03-15 18:52:34 +03:00
parent 24797cae51
commit e4ed6d3904

View File

@ -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)