mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 11:07:46 +00:00
machine/rp2040: turn off pullup/down when not input type not specified
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user