July 2022
Intermediate to advanced
304 pages
7h 6m
English
Now that we have written a trivial program or two, it’s time to get the machine to do some real work. In this chapter you will learn how to manipulate numbers.
As embedded programmers, we are concerned with exactly what the numbers are doing. For example, the number 32 could represent the number of sheep in a barnyard, or it could energize GPIO pin #4, which turns on the big red warning light. What’s worse, our STM32 groups up to 32 different GPIOs into a single number, so while 32 might tell the device to “turn on the big red light,” 34 could tell it to “turn on the big red light and sound the klaxon.” To control ...
Read now
Unlock full access