دستورات آردوینودستورات زبان برنامه نویسی آردوینو به سه دسته تقسیم میشود:ساختار (structure) متغیر (values – variables and constants) توابع (Function)FunctionsDigital I/OpinMode()digitalWrite()digitalRead()Advanced I/Otone()noTone()ShiftOut()Analog I/OanalogReference()analogRead()analogWrite()Due & Zero onlyanalogReadResolution()analogWriteResolution()VariablesConstantsHIGH | LOWINPUT | OUTPUT | INPUT_PULLUP LED_BUILTIN true | false integer constantsfloating point constantsConversionchar()byte()int()word()long()float()Data Types Variable Declarationvoidbooleanchar unsigned charbyteintunsigned intwordlongunsigned longshortfloatdoublestring – char arrayarrayVariable Scope & Qualifiersvariable scopestaticvolatileconstUtilitiessizeof()PROGMEM Structure Setup() loop()Further Syntax; (semicolon){} (curly braces)// (single line comment)/* */ (multi-line comment)#define#includePointer Access Operators* dereference operator& reference operatorBitwise Operators& (bitwise and)| (bitwise or)^ (bitwise xor)~ (bitwise not)<< (bitshift left) >> (bitshift right)Control Structuresifif … elseforswitch casewhiledo…whilebreakcontinuereturngotoBoolean Operators&& (and)|| (or)! (not)Arithmetic Operators = (assignment operator)+ (addition)– (subtraction)* (multiplication) / (division)% (modulo)Comparison Operators== (equal to)!= (not equal to)< (less than)> (greater than)<= (less than or equal to)>= (greater than or equal to)Compound Operators++ (increment) – – (decrement) += (compound addition) -= (compound subtraction) *= (compound multiplication) /= (compound division) %= (compound modulo) &= (compound bitwise and)