ws2812: add support for qtpy and atsame5x

This commit is contained in:
sago35
2021-05-30 11:49:53 +09:00
committed by Ron Evans
parent 6b914f7af7
commit 5645eb3f91
6 changed files with 24 additions and 6 deletions
+16
View File
@@ -0,0 +1,16 @@
// +build qtpy
package main
import "machine"
// Replace neo and led in the code below to match the pin
// that you are using if different.
var neo machine.Pin = machine.NEOPIXELS
var led = machine.NoPin
func init() {
pwr := machine.NEOPIXELS_POWER
pwr.Configure(machine.PinConfig{Mode: machine.PinOutput})
pwr.High()
}