Getting started

Your first steps: tools, a first blink and what to try next.

What you need

Your first sketch: blink

Most boards have a small LED built in. This sketch turns it on and off every second.

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

void loop() {
  digitalWrite(LED_BUILTIN, HIGH);  // LED on
  delay(1000);                      // wait one second
  digitalWrite(LED_BUILTIN, LOW);   // LED off
  delay(1000);
}

Steps

  1. Plug the board into your computer with the USB cable.
  2. Open the Arduino IDE and choose your board and port from the Tools menu. For an ESP32, first add its board package.
  3. Paste in the sketch (the IDE also has a Blink example under File, Examples, Basics).
  4. Press Upload and watch the LED blink.

Safe next steps

Previous: Comparison · Next: Slides