3
Getting and Displaying Input
AVR microcontrollers can process input from the outside world and react with output, which offers huge potential for interactive projects—for example, those that react to the surrounding temperature. In this chapter, you’ll program ATtiny85s and ATmega328P-PUs to detect input signals from external devices and put them to work.
In particular, you will:
- • Learn about digital inputs and buttons.
- • Make decisions with
if...else
andswitch...case
statements. - • Use seven-segment LED displays to make a digital counter.
- • Make a single-cell battery tester.
- • Learn about the TMP36 temperature sensor.
- • Make a digital ...
Get AVR Workshop 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.