Hi,
I'm using and Arduino Nano Every for my project and I am very confused about the Pins locations.
I wanted to lit an LED from one of the output (with a resistor of course), but it wouldn't lit.
I checked many time how the Pins are supposed to be placed, from the official website it should be like this:
But then I ran this code to check it:
int outputs[] = {1,4,5,6,7,8,9,10,11,20,21,22,23,24,25,26,27,28,29,30, 13}; //All pins that are supposely can be used as Outputs.
int i = 0;
int maxOutputs = 21;
void setup() {
// initialize digital pin as outputs.
Serial.begin(9600);
Serial.println("Init");
for (i = 0; i < maxOutputs; i++)
{
Serial.print("init pin ");
Serial.println(outputs[i]);
pinMode(outputs[i], OUTPUT);
}
}
// the loop function runs over and over again forever
void loop() {
for (i = 0; i < maxOutputs; i++)
{
Serial.print("test pin ");
Serial.println(outputs[i]);
digitalWrite(outputs[i], HIGH); // turn the LED on (HIGH is the voltage level)
delay(500); // wait for a second
digitalWrite(outputs[i], LOW); // turn the LED off by making the voltage LOW
delay(250); // wait for a second
}
}
This allowed me to write my own pins schematic:
As you can see the pins seams to be misplaced compared to the official schematic.
I have 2 Arduino Nano Every and they both behave the same way.
I'm wondering if it could be a manufacturing defect on the GPIO Register.