Developing in C for the ATmega328P: Example Code

Where I list all of the examples found in the examples folder for easy reference.

Introduction#

When using a specific function or while attempting to understand a C programming concept, it is helpful to see a working example. The examples below, (except …

Developing in C for the ATmega328: Using PROGMEM

Where I discuss how to use PROGMEM (storing values in Flash memory) for storage.

Introduction#

Storing message strings in AVR RAM can become prohibitively expensive, very quickly. With only 2KB of RAM, the Uno needs as much RAM available for dynamic …

Developing in C for the ATmega328P: Function - tone()

Where I describe the function - tone() as well as noTone() and how to play music on the Uno.

Introduction#

Using the function tone() allows us to play musical notes via the Uno and a speaker. Using tone() is more difficult than understanding the command. …

Developing in C for the ATmega328P: Mapping Values

Where I describe how to map values in one domain to another domain.

Introduction#

Mapping is the concept of translating a range of numbers to a second range of numbers, where the second range might be smaller (typically) or larger than the first range. …