mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-03 14:37:46 +00:00
e70beede1c
Signed-off-by: deadprogram <ron@hybridgroup.com>
18 lines
342 B
Go
18 lines
342 B
Go
//go:build qtpy
|
|
// +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()
|
|
}
|