I have just got a nano 33 IoT and have been struggling to get consistent functionality for a simple set of internal_pullup switched on the digital pins.
I set all of the pins to
pinMode(n, INPUT_PULLUP); [where n is the pin number from 0 - 13]. When I
digitalRead(n) each of the pins i get the following:
The only relationship I can see is that on the screen print of the pin names on the board I notice that D4, D7, D8 all lack a little dash below their name but all the other pins have one.
But then to confuse matters pin D2 does have a dash under its name which would suggest logically that it should read high not low.
Frustrated and confused... any thoughts?