Arduino Programming

Code for Arduino is typically written in C++ in the Arduino IDE or Arduino Cloud Editor.

The web editor is preferred over the IDE because it is always current and makes code sharing easier. To enable communication from the browser to a local Arduino device requires installation of the Arduino Create Plugin.

Enable Serial Logging

Serial logging is useful for debugging. To start serial logging, call the Serial.begin() function in the setup function:

void setup() {
  Serial.begin(9600);
}

The Serial.println() function can then print values to the serial monitor.

Deeper Knowledge on Arduino Programming

Arduino tone() Function

Arduino tone() Function

Use the Arduino tone() function to play a song

Broader Topics Related to Arduino Programming

Arduino

Arduino

The open-source electronics platform for interactive projects and prototypes

C++

C++

C++ is a general-purpose extension of the C language

Arduino Programming Knowledge Graph