# NeoPixel driver demo, Use the neopixel module
from machine import Pin
from neopixel import NeoPixel
pin = Pin(21, Pin.OUT) # set GPIO0 to output to drive NeoPixels
np = NeoPixel(pin, 8) # create NeoPixel driver on GPIO0 for 8 pixels
np[0] = (255, 5, 5) # set the first pixel to white with low intensity
np[1] = (5, 0, 0) # set the second pixel to red with low intensity
np[2] = (0, 5, 0) # set the third pixel to green with low intensity
np[3] = (0, 0, 5) # set the fourth pixel to blue with low intensity
np[4] = (5, 255, 0) # set the fifth pixel to yello with low intensity
while True:
np.write() # write the ESP32 ledpixelbuffer now to the ledstrip!