Arduino init

- February 20, 2023

Check connectivity to your Arduino.

This video will make the onboard LED blink. There is no need for any connected pins.

It is provided as a bare minimum example to check if everything is connected and installed correctly on your board.

The first sketch.

With the Arduino connected to your computer through USB, you can connect to it with VSCode.

#include <Arduino.h>

const auto pin = LED_BUILTIN;

void setup()
{
    pinMode(pin, OUTPUT);
}

void loop()
{
    digitalWrite(pin, HIGH);
    delay(500);
    digitalWrite(pin, LOW);
    delay(1000);
}

Connect a LED

In my case, pin 13 is the same as the onboard LED.

To connect an external LED, there must be connectivity through

See Also

Comments

Any comments? Create a new discussion on GitHub.
There used to be an inline comment form here, but it was removed.