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
+1 -1
View File
@@ -43,7 +43,7 @@ type Device struct {
}
// New returns a new thermistor driver given an ADC pin.
func New(pin uint8) Device {
func New(pin machine.Pin) Device {
adc := machine.ADC{pin}
return Device{
adc: &adc,