D10 unreliable as input on nRF52840 sense

Can any one confirm this. I tried several boards without success. I also tried with SPI.end(); in case that was on by default.

–Niklas

Hi there,

and welcome here…

So you don’t have enough forum creds to post pics & links , etc. But you can use the code tags above “</>” and paste in there you code, we can have a look. No issue with D10 as an input :+1:

HTH
GL :slight_smile: PJ :v:

try using the GPIO pin number instead of the logical pin name in your code :crossed_fingers: Not all LIB’s & BSP’s support the pin macros. FYI :v:

Changed to const int BUTTON_PIN = D10;, seems fine now. I’m using mbed enable could have been a mix up there. Thanks a lot.

–N

1 Like