all: refactor all current drivers to use new machine.Pin interface

Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
Ron Evans
2019-05-26 17:01:47 +02:00
parent 2c0bde0dad
commit 3f946868e1
19 changed files with 134 additions and 159 deletions
+2 -2
View File
@@ -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)