Step by Step

Let’s go through the basic steps of programming your Arduino to perform a trivial task: blinking an LED. The actual step-by-step guide for this simple but important exercise is given in Chapter 5. This section only covers the main topics without going into specific, implementation-specific details.

Step 1: Write Some Code

Most beginning Arduino programmers don’t write their first sketch (Arduino program) by themselves. This is true of most programming languages. There is almost always a traditional, pared-down example exercise that is easy enough to complete in a single sitting yet complex enough to demonstrate that something is actually happening.

A Trivial Example in C

In the C programming language, on which the Arduino programming ...

Get Arduino Internals 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.