I have a little project in which I can connect a foot pedal via a barrel jack. The female jack goes to p10 and has the internal pullup resistor on. It all works fine. Except that when I physically connect the pedal via the jack it generates a LOW. I am debouncin / denoisin all my buttons, not sure how else to try fix this.
Whats the best way of dealing with a floating pin that's later connected?