]> git.piffa.net Git - sketchbook_andrea/blob - libraries/AVR-Programming-Library/README.md
Blinks with iterators, reorder
[sketchbook_andrea] / libraries / AVR-Programming-Library / README.md
1 AVR-Programming-Library
2 =======================
3
4 Files that are re-used throughout the book *Make: AVR Programming*
5
6 * **pinDefines.h**
7         Includes all of the pin definitions for the projects in *Make: AVR Programming*.  When you
8         need to know what to hook up where, have a look here.
9
10 * **USART.c** and **USART.h**
11         These are the main utility files used for serial input/output in the book.  They're not
12         particularly clever, but they have a tiny memory and resource footprint and get you
13         up and running very quickly.
14
15 * **binaryMacro.h**
16         If you're using a compiler other than a recent AVR-GCC, it may not support
17         native binary digits (e.g. 0b00111010).  If so, this include file has a pre-processor
18         macro that will let you enter them similarly: B8(01010101).  
19
20 * **macros.h**
21         This file includes pre-processor macro definitions for bit-twiddling: 
22         set_bit, clear_bit, and toggle_bit.  Useful for those days when you're feeling
23         lazy, or have forgotten your bit-wise logic operations.
24
25 * **portpins.h**
26         This is a recent version of the portpins.h file included with the Arduino environment.
27         It includes the AVR pin definitions of the form PB1 and similar.  The version included
28         with Arduino is very old -- you'll want to replace it with this one if you want to write
29         in C using the Arduino IDE. Or you can include this file directly in your code.
30