Odd button behavior on pin22 vs 23

Status
Not open for further replies.

isdale

Active member
I have a project with a number of buttons, in a moderately complex wiring harness. At present I'm seeing an issue with buttons plugged into pin 22 (A8) on my Teensy 3.2.
Test code is slightly modified Button example. Mod is to echo values to Serial as well as toggling led on 13.

With code set to use pin 23, it works just fine.
Led on, press button and led turns off, with corresponding reports to console. Release button and led comes back on.

Switch code and wire to pin 22 and when button is pressed, led goes off, but does NOT come back on until wire is disconnected (and reconnected).

Rest of wiring is identical.

I'm gonna have to dig up another 3.2 (or compatible version) and try a different board. Maybe something happened to this one?
 
top of page read the warning

now without your code your making us do guesswork here
did you apply your pullups?
 
Status
Not open for further replies.
Back
Top