Arduino Development Language; Arduino Program Structure; Lesson 0 Building The Arduino Development Environment - ADEEPT Robotic Arm Manual

Table of Contents

Advertisement

Lesson 0 Building the Arduino Development

1. Arduino development language

Arduino uses C/C++ to write programs, so before learning Arduino, you need to
master the C/C++ language. Although C++ is compatible with the C language, these
are two different languages. C is a process-oriented programming language, and C++
is an object-oriented programming language. The early Arduino core library was
written in C language. Later, object-oriented ideas were introduced. At present, the
latest Arduino core library is written in C and C++.
Generally speaking, the Arduino language refers to a collection of various
Application Programming Interfaces (APIs) provided by the Arduino core library files.
These APIs are formed by secondary packaging of the lower-level microcontroller
support library. For example, the core library of Arduino using AVR microcontroller is
the secondary packaging of AVR-Libc (GCC-based AVR support library).
In the traditional development method, multiple registers need to be configured to
achieve the corresponding functions. In Arduino, the complicated registers are
encapsulated into simple APIs, which can be intuitively controlled, enhancing the
readability of the program and improving the development efficiency.

2.Arduino program structure

The Arduino program structure is different from the traditional C/C++ program
structure-there is no main() function in the Arduino program. In fact, it is not that
there is no main() function in the Arduino program, but that the definition of the main()
function is hidden in the core library file of the Arduino. In the development of
Arduino, the main function is not directly operated, but the two functions of setup()
Environment
11

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Robotic Arm and is the answer not in the manual?

Table of Contents

Save PDF