最新回复
官方的例程
from machine import Pin
from neopixel import NeoPixel
pin = Pin(0, Pin.OUT) # set GPIO0 to output to drive NeoPixels
np = NeoPixel(pin, 8) # create NeoPixel driver on GPIO0 for 8 pixels
np[0] = (255, 255, 255) # set the first pixel to white
np.write() # write data to all pixels
r, g, b = np[0] # get first pixel colour
详情
回复
发表于 2020-5-9 19:47
| ||
|
||
| ||
|
||
| ||
|
||
| ||
|
||
| |
|
|
论坛测评队员
EEWorld Datasheet 技术支持