Chapter 5. Advanced Input and Output
What you have just learned in Chapter 4 are the most elementary operations we can do in Arduino: controlling digital output and reading digital input. If Arduino were some sort of human language, those would be two letters of its alphabet. Considering that there are just five letters in this alphabet, you can see how much more work we have to do before we can write Arduino poetry.
Trying Out Other On/Off Sensors
Now that you’ve learned how to use a pushbutton, you should know that there are many other very basic sensors that work according to the same principle:
- Toggle switch
-
The pushbutton that you’ve been using is a type of switch called a momentary switch, because once you let it go, it goes back to ...
Get Getting Started with Arduino, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.