linted...clean

This commit is contained in:
Mikey Sklar 2018-11-25 15:07:10 -07:00
parent f22fd3393e
commit 6851712169
2 changed files with 5 additions and 6 deletions

View file

@ -1,4 +1,3 @@
import time
import board
import neopixel
import adafruit_fancyled.adafruit_fancyled as fancy
@ -7,7 +6,7 @@ num_leds = 16 # number of LEDs per strip
saturation = 255 # 0-255, 0 is pure white, 255 is fully saturated color
blend = True # color blending between palette indices
brightness = 0.8 # brightness the range is 0.0 - 1.0
offset = 0 # flame flicker
flicker = 0 # flame flicker
# NeoPixel objects using
leds = neopixel.NeoPixel(board.D0, num_leds)
@ -28,5 +27,5 @@ def fire_2018(strip, offset):
strip[i] = color.pack()
while True:
fire_2018(leds, offset)
offset += 0.3 # flame flicker, adjust value to control speed
fire_2018(leds, flicker)
flicker += 0.3 # flame flicker, adjust value to control speed