summaryrefslogtreecommitdiff
path: root/client.py
diff options
context:
space:
mode:
authorYuval Adam <yuv.adm@gmail.com>2014-06-08 21:36:27 +0300
committerYuval Adam <yuv.adm@gmail.com>2014-06-08 21:37:32 +0300
commit47b0f9ed5a9bc48128bc8195c90ea76876a54283 (patch)
treeddf65fb769a39b5f7f5c58004c96d7b08c7a2035 /client.py
parentac0872d9d377f2222de91fd85d05a2a998737e3c (diff)
Continue process single loop
Diffstat (limited to 'client.py')
-rw-r--r--client.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/client.py b/client.py
index 721d510..71fa49e 100644
--- a/client.py
+++ b/client.py
@@ -37,16 +37,21 @@ class LightLoopClient(object):
return (tree << 5) | (channel << 2) | mode
def process_single_loop(self):
- raw_data = ''
+ data = []
for frame in zip(*self.composition):
- print frame
sequences = [zip(*self.sequences[seq]) for seq in frame]
sequences = zip(*sequences)
- raw_data += ''.join([''.join([''.join(y) for y in x]) for x in sequences])
- print raw_data
+ # print ''.join([''.join([''.join(y) for y in x]) for x in sequences])
+ data.append(sequences)
+
+ for sequence in data:
+ for frame in sequence:
+ for tree, tree_frame in enumerate(frame):
+ for channel, mode in enumerate(tree_frame):
+ print 'tree {} channel {} mode {}'.format(tree, channel, mode)
+ print 'sleep'
def loop(self):
- print self
self.process_single_loop()