mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-04 06:57:48 +00:00
17 lines
326 B
Go
17 lines
326 B
Go
// +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()
|
|
}
|