Generate the stream with \n between frames

master
Raphaël Vinot 2015-04-19 22:48:08 +02:00
parent 4410b78f7f
commit 7c793b4428
1 changed files with 3 additions and 1 deletions

View File

@ -44,7 +44,7 @@ def prepare_data(dimension, b):
else:
brightness = b
_byte_lookup = _build_byte_lookup()
data = jarray.zeros(dimension * 24, "b")
data = jarray.zeros(dimension * 24 + 1, "b")
return data
def image2data(data, long_line):
@ -66,4 +66,6 @@ def image2data(data, long_line):
data[offset] = b
offset += 1
pixel_nb +=1
# New line
data[-1] = 10
return data