Skip to content

Commit 52c50c3

Browse files
Small WIPs
1 parent e965b84 commit 52c50c3

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

CLUE_Light_Painter/bmp2led.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ def process(self, input_filename, output_filename, rows,
294294
# floating-point) pixel values resulting from the
295295
# interpolation, with gamma correction applied and
296296
# scaled back up to the 0-255 range.
297-
# ValueError: operands could not be broadcast together
298297
want = ((((row_a_data * row_a_weight) +
299298
(row_b_data * row_b_weight)) **
300299
self.gamma) * 255.001)

CLUE_Light_Painter/code.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,6 @@ def paint(self):
219219
board.DISPLAY.brightness = 0 # Screen backlight OFF
220220
painting = False
221221

222-
# num_rows = was determined during conversion
223-
224222
gc.collect() # Helps make playback a little smoother
225223

226224
while True:
@@ -239,7 +237,7 @@ def paint(self):
239237
file.seek(row * self.row_size)
240238
self.spi.write(file.read(self.row_size))
241239
row += 1
242-
if row >= num_rows:
240+
if row >= self.num_rows:
243241
if self.loop:
244242
row = 0
245243
else:

0 commit comments

Comments
 (0)