Arduino programming is primarily done using a language based on C/C++. The Arduino IDE (Integrated Development Environment) simplifies this by providing a set of functions and libraries specifically designed to make it easier to write code for Arduino boards.
Here are some key points about Arduino programming:
1. **C/C++ Foundation**: While the language itself is C/C++-based, Arduino programming is simplified with its own set of functions and libraries that abstract some of the complexities of C/C++.
2. **Arduino Sketches**: The programs you write for Arduino are called "sketches." They follow a basic structure:
- `setup()`: This function runs once when the program starts. Itβs used to initialize settings.
- `loop()`: This function runs repeatedly after `setup()`. It contains the main code that executes continuously.
3. **Libraries**: The Arduino environment includes a range of built-in libraries that provide functions for various hardware components and tasks, such as controlling motors, reading sensors, and handling communications.
4. **Simplified Syntax**: The Arduino IDE includes built-in functions (like `digitalWrite`, `analogRead`, `delay`, etc.) that simplify common tasks and make the language easier to use for beginners.
5. **Compatibility**: While the core language is C/C++, the Arduino IDE and its libraries handle much of the lower-level hardware interfacing, so you donβt need to worry about that complexity unless you choose to delve deeper.
Overall, Arduino is designed to be accessible for beginners while still being powerful enough for more advanced users, thanks to its C/C++ foundation and the helpful abstractions provided by the Arduino environment.