I'm working with an array of ~1400 dotstar LED's running off a Raspberry Pi 3 B+ with raspian 4.19. The program is in python 3.5 using the DotStar package and I'm running into an issue. Specifically, when trying to set up the board with:
dotstar.DotStar(board.SCK, board.MOSI, 1364, brightness=0.2)
I get the following error:
OverflowError: Argument list size exceeds 4096 bytes.
I've tried setting spidev.bufsiz=32768 in cmdline.txt, which seems to have taken, but I'm still getting the same error. Is there anywhere else I need to change the spidev buffersize to get things working?
Traceback (most recent call last): File "/home/pi/Desktop/Mike Test 1.py", line 9, in <module> dots[dot] = (0,0,255) File "/usr/local/lib/python3.5/dist-packages/adafruit_dotstar.py", line 200, in __setitem__ self.show() File "/usr/local/lib/python3.5/dist-packages/adafruit_dotstar.py", line 269, in show self._spi.write(buf) File "/home/pi/.local/lib/python3.5/site-packages/busio.py", line 138, in write return self._spi.write(buf, start, end) File "/home/pi/.local/lib/python3.5/site-packages/adafruit_blinka/microcontroller/generic_linux/spi.py", line 56, in write self._spi.writebytes([x for x in buf[start:end]]) OverflowError: Argument list size exceeds 4096 bytes.
import board import adafruit_dotstar as dotstar dots = dotstar.DotStar(board.SCK, board.MOSI, 1364, brightness=0.2) n_dots = len(dots) for dot in range(n_dots): dots[dot] = (0,0,255)