How to refer to analog pins as switch input?
i'm troubleshooting big project , suspect digital pin 13 bad, , don't have left. i have 4 analogs open, though.
i have simple button-short-to-ground input. i'm trying use analog pin this, compiler errors.
i'm using syntax per tutorial: http://www.arduino.cc/en/tutorial/analoginputpins, e.g.:
pinmode (a1, input);
but compiler says "a1 not defined in scope..."
must stupid, can't see it! thanks help.
i have simple button-short-to-ground input. i'm trying use analog pin this, compiler errors.
i'm using syntax per tutorial: http://www.arduino.cc/en/tutorial/analoginputpins, e.g.:
pinmode (a1, input);
but compiler says "a1 not defined in scope..."
must stupid, can't see it! thanks help.
install arduino 0019.
or, analog 0 digital 14, analog 1 digital 15, etcetera.
Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > How to refer to analog pins as switch input?
arduino
Comments
Post a Comment