mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-16 04:43:25 +00:00
bugfix: output misconfigured
This commit is contained in:
@@ -5,7 +5,7 @@ package legacy
|
|||||||
import "machine"
|
import "machine"
|
||||||
|
|
||||||
func configurePinOut(p PinOutput) {
|
func configurePinOut(p PinOutput) {
|
||||||
configurePin(p, machine.PinInputPulldown)
|
configurePin(p, machine.PinOutput)
|
||||||
}
|
}
|
||||||
|
|
||||||
func configurePinInputPulldown(p PinInput) {
|
func configurePinInputPulldown(p PinInput) {
|
||||||
|
|||||||
@@ -4,6 +4,9 @@ package legacy
|
|||||||
|
|
||||||
import "machine"
|
import "machine"
|
||||||
|
|
||||||
|
// If you are getting a build error here you then we missed adding
|
||||||
|
// your CPU build tag to the list of CPUs that do not have pulldown/pullups.
|
||||||
|
// Add it above and in pinhal_nopulls! You should also add a smoketest for it :)
|
||||||
const (
|
const (
|
||||||
pulldown = machine.PinInputPulldown
|
pulldown = machine.PinInputPulldown
|
||||||
pullup = machine.PinInputPullup
|
pullup = machine.PinInputPullup
|
||||||
|
|||||||
Reference in New Issue
Block a user