Python Output - Blinking Seperate Neopixels

dandspach
Sun, 12 Mar 2023 15:11:09 +0000
General

problem: how to code Python in Node Red output to blink separate Neopixels

I have the following output to a .py file, which is run by a crontab at certain intervals. Currently, lighting works perfect and all leds are behaving as they should. I would like to set an individual pixel to 'blink' if a condition is met and change the output of the Node Red Python file. I'm thinking I have to 'wrap' each pixel in some kind of loop command. Ideas?

pixels[25]=(0,255,0)
pixels.show()

pixels[29]=(0,0,255)
pixels.show()

I would like pixel[29] to blink, while pixel[25] stays solid.

<

7 posts - 3 participants