May I ask what is a typical Arduino code?
Thank you for your reply.
May I ask what is a typical Arduino code?
Thank you for your reply.
The short answer is "C++".
The longer answer is "Arduino Language", which is based on C++, but with some automated preprocessing which allows sketches to be a little more simple than 100% valid C++.
The even longer answer is that Arduino sketches can be made of multiple files of different languages:
https://arduino.github.io/arduino-cli/latest/sketch-specification/
.ino
- Arduino language files..pde
- Alternate extension for Arduino language files..cpp
- C++ files..c
- C Files..S
- Assembly language files.
You can learn about what makes "Arduino Language" different from C++ here:
https://arduino.github.io/arduino-cli/latest/sketch-build-process/#pre-processing
Have a look at the Blinking LED sketch in the examples provided with the IDE.
BLINKING LED
That’s about as basic as it can get, then you learn and grow from there.
the Arduino IDE uses the industry standard GNU C++ compiler.
However, it pre-processes the .ino file, which is still C++ to add #includes and prototype declarations avoiding details that typically frustrate novice users.
you may also be interested in Explainer: What is Arduino?
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.