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
- Ground (GND)
- LED anode (short end)
- 220 ohm resistor
- Pin 13
See Also
- Software
- NodeMCU with VSCode
- The setup
- compile_commands.json with CMake
- Why do programmers need private offices with doors?
Comments
Any comments? Create a new discussion on GitHub.There used to be an inline comment form here, but it was removed.