Skip to content
Snippets Groups Projects
Commit 35429087 authored by Werner Jarmatz's avatar Werner Jarmatz
Browse files

Upload New File

parent 7505c6f1
No related merge requests found
'''
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)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment