Loading topic
setup() and loop(), and you can declare variables of the basic types. A board such as an Uno should be connected over USB. You do not need any extra parts, because the Serial Monitor works with a bare board.7 min readconst qualifier and the #define preprocessor directive. It assumes you can write a sketch with setup() and loop(), declare variables with types such as int, byte, and unsigned long, and use `pinMode6 min readsetup() and loop(), declare variables of the basic types (int, byte, long, float, bool), and print to the Serial Monitor. Examples assume an Arduino Uno, where int is 16 bits. Where a result depends on that, the text says so.5 min readif, else, else if, the logical operators, and switch, including the mistakes that cause most bugs.6 min readsetup(), loop(), pinMode(), digitalWrite(), variables, and comparison operators. You should also have a board such as an Uno with an LED and resistor on a breadboard. If you have used if statements, you alr7 min readfor, while, and do-while loops repeat work. You can upload a sketch and open the Serial Monitor. This chapter combines those pieces. An array holds several values of one type under a single name, and a loop visits each of them.6 min readsetup() and loop(), and that you can declare variables with basic types such as int, byte, and unsigned long. It also assumes you can print values with Serial.println(). Functions get a full chapter later, so here you only need 7 min readpinMode(), digitalWrite(), and delay(). This chapter shows you how to write your own. The next chapter covers parameters and return values in more depth, so here we focus o7 min readsetup() and loop(), declare variables, use for loops, and define a simple function with no inputs. It builds on the previous chapter by showing how a function receives data and sends a result back. It also covers the errors that most often appea6 min readsetup() and loop(), use digitalWrite(), declare variables of types like byte and unsigned long, write if conditions, and define a function with parameters and a return value. You also need the Serial Monitor for the last example.6 min read