Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

Arduino Nano 3.0 pinouts

Open lee-lvd opened this issue 13 years ago • 1 comments

All I can find is the 2.2 Can any explain why i see confusing numbers on the pin outs

IE int ledpin = 9;

is that actually pin 9 or is it D9

lee-lvd avatar Feb 09 '13 19:02 lee-lvd

Hi,

the digital pins on the Arduino boards are addressed with a simple integer number. So, for example the digiral pin 9 is not defined as D9 but just 9. Instead to differentiate it, the analog inputs pins are defined with macros that start with A0 and ends with A7. So, for example you can use:

int var = analogRead(A0);

Fede85 avatar Apr 09 '13 16:04 Fede85