Update CPX-NeoPixels.py

del whitespace
This commit is contained in:
Mike Barela 2018-07-18 09:46:17 -04:00 committed by GitHub
parent a2d2a37d12
commit 5efd12edd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
# Use the 10 NeoPixels on Circuit Playground Express via the
# Use the 10 NeoPixels on Circuit Playground Express via the
# Adafruit neopixel library
import time
import neopixel
@ -11,10 +11,10 @@ CPX_pixels = neopixel.NeoPixel(board.NEOPIXEL, 10, brightness=0.5)
for i in range(50):
CPX_pixels.fill((0, 0, i))
time.sleep(0.05)
# blast off!
CPX_pixels.fill((255, 0, 0))
while True:
# pulse effect
for i in range(255, 0, -5):