Go Down

Topic: Re: digitalRead on Analog pins aways return same value (Read 334 times) previous topic - next topic

RuggedCircuits

If you want to read analog pin 2 as a digital pin you should read digital pin 15. Digital pin 14 is analog pin 1, digital pin 15 is analog pin 2, etc.

--
Check out our new shield: http://www.ruggedcircuits.com/html/gadget_shield.html

deSilva

Very close :-)
Analog pin 0 ist digital pin 14 e.t.c.

RuggedCircuits


Go Up