pimoroni / blinkt

Python Library for Blinkt; 8 APA102 LEDs for your Raspberry Pi
https://shop.pimoroni.com/products/blinkt
MIT License
314 stars 103 forks source link

Update candle.py #60

Closed jhgoebbert closed 6 years ago

jhgoebbert commented 7 years ago

Calling clear() before setting the pixels again. Without this clear() all pixels are turned on and nothing more.

Gadgetoid commented 7 years ago

Did you have a problem with this happening, since there's a blinkt.clear() at the end of the while loop, here: https://github.com/jhgoebbert/blinkt/blob/e2182a434c9d9893e3e12e6c01bb3b972a9b100d/examples/candle.py#L36 which should suffice?