DigitalWrite not working - board broken?

Hello, I haven’t been able to blink an external LED via digitalWrite, and not a single article can explain why.

Details:
• The device used is an Arduino Nano Every, with wires connected to pins 19 (ground) and 30 (D12, manual says it’s “SPI MISO; can be used as GPIO”).

• LED does light when attached to either pin 2 or 3. (“+3V3” and “+5V”)

I tried and replaced every component, except the Arduino itself. The Arduino is brand new, from Arduino's own website, and not been exposed to anything other than voltage that it itself produced.

Code used:

int LED = 30;

void setup() {

  pinMode(LED, OUTPUT);   

}

void loop() {

  digitalWrite(LED, HIGH); 

  delay(1000);           

  digitalWrite(LED, LOW);  

  delay(1000);            
}

I’ve been up and down the web trying to anything on this, to no luck. Any help would be very much appreciated.

Post a clear picture of your circuit.

Do not use the processor chip pin numbers, use the D numbers of the pin out
https://docs.arduino.cc/static/90c04d4cfb88446cafa299787bf06056/ABX00028-pinout.png

Change that to 12. The numbers in the IDE are not the pin numbers of the chip but the pin numbers of the board.

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project :wink: See About the IDE 1.x category.

Pin 30??

Pin 13 is the built in LED... is that what you wanted?

Thank you!

Thank you!
Sorry, I figured setup was appropriate for something so basic.

Sorry, I meant pin 30, equivalent to D12 in the manual. Thank you though.