NeoPixel access individual LEDs Pico W CircuitPython

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
sethzarny
 
Posts: 33
Joined: Thu Jan 27, 2022 3:15 pm

NeoPixel access individual LEDs Pico W CircuitPython

Post by sethzarny »

I am building the NeoPixel Ring Lamp and am programming it
as a clock. I need to access individual leds but cannot find appropriate documentation and sample.py programs that will explain this. There is a alot of docs but I cannot find this. I did have to purchase some additional 60/4 rings due to the fragile nature of this ring.

User avatar
sethzarny
 
Posts: 33
Joined: Thu Jan 27, 2022 3:15 pm

Re: NeoPixel access individual LEDs Pico W CircuitPython

Post by sethzarny »

One other comment. I am programming this in CircuitPython on the Pico W. Thank you.

User avatar
adafruit_support_carter
 
Posts: 29163
Joined: Tue Nov 29, 2016 2:45 pm

Re: NeoPixel access individual LEDs Pico W CircuitPython

Post by adafruit_support_carter »

The general syntax is:

Code: Select all

pixels[i] = color
where pixels is your NeoPixel object, i is the index of the LED you want to set, and color is the color.

User avatar
sethzarny
 
Posts: 33
Joined: Thu Jan 27, 2022 3:15 pm

Re: NeoPixel access individual LEDs Pico W CircuitPython

Post by sethzarny »

Follow up question. I need to change the brightness of just one pixel LED. I see where you set the pixel brightness for all the pixels using this command:
pixels = neopixel.NeoPixel(board.GP1, 124, auto_write=False, brightness=0.15)

How do I change the brightness of just one pixel without effecting the others using CircuitPython? I am using a pixel to show the seconds and I need that pixel brighter than the rest. Thank you.

User avatar
adafruit_support_carter
 
Posts: 29163
Joined: Tue Nov 29, 2016 2:45 pm

Re: NeoPixel access individual LEDs Pico W CircuitPython

Post by adafruit_support_carter »

There's no individual pixel brightness setting. So this will have to be done by directly changing the color of that pixel. That is - reduce it's RGB values directly in the color setting.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”