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
@@ -8,12 +8,12 @@ import (
// Device wraps a pin object for an easy driver interface.
type Device struct {
Pin machine.GPIO
Pin machine.Pin
}
// New returns a new WS2812 driver. It does not touch the pin object: you have
// to configure it as an output pin before calling New.
func New(pin machine.GPIO) Device {
func New(pin machine.Pin) Device {
return Device{pin}
}