Fix python 3 error & lgtm alert

This commit is contained in:
Paulchen Panther 2020-05-29 21:19:29 +02:00 committed by GitHub
parent 85e2bc9fb8
commit 08de6b7831
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
from __future__ import division
import hyperion, time, colorsys, math
hyperion.imageMinSize(64, 64)
@ -25,7 +26,7 @@ for x in range(width):
while not hyperion.abort():
ledData = bytearray()
mod = time.clock() * 100
mod = time.process_time() * 100
for x in range(height):
for y in range(width):
ledData += pal[int((plasma[y][x] + mod) % 256)]