from machine import Pin
from neopixel import NeoPixel
import time
strip_lenght = 6
pin = Pin(14, Pin.OUT) # set a pin to output to drive NeoPixels
leds = NeoPixel(pin, strip_lenght) # create NeoPixel driver on pin for 8 pixels
# set the starting pixels
leds[0] = [255,0,0]
leds[3] = [0,255,0]
leds[6] = [0,0,255]
#main loop
while(1):
for index in range(strip_lenght):
if index == 0:
remeberLast = leds[strip_lenght - 1]
leds[strip_lenght - 1] = leds[0]
elif index == strip_lenght - 1:
leds[index - 1] = remeberLast
else:
leds[index - 1] = leds[index]
leds.write() # write data to all pixels
time.sleep(0.5) # sleep 0.5s before moving again
esp:0
esp:2
esp:4
esp:5
esp:12
esp:13
esp:14
esp:15
esp:16
esp:17
esp:18
esp:19
esp:21
esp:22
esp:23
esp:25
esp:26
esp:27
esp:32
esp:33
esp:34
esp:35
esp:3V3
esp:EN
esp:VP
esp:VN
esp:GND.1
esp:D2
esp:D3
esp:CMD
esp:5V
esp:GND.2
esp:TX
esp:RX
esp:GND.3
esp:D1
esp:D0
esp:CLK
rgb1:VDD
rgb1:DOUT
rgb1:VSS
rgb1:DIN
rgb2:VDD
rgb2:DOUT
rgb2:VSS
rgb2:DIN
rgb3:VDD
rgb3:DOUT
rgb3:VSS
rgb3:DIN
rgb4:VDD
rgb4:DOUT
rgb4:VSS
rgb4:DIN
rgb5:VDD
rgb5:DOUT
rgb5:VSS
rgb5:DIN
rgb6:VDD
rgb6:DOUT
rgb6:VSS
rgb6:DIN