11
Lesson 0 Building the Arduino Development
Environment
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()
Содержание Robotic Arm
Страница 1: ...1...
Страница 33: ...30 9 Running effect is as follow...
Страница 70: ...67 Effect diagram after assembling Assemble the following components M3 8 Screw x4 M3 30 Nylon Standoff x4...
Страница 74: ...71 SERVO of number 5 4 2 1 3...
Страница 86: ...83 Effect diagram after assembling...
Страница 95: ...92 40mm 60mm 66 5mm 65mm 13mm 70mm...
Страница 99: ...96...
Страница 111: ...108...
Страница 117: ...114 6 Click More apps then click OK 7 Slide the mouse down click Look for annother app on this PC and then click OK...
Страница 137: ...134...
Страница 154: ...151 7 the library file controlP5 needs to be added...
Страница 156: ...153 9 Click Run 10 Running effect is as follow...
Страница 164: ...161...
Страница 181: ...178...
Страница 182: ...179...