from machine import Pin
from neopixel import NeoPixel
import time
red = (255,0,0)
Pin = Pin(15,Pin.OUT)
LED_NUM=7
np = NeoPixel(Pin,LED_NUM)
while True:
for i in range(LED_NUM):
np[i] = red
np.write()
time.sleep(1)
from machine import Pin
from neopixel import NeoPixel
import time
red = (255,0,0)
Pin = Pin(15,Pin.OUT)
LED_NUM=7
np = NeoPixel(Pin,LED_NUM)
while True:
for i in range(LED_NUM):
np[i] = red
np.write()
time.sleep(1)