Lucas Fernando
Published © GPL3+

How to Write Arduino Programs - Lesson #3

Learn how to code your first Arduino program, line by line, using the Arduino IDE and Mind+ platform.

BeginnerProtip1 hour193
How to Write Arduino Programs - Lesson #3

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
DFRobot MindPlus Arduino Coding Kit
×1

Software apps and online services

Arduino Web Editor
Arduino Web Editor
DFRobot Mind+

Story

Read more

Code

Blink the Built-In LED

C/C++
The built-in LED code we wrote in this tutorial.
/*
This program will turn on and off the built-in LED every one second.
Lesson #3 of the Arduino for Beginners series.
 */

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

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

Credits

Lucas Fernando
6 projects • 2 followers
Documenting my world of pure imagination.

Comments