Day 3 Message in a Bottle

The Plan

Yesterday we learned that there is a loop at the core of every embedded-control application, and we learned to code it in C using the while statement. Today we will continue exploring a variety of other techniques available to the C programmer to perform loops. Along the way, we will take the opportunity to briefly review integer variable declarations and increment and decrement operators, quickly touching on array declarations and usage. By the end of the day you will be ready for a hopefully entertaining project that will make use of all the knowledge you acquired during the day by creating a survival tool you’ll find essential should you ever be stranded on a deserted island.

Preparation

In this lesson ...

Get Programming 32-bit Microcontrollers in C 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.