Arduino Forum

Products => Arduino Yún => Topic started by: zerb on Feb 12, 2014, 02:12 pm

Title: Using analog Pin (A0-A5) for digital Input
Post by: zerb on Feb 12, 2014, 02:12 pm
Hi there,

today my new Arduino Yun arrived and i tried to test it with a programm built for Arduino Uno.

On the Uno Board it was possible to use A0-A5 as digital pin 14-19

Code: [Select]
LiquidCrystal lcd(19, 18, 17, 16, 15, 14);

Like this.....

Did i miss some changes in the reference or is there another way to use A0, etc. as digital pins?
Title: Re: Using analog Pin (A0-A5) for digital Input
Post by: sonnyyu on Feb 12, 2014, 05:09 pm
Yes you can.

http://arduino.cc/en/Tutorial/AnalogInputPins (http://arduino.cc/en/Tutorial/AnalogInputPins)

http://forum.arduino.cc/index.php?topic=82992.msg623876#msg623876 (http://forum.arduino.cc/index.php?topic=82992.msg623876#msg623876)

Please pay attension about pin map and overlap.
Title: Re: Using analog Pin (A0-A5) for digital Input
Post by: zerb on Feb 12, 2014, 05:34 pm
Thanks sonnyyu

Quote
PF,   // D18 - A0 - PF7
   PF, // D19 - A1 - PF6
   PF, // D20 - A2 - PF5
   PF, // D21 - A3 - PF4
   PF, // D22 - A4 - PF1
   PF, // D23 - A5 - PF0


Thats what i've not found.... :-)