diff options
author | deadprogram <[email protected]> | 2022-07-27 18:47:37 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-07-27 21:45:45 +0200 |
commit | 67aea275c5cc5edc7738ef424424c20b41c8cdf9 (patch) | |
tree | 4803ac9b84cb680f97246f59b3b15600f00db965 /src/machine/machine_rp2040_gpio.go | |
parent | 99bd4d2c7cdc838830af75d433effaf9c762c741 (diff) | |
download | tinygo-67aea275c5cc5edc7738ef424424c20b41c8cdf9.tar.gz tinygo-67aea275c5cc5edc7738ef424424c20b41c8cdf9.zip |
machine/rp2040: turn off pullup/down when not input type not specified
Signed-off-by: deadprogram <[email protected]>
Diffstat (limited to 'src/machine/machine_rp2040_gpio.go')
-rw-r--r-- | src/machine/machine_rp2040_gpio.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/machine/machine_rp2040_gpio.go b/src/machine/machine_rp2040_gpio.go index 7603ce57d..b19014b93 100644 --- a/src/machine/machine_rp2040_gpio.go +++ b/src/machine/machine_rp2040_gpio.go @@ -181,6 +181,7 @@ func (p Pin) Configure(config PinConfig) { rp.SIO.GPIO_OE_SET.Set(mask) case PinInput: p.setFunc(fnSIO) + p.pulloff() case PinInputPulldown: p.setFunc(fnSIO) p.pulldown() |