I'm clutching at straws here but.....
Pin D10 when set for input is permanently HIGH and I'm unable to pull it LOW at all, e.g. via a momentary switch connected between the pin and gnd. On every other pin, my very simple app works fine (it's code for a rotary encoder with the switch connected to a digital pin.) On pressing the rotary encoder, any pin I try is pulled low, except when connected to D10.
I've tested the pin with an LED connected and in OUTPUT mode, D10 seems ok, I can write HIGH and LOW and the LED goes on and off. I then tested it with D4 set to alternate output HIGH and LOW with D10 set to read the value and then output it on D11 to an LED. I tested the code with a different pin first and as expected the LED goes on and off; with D10 the LED is permanently on. As I say, I can't pull it LOW when set to INPUT.
Is there anything special about D10 that I don't know or is it likely duff? I've not actually used it for anything until today so I've not accidentally connected a high voltage or current to it.
Thanks
Pin D10 when set for input is permanently HIGH and I'm unable to pull it LOW at all, e.g. via a momentary switch connected between the pin and gnd. On every other pin, my very simple app works fine (it's code for a rotary encoder with the switch connected to a digital pin.) On pressing the rotary encoder, any pin I try is pulled low, except when connected to D10.
I've tested the pin with an LED connected and in OUTPUT mode, D10 seems ok, I can write HIGH and LOW and the LED goes on and off. I then tested it with D4 set to alternate output HIGH and LOW with D10 set to read the value and then output it on D11 to an LED. I tested the code with a different pin first and as expected the LED goes on and off; with D10 the LED is permanently on. As I say, I can't pull it LOW when set to INPUT.
Is there anything special about D10 that I don't know or is it likely duff? I've not actually used it for anything until today so I've not accidentally connected a high voltage or current to it.
Thanks
Comment