Arduino Uno and Processing

edited May 2015 in Arduino

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

Sign In or Register to comment.