Arduino
Arduino copied to clipboard
Arduino Nano 3.0 pinouts
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
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);