Loading topic
digitalRead() reports, what the pin is measuring, and what happens when you poll a button inside `lo7 min readsetup() and loop(), and that you know pinMode(), digitalRead() and digitalWrite(). It also assumes you have wired a pushbutton and an LED to a board before. Here you will learn the standard way to wire a button with no external parts, 6 min readsetup() and loop(), and that you can wire a pushbutton and an LED. It also assumes you know pinMode(), digitalRead() and digitalWrite(). You should be comfortable with if statements, booleans and integer types in C++. You should also6 min readdelay() does inside the processor, why that makes a sketch unresponsive, and how to recognize the problem in your own code. It assumes you can write a basic sketch with setup() and loop(), use pinMode(), digitalRead() and digitalWrite(), wire a pushbutton and a8 min readmillis(), the Arduino function that reports elapsed time. It also covers the errors that show up most often when people first use it. It assumes you can write a basic sketch with setup() and loop(), use pinMode(), digitalRead() and digitalWrite(),7 min readmillis() interval like the one in the previous chapter, and that you know unsigned long is a 32-bit unsigned integer on most Arduino boards. Here you will see what happens when the millis() counter reaches its maximum value and wraps to zero. Y6 min readsetup() and loop(), use pinMode() and digitalWrite(), and read C++ if statements, bool variables and integer types. It also assumes you have seen that delay() pauses the whole sketch and that millis() returns the milliseconds sin6 min readINPUT_PULLUP, and that you know why a pressed button reads LOW in that wiring. It also assumes you are comfortable with bool variables and if statements. The bounce problem comes in the next chapter. Here the goal is narrower: make6 min readsetup() and loop(), wire a pushbutton to a pin with INPUT_PULLUP, and read it with digitalRead(). It also assumes you know the millis() interval pattern, unsigned subtraction, and how to detect a state change. Here you combine those pi6 min readmillis()-based blink and a timestamp-debounced button run in the same loop(), and neither one blocks the other. It assumes you can write setup() and loop(), use pinMode(), digitalRead() and digitalWrite(), and wire a pus7 min readINPUT_PULLUP and inverted logic, and software debouncing with millis(). You should also be comfortable with basic circuit ideas: voltage, resistance, and what a capacitor does. Hardware debouncing is the alternative to th8 min readsetup() and loop() sketch, wire a pushbutton to INPUT_PULLUP, and use millis() for non-blocking timing. It also assumes you have seen timestamp-based software debouncing. Here you will use a hardware interrupt to catch a button press, filter out bounce in7 min read