I've tried this with both 30 and 60 pixel/meter strips and several different trinket m0s (all purchased within the last two months) all with the same result. I can control the first 85 pixels just fine (different colors brightness levels etc) but cannot control the 86th pixel or beyond.
I believe this issue may be related to this thread viewtopic.php?f=8&t=152524
My code is a lightly modified version of the demo code. Any fix for this?
Code: Select all
# Trinket IO demo
# Welcome to CircuitPython 3.1.1 :)
import board
import adafruit_dotstar as dotstar
import neopixel
# One pixel connected internally!
dot = dotstar.DotStar(board.APA102_SCK, board.APA102_MOSI, 1, brightness=0.2)
# NeoPixel strip (of 16 LEDs) connected on D4
NUMPIXELS = 85
neopixels = neopixel.NeoPixel(board.D4, NUMPIXELS, brightness=0.1, auto_write=False)
######################### MAIN LOOP ##############################
while True:
dot[0] = (255, 0, 255)
for p in range(NUMPIXELS):
if p % 3 == 0:
neopixels[p] = (255, 0, 0)
if p % 3 == 1:
neopixels[p] = (0, 255, 0)
if p % 3 == 2:
neopixels[p] = (0, 0, 255)
neopixels[NUMPIXELS - 1] = (255, 255, 255)
neopixels.show()