Arduino Programming Basics

An Arduino can be coded using the Arduino language which is a subset of C.

Last Update Unknown

All programs for an Arduino must have a setup and loop function


The pinMode command is used to initialise the digital pin LED_BUILTIN as an output.


The digitalWrite command is used to turn on or off an LED


The delay command tells the program to wait a set number of microseconds before moving on to the next line of code.


The Serial.println command can be used to display text on your computer monitor.


Control Structures

If statement

For Loop

Function