2026-09-19 19:14 UTC
@revk@toot.me.uk As long as you don't care what the pin state is during the startup phase, when there's no microcontroller power, or if you don't need a strong pullup/down for a particular reason, then just relying on the internal pullup/down is totally fine. As you said, that's why it's there.
One of the (many) big issues I see with AI answers is that they are presented with so much authority, when in reality they are no better than random answers that would otherwise have been found with a web search. Ask any (decent) engineer and you'll get an appropriate answer with a list of caveats and things to watch out for, and maybe something will be learned in the process. A good engineer knows when to say "I don't know" as well, instead of just giving a confidently wrong answer.
(Obviously this applies to any profession, but being an engineer myself that's the majority of interactions I experience.)
Replies (2)
-
@revk@toot.me.uk 2026-09-20 01:18
@sconient@techhub.social in addition my code sets pull up or down on all usable GPIOs at start up (matching what it sees so as not to change the actual state). This stops them floating, and switching the input logic. They then get whatever initialisation is needed. It did not call me out of NC GPIO inputs floating!
-
@lklyne@indieweb.social 2026-09-20 06:42
@sconient@techhub.social @revk@toot.me.uk much better response than mine. Ai says you are wrong an engineer is more likely to ask a question, e.g. is there a problem if processor could be held in reset and no pullup applied?