Chapter 7. Basic I/O Code

In this chapter we will create a basic framework for our new flight controller code and learn to communicate with some of our key peripherals, including the radios and motors. We will use the framework we build here as the platform for the next few chapters, where we will add the IMU and mode functions.

The figures in this section show the circuit being built up on a breadboard. If you plan to use exactly the same circuit as shown in the following chapters in your own project, then you can skip directly to building all of this on the printed circuit board that we will lay out later.

Time to write some code!

Setting Up the IDE

As mentioned in the previous chapter, the Teensy 3.2 processor can be programmed using the ...

Get Make: Drones 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.