APA102 Library Issues: all LEDs turning on

Hey All -

I’ve been running the APA102 Pimoroni library in conjunction with an older Keybow 12 Hat that I have. It’s connected to the original Pi Zero.

Goal: I am writing a setup to send commands when a button is clicked, I then trigger the LED status based on a return status message for the purposes of controlling home automation.

Issue: when I use the APA102 library, if I try to control a single pixel, all pixels turn on despite me only telling 1 pixel to light up or change colors.

Here is the test code I’m using that is causing the issue. This code is based on what I’ve found on the APA102 GitHub at this link. Thanks!

from apa102 import APA102

lights = APA102(12, 10, 11, 8)

while True:

    lights.set_pixel(0, 128, 128, 0)
    lights.show()