Go Down

Topic: Analog Aliace (A0 .. A5) Not working :( (Read 891 times) previous topic - next topic


Hey all ok I want to use Analog pins as Digital. So i tried to use Analog Alice ... but that did not work :( i'm getting compilation error


int SensorPin = A0;

returans following error: error: 'A0' was not declared in this scope

Any help?



if you want to use A0 as a digital pin its number is 14 etc on an Arduino 328; details see - http://www.arduino.cc/en/Tutorial/AnalogInputPins
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)


oh :) nice
i also found thar A0 is added in build 22 and i was running 18 :)
so now i have 2 solutions :)

Go Up