From db544f4ca79e7ebb3d1b394f5b6db1326e701c71 Mon Sep 17 00:00:00 2001 From: soypat Date: Wed, 9 Jul 2025 12:13:17 -0300 Subject: [PATCH] bugfix: output misconfigured --- internal/legacy/pinhal_baremetal.go | 2 +- internal/legacy/pinhal_pulls.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/legacy/pinhal_baremetal.go b/internal/legacy/pinhal_baremetal.go index b63e06d..9fbf79b 100644 --- a/internal/legacy/pinhal_baremetal.go +++ b/internal/legacy/pinhal_baremetal.go @@ -5,7 +5,7 @@ package legacy import "machine" func configurePinOut(p PinOutput) { - configurePin(p, machine.PinInputPulldown) + configurePin(p, machine.PinOutput) } func configurePinInputPulldown(p PinInput) { diff --git a/internal/legacy/pinhal_pulls.go b/internal/legacy/pinhal_pulls.go index 082e546..d7e88c6 100644 --- a/internal/legacy/pinhal_pulls.go +++ b/internal/legacy/pinhal_pulls.go @@ -4,6 +4,9 @@ package legacy 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 ( pulldown = machine.PinInputPulldown pullup = machine.PinInputPullup