I'm not sure what I'm doing wrong, but the blink program that I literally copy/pasted from the LED animation page (https://learn.adafruit.com/circuitpytho ... ons/colors) is blinking other colors in addition to the default red, sometimes not all the LEDS, etc (video below).
Hoping somebody can point out if/what I'm doing wrong here.
Thanks!
Code: (i changed the pin & pixel number for my project, and also reduced the brightness to try to make it easier to see the issue on the video)
Code: Select all
import board
import neopixel
from adafruit_led_animation.animation.blink import Blink
from adafruit_led_animation.color import RED
# Update to match the pin connected to your NeoPixels
pixel_pin = board.A1
# Update to match the number of NeoPixels you have connected
pixel_num = 120
pixels = neopixel.NeoPixel(pixel_pin, pixel_num, brightness=0.01, auto_write=False)
blink = Blink(pixels, speed=0.5, color=RED)
while True:
blink.animate()
note - I didn't have a 1k capacitor as is recommended in the literature, so those green ones are three 330uF in parallel.
Results:
In case those photo embeds don't work...
https://imgur.com/a/mdyuYYs
Other - I saved into my circuit playground express 'lib' folder:
folder: adafruit_led_animation
file: neopixel.mpy
from
zip: adafruit-circuitpython-bundle-9.x-mpy-20250123