Hello All,
(Arduino Newbie)
I have a question regarding designating pin outs on the Nana Every.
Do I specify D2-D21?
Or in the case of the Analog pins do I designate them as A0-A7 even though they would be D14-D21?
Would it be that I use the pin number without the D, so in the case of Pin D7, I would just call
Pin = 7? If it is a analog pin such as pin D20, would I call it Pin = 20, or Pin = A6?
Do I assume on pins A0-A7 I might only call them as Ax pins if using them for Analog IO, and just default to 14-21 if using them as digital IO?
Example from examples
First example from AnalogInOutSerial
const int analogInPin = A0; // Analog input pin that the potentiometer is attached to
const int analogOutPin = 9; // Analog output pin that the LED is attached to
This example from WhileStatementConditional
const int sensorPin = A0; // pin that the sensor is attached to
const int ledPin = 9; // pin that the LED is attached to
const int indicatorLedPin = 13; // pin that the built-in LED is attached to
const int buttonPin = 2; // pin that the button is attached to
I apologize for the confusion, I have been previously using a Pi Pico and they use GPIO schema and you just call it by the GP Pin number, so GP0-GP28 is simply Pin 0-28.
Thanks,
Robert