mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-18 05:33:58 +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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user