from machine import Pin
from neopixel import NeoPixel
from time import sleep
np = NeoPixel(Pin(12, Pin.OUT), 16); np.bright = 50
for count in range(5):
np[0] = (int(255 * np.bright / 100), int(0 * np.bright / 100), int(0 * np.bright / 100))
np.write()
sleep(1)
np[0] = (int(51 * np.bright / 100), int(255 * np.bright / 100), int(51 * np.bright / 100))
np.write()
sleep(1)
np[0] = (int(51 * np.bright / 100), int(51 * np.bright / 100), int(255 * np.bright / 100))
np.write()
sleep(1)
for i in range(np.n): np[i] = (0, 0, 0)
np.write()