mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-16 12:53:23 +00:00
all: refactor all current drivers to use new machine.Pin interface
Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
@@ -14,8 +14,8 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
neo := machine.GPIO{machine.NEOPIXELS}
|
||||
neo.Configure(machine.GPIOConfig{Mode: machine.GPIO_OUTPUT})
|
||||
neo := machine.NEOPIXELS
|
||||
neo.Configure(machine.PinConfig{Mode: machine.PinOutput})
|
||||
|
||||
ws := ws2812.New(neo)
|
||||
leds := make([]color.RGBA, 10)
|
||||
|
||||
Reference in New Issue
Block a user