Reference Language (extended) | Libraries | Comparison | Board
The Arduino language is based on C/C++ and supports all standard C constructs and some C++ features. It links against AVR Libc and allows the use of any of its functions; see its user manual for details.
StructureIn Arduino, the standard program entry point (main) is defined in the core and calls into two functions in a sketch. setup() is called once, then loop() is called repeatedly (until you reset your board). Control StructuresFurther Syntax
Arithmetic OperatorsComparison Operators
Boolean OperatorsPointer Access OperatorsBitwise Operators
Compound Operators
VariablesConstantsData Types
Variable Scope & QualifiersUtilitiesReference |
FunctionsDigital I/O
Analog I/O
Advanced I/O Time
Math
Trigonometry Random Numbers
External Interrupts
Interrupts Serial Communication
|
Corrections, suggestions, and new documentation should be posted to the Forum.
The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.