Skip to Main Content
AVR Programming
book

AVR Programming

by Elliot Williams
January 2014
Intermediate to advanced content levelIntermediate to advanced
474 pages
13h 28m
English
Make: Community
Content preview from AVR Programming

Chapter 4. Bit Twiddling

In this chapter we’ll make a cylon-eye-type LED back-and-forth scanner. Everyone needs one. Scanning lights were the only thing, besides maybe menace, that gave the cylons their personality. Would KITT have been half as useful to David Hasselhoff without his scrolling red lights? I think not. And now you can build your very own.

But I won’t lie to you. We’re building cylon eyes in order to learn a fundamental concept in microcontroller-specific programming: how to flip individual bits on and off inside a hardware register. And while that may not sound sexy, you’ll be using the ideas from this chapter in every AVR or microcontroller project you ever make from here on out. Flipping bits is just that important ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Embedded Linux Programming - Third Edition

Mastering Embedded Linux Programming - Third Edition

Frank Vasquez, Chris Simmonds

Publisher Resources

ISBN: 9781449356484Errata PageSupplemental Content