Richtig!
In Deinem Fall müsste es so aussehen:
void setup()
{
pinMode(13, OUTPUT); // sets the digital pin 13 as output
}
void loop() {
digitalWrite(13, HIGH); // sets the digital pin 13 on
delay(1000); // waits for a second
digitalWrite(13, LOW); // sets the digital pin 13 off
delay(1000); // waits for a second
}
Dann funktioniert es.
Habe ich mal kurz aus dem Beispiel für pinMode aus der Reference geklaut:
https://www.arduino.cc/reference/en/language/functions/digital-io/pinmode/
Gruß, Jürgen