What coding language does Arduino use?
The short answer is: Arduino uses a variant of C++. But that's a bit like saying "a car uses an internal combustion engine" – it's technically correct but doesn't give you the full picture. Let's break it down in detail. 1. The Core Language: C++ with a Simplifying Wrapper The code you write for Arduino is processed by a C++ compiler (avr-g++). However, the Arduino environment provides a simplified layer on top of standard C++. It's C++: You can use core C++ features like functions, variables, classes, and libraries. It's Simplified: The complex parts of C++ (like memory management with new / delete and the Standard Template Library - STL) are often avoided or unavailable on these small microcontrollers due to limited memory and processing power. It has a Unique Structure: Arduino programs are structured around two main functions, setup() and loop() , which is not standard C++ but is provided by the Arduino core ...