aboutsummaryrefslogtreecommitdiff
path: root/turtetris_slave/leds.py
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-07-19 11:06:04 +0200
committerKarel Kočí <karel.koci@nic.cz>2017-07-19 14:31:18 +0200
commitb934596cfd5415ce83b5a7b42120e0f0e229937a (patch)
treeeba32535681447d1eedad0e8f1f40f299f86f027 /turtetris_slave/leds.py
parentdd8bcc2da80d15280b9aa94cec648fbdac576cc3 (diff)
downloadturris-tetris-b934596cfd5415ce83b5a7b42120e0f0e229937a.tar.gz
turris-tetris-b934596cfd5415ce83b5a7b42120e0f0e229937a.tar.bz2
turris-tetris-b934596cfd5415ce83b5a7b42120e0f0e229937a.zip
Add screen checker
Diffstat (limited to 'turtetris_slave/leds.py')
-rw-r--r--turtetris_slave/leds.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/turtetris_slave/leds.py b/turtetris_slave/leds.py
index cdafca2..3075827 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 intensity 10 FFFFFF", shell=True)
+ call("rainbow all enable FFFFFF", shell=True)
def clear():
@@ -32,7 +32,5 @@ def output(data):
args = ['rainbow']
for i in range(0, 12):
args.append(__MAP__[i])
- args.append(str(data[i]['color']))
- args.append('intensity')
- args.append(str(data[i]['intens']))
+ args.append(str(data[i]))
call(args)