Re: digitalRead on Analog pins aways return same value

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

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

Oops! Correct: 14 is 0, 15 is 1, etc.

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