even more bug fixes, dict key issue
This commit is contained in:
parent
760d263ee5
commit
f21b14fe80
1 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ image = Image.open("faces/prootface2.bmp")
|
||||||
image.thumbnail((128, 32), Image.ANTIALIAS)
|
image.thumbnail((128, 32), Image.ANTIALIAS)
|
||||||
fullBlinkImage = pure_pil_alpha_to_color_v2(image)
|
fullBlinkImage = pure_pil_alpha_to_color_v2(image)
|
||||||
|
|
||||||
DesiredBlinkState = 0
|
DesiredBlinkState = 10
|
||||||
currentBlinkState = 0
|
currentBlinkState = 0
|
||||||
blinkFrameCanvases = {}
|
blinkFrameCanvases = {}
|
||||||
for alpha in range(10):
|
for alpha in range(10):
|
||||||
|
|
@ -72,7 +72,7 @@ def update_screen():
|
||||||
else:
|
else:
|
||||||
currentBlinkState =- 1
|
currentBlinkState =- 1
|
||||||
|
|
||||||
next_canvas = blinkFrameCanvases[currentBlinkState/10]
|
next_canvas = blinkFrameCanvases[currentBlinkState]
|
||||||
next_canvas = matrix.SwapOnVSync(next_canvas)
|
next_canvas = matrix.SwapOnVSync(next_canvas)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue