We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have a problem with analog Pin on Arduino Uno. I know this:
int ledPin1 = 1; ---> LED connected to digital pin 1 arduino.pinMode(ledPin1, Arduino.OUTPUT); arduino.digitalWrite(ledPin1, Arduino.HIGH); arduino.digitalWrite(ledPin1, Arduino.LOW);
I suppose that the digital pin starts from 1 to 13,is it correct?
I want to use the analog pin(A1,A2,A3,A4,A5)for the command above, how can I do this?
thank you
Answers
once again I'm not sure I understand. you want to have the six extra digital pins of arduino? I see you make use of Firmata, I tried it and it does not work, I think that this is not implemented in the library Firmata
I'm not quite sure I understand, but are you looking for this :
http://www.arduino.cc/en/Reference/AnalogRead http://www.arduino.cc/en/Reference/AnalogWrite
?
Thank you, I understand that the analog pin settings are: int ledPin 16=16 int ledPin 17=17 int ledPin 18=18 int ledPin 19=19 int ledPin 20=20 int ledPin 21=21 so I don't have any problem now, thank to all