5. A Little Deeper into Development
So far, we have written a couple basic programs together—one of which you can find copies of on the Internet and is a basic example of how to blink a Light Emitting Diode (LED) that is built in to the BeagleBone Black. The other is an introduction to creating a circuit that uses components to alternately blink two LEDs. At the end of the last chapter, you discovered that the time between the actions for the two LEDs is 1ms.
You learned before that the Central Processing Unit (CPU) clock on the BeagleBone Black, which regulates how fast actions happen in the CPU, runs at 1GHz. That is one billion cycles per second. To get the amount of time between cycles, you simply take the inverse, and you end up with 0.000001ms ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access