mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 18:53:29 +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)
|
rp.SIO.GPIO_OE_SET.Set(mask)
|
||||||
case PinInput:
|
case PinInput:
|
||||||
p.setFunc(fnSIO)
|
p.setFunc(fnSIO)
|
||||||
|
p.pulloff()
|
||||||
case PinInputPulldown:
|
case PinInputPulldown:
|
||||||
p.setFunc(fnSIO)
|
p.setFunc(fnSIO)
|
||||||
p.pulldown()
|
p.pulldown()
|
||||||
|
|||||||
Reference in New Issue
Block a user