LED Ring NeoPixel
Revision as of 11:29, 19 August 2020 by Manuela (talk | contribs) (→How to control it in MicroPython)
Contents
Description
Text
Image(s)
How to connect it electrically
Text
Image(s)
How to control it in MicroPython
1 import neopixel
2 from machine import Pin
3
4 # number of leds
5 n=8
6 # connected Pin
7 p=0
8
9 np = neopixel.NeoPixel(Pin(p),n)
10
11 # sets color of the led at position 0 to (r,g,b)
12 np[0] = (255,0,0)
13 # colors the leds
14 np.write()
A small Program in MicroPython
1 # todo
2 # code goes here
text
image(s)
Related Tutorial Videos
change to the right video
Background
text
image(s)