













































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of the arduino programming environment, focusing on comments, operators, variables, and control structures. It covers the use of comments, operators such as equals sign, and, or, declaring and assigning variables of different types, variable scope, and control structures like if statements and basic repetition. It also introduces the setup function and interrupts.
Typology: Slides
1 / 53
This page cannot be seen from the preview
Don't miss anything!














































Arduino Programming Section http://arduino.cc/en/Reference/HomePage
The equals sign = is used to assign a value == is used to compare values
Basic variable types: Boolean Integer Character
Boolean: boolean variableName;
Boolean: boolean variableName; Integer: int variableName; Character: char variableName;
Boolean: boolean variableName; Integer: int variableName; Character: char variableName; String: stringName [ ];
Boolean: variableName = true; or variableName = false; Integer: variableName = 32767; or variableName = -32768;
Boolean: variableName = true; or variableName = false; Integer: variableName = 32767; or variableName = -32768; Character: variableName = ‘A’; or stringName = “SparkFun”;