aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2019-01-29 17:24:30 +0100
committerKarel Kočí <karel.koci@nic.cz>2019-01-29 17:24:30 +0100
commit12f16638ff917199de90088336193391de2e124a (patch)
tree9dfbb3eff946794520628ef7e6b86147b65b6fa9
parent03a7fe53f739adee462bbdef044fc2071f090bdf (diff)
downloadturris-tetris-master.tar.gz
turris-tetris-master.tar.bz2
turris-tetris-master.zip
slave: always enable led we controlHEADv1.3.1master
-rw-r--r--turtetris_slave/leds.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/turtetris_slave/leds.py b/turtetris_slave/leds.py
index 3075827..e780d0f 100644
--- a/turtetris_slave/leds.py
+++ b/turtetris_slave/leds.py
@@ -3,7 +3,7 @@ from subprocess import call
def prepare():
"Prepare leds"
- call("rainbow all enable FFFFFF", shell=True)
+ call("rainbow all enable 000000", shell=True)
def clear():
@@ -32,5 +32,6 @@ def output(data):
args = ['rainbow']
for i in range(0, 12):
args.append(__MAP__[i])
+ args.append('enable')
args.append(str(data[i]))
call(args)