Newer
Older
'''
Function test for WS2812 strips
Version: 0.1 from 26.05.2024
License: CC-BY Weja/HoFaLab
'''
number_pixels = 10
brightness = 0.4 # value between 0 and 1
import WS2812onRP2040
import time
pixels = WS2812onRP2040.strip(number_pixels,29,0.3)
pixels.pset(0,(255,0,0))
while True:
pixels.rotate(1)
pixels.show()
time.sleep(0.3)