2

First Steps

Now that you’ve installed the requisite software and are prepared to enter the world of AVR microcontrollers, this chapter will ease you into your first AVR projects with some basic circuits and code.

In this chapter, you’ll learn how to:

  • • Test your setup for making AVR-based projects.
  • • Read basic circuit schematics.
  • • Control LEDs with the digital output pins on both AVR microcontrollers, the ATtiny85 and the ATmega328P-PU.

I’ll also show you how to start coding with #define macros and for loops, and how to use bitwise arithmetic and bit shifting to generate outputs efficiently.

Testing the Hardware and Toolchain

At this ...

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.