Normal operation: When system boots, NeoPixel strip flashes red LEDs until BT connectivity established. Using Circuit Playground Bluefruit as remote, can cycle through various LED animations.
Adapted from "Circuit Playground Bluefruit NeoPixel Animation and Color Remote Control", https://learn.adafruit.com/circuit-play ... te-control. Using CPB as remote, Feather nRF52840 as main controller with Crickit.
All boards updated with latest firmware (bootloader for Feather, SeeSaw for Crickit). Using CP 7.2.5 with libraries from adafruit-circuitpython-bundle-7.x-mpy-20220519. NeoPixel strip configured with pixel order GRBW.
Case 1: NeoPixel connected to Crickit NeoPixel connector. Fail. Colors do not display correctly.
When system boots, NeoPixel strip flashes red, white, blue LEDs. Using CPB to control NeoPixel animations, crashes.
Following errors displayed in REPL (note: using print to track button and switch status):
Code snippet follows:Remote Control switch is to the left: LEDs off!
Remote Control switch is to the right: LEDs on!
B pressed: Animation change.
Traceback (most recent call last):
File "code.py", line 175, in <module>
File "adafruit_led_animation/sequence.py", line 197, in animate
File "adafruit_led_animation/animation/__init__.py", line 85, in animate
File "adafruit_led_animation/animation/chase.py", line 99, in draw
File "adafruit_led_animation/animation/chase.py", line 99, in <listcomp>
MemoryError: memory allocation failed, allocating 32768 bytes
Code: Select all
# Parameters for externally attached NeoPixel strip
# NeoPixel Setup
NUM_NEOPIX = 60
# - SeeSaw
from adafruit_seesaw.neopixel import NeoPixel
NEOPIX_PIN = 20
PIX_ORDER = (1, 0, 2, 3) # GRBW, Also is default for "none"
# Set up NeoPixel strip on Crickit NeoPixel using Seesaw pin 20
strip_pixels = NeoPixel(crickit.seesaw, NEOPIX_PIN, NUM_NEOPIX, brightness=0.75, auto_write=False, pixel_order = PIX_ORDER)
When system boots, NeoPixel strip flashes red LEDs.
Using CPB to control NeoPixel animations switches and displays correctly. no errors.
Code snippit:
Code: Select all
# Parameters for externally attached NeoPixel strip
# NeoPixel Setup
NUM_NEOPIX = 60
# - Feather
import neopixel
PIX_ORDER = neopixel.GRBW
# Set up NeoPixel strip on Feather pin "board.A1" used to control neopixels,
# Cricket provides power, ground from Crickit NeoPixel.
NEOPIX_PIN = board.A1
# Create the NeoPixel strip
strip_pixels = neopixel.NeoPixel(NEOPIX_PIN, NUM_NEOPIX, brightness=0.75, auto_write=False, pixel_order=PIX_ORDER)