Pages: [1]   Go Down
Author Topic: Analog Aliace (A0 .. A5) Not working :(  (Read 469 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 64
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

ex:

int SensorPin = A0;

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

Any help?

TNX!
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 170
Posts: 12487
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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
Logged

Rob Tillaart

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

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 64
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

oh smiley nice
i also found thar A0 is added in build 22 and i was running 18 smiley
so now i have 2 solutions smiley
tnx!
Logged

Pages: [1]   Go Up
Jump to: