Does does gpio25 need a pull-up resistor on its config?
My config was:
but I suspect it might need to be:
to actually work with gpio25.
I was getting the same behavior of the optotap LED triggering correctly, but Klipper not detecting a change in state. When I moved to gpio28, then Klipper was detecting it being triggered.
So I tried another sb2040 board, and was getting ADC out of ranges errors. In the process of troubleshooting that, my Optotap 2.1 hit some metal and shorted. So now I can't test any further. And I've got the 5V sensor on order now, so will probably be using gpio28 anyway.
For all I know, gpio28 should also have a pull-up resistor for reliable operation, it just happens to work without it.
I think I can test the pull-up resistor theory by connecting gpio25 to GND directly, but someone tell me if that's a bad idea.