ghi-electronics / micropython

A MicroPython port to GHI Electronics SITCore SC13xxx line of products.
https://micropython.org
MIT License
0 stars 0 forks source link

Add buildin neopixel #7

Open Palomino34 opened 3 years ago

Palomino34 commented 3 years ago

added:

import machine, neopixel
from machine import Pin
psig=Pin("PA10",Pin.OUT_PP)
np = neopixel.NeoPixel(psig, 2)  //2 led
np[0] = (255, 0, 0)
np[1] = (0, 255, 0)
np.write()