Skip to content

Commit 67aea27

Browse files
committed
machine/rp2040: turn off pullup/down when not input type not specified
Signed-off-by: deadprogram <[email protected]>
1 parent 99bd4d2 commit 67aea27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/machine/machine_rp2040_gpio.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ func (p Pin) Configure(config PinConfig) {
181181
rp.SIO.GPIO_OE_SET.Set(mask)
182182
case PinInput:
183183
p.setFunc(fnSIO)
184+
p.pulloff()
184185
case PinInputPulldown:
185186
p.setFunc(fnSIO)
186187
p.pulldown()

0 commit comments

Comments
 (0)