I tried using the Arduino Nano component with this sketch, which works on Wokwi.
const int ledPins[] = {13, A0};
void setup() {
for (int i = 0; i < 2; i++) {
pinMode(ledPins[i], OUTPUT);
digitalWrite(ledPins[i], HIGH);
}
}
void loop() {
}
This sketch on CRUMB successfully turns on the built-in L led, but it doesn't turn on the LED connected to the A0 pin.
Here are my screenshot and project file:
This is a known fault from unclear documentation on the arduino website. The A pins can be used for all analogue inputs, but outputs must be used on the D pins