Skip to content

Commit db544f4

Browse files
committed
bugfix: output misconfigured
1 parent 9fb57e2 commit db544f4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

internal/legacy/pinhal_baremetal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package legacy
55
import "machine"
66

77
func configurePinOut(p PinOutput) {
8-
configurePin(p, machine.PinInputPulldown)
8+
configurePin(p, machine.PinOutput)
99
}
1010

1111
func configurePinInputPulldown(p PinInput) {

internal/legacy/pinhal_pulls.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ package legacy
44

55
import "machine"
66

7+
// If you are getting a build error here you then we missed adding
8+
// your CPU build tag to the list of CPUs that do not have pulldown/pullups.
9+
// Add it above and in pinhal_nopulls! You should also add a smoketest for it :)
710
const (
811
pulldown = machine.PinInputPulldown
912
pullup = machine.PinInputPullup

0 commit comments

Comments
 (0)