Hi all,
I'd like to use the "Analog In" pins like other digital output pins, after setting them with pinMode.
Something resumed in these lines:
//A0 should be pin 14
pinMode(14, OUTPUT);
digitalWrite(14, HIGH);
On Arduino Yun, can analog pins addressed using pin numbers from 14 to 19?
I'm testing on it one sketch working fine on Arduino Uno, but I get no output on A0 and A1.
Thanks in advance
mapiram:
Hi all,
I'd like to use the "Analog In" pins like other digital output pins, after setting them with pinMode.
Something resuming in these lines:
//A0 should be pin 14
pinMode(14, OUTPUT);
digitalWrite(14, HIGH);
On Arduino Yun, can analog pins addressed using pin numbers from 14 to 19?
I'm testing on it one sketch working fine on Arduino Uno, but I get no output on A0 and A1.
Thanks in advance
Never played with a Yun, but it most likely has different pin assignments, therefore you should use the Ax method to address your pins. Give it a try.:
Going deep, I added some rows to print the pin numbers for A0, A1, ..., A5.
Instead to be 14, 15, ..., 19 like I waited before the advice of retrolefty, they are 18, 19, ..., 23. (I compiled the sketch with IDE 1.5.6-r2).