Book Image

Learning BeagleBone

By : Hunyue Yau
Book Image

Learning BeagleBone

By: Hunyue Yau

Overview of this book

Table of Contents (18 chapters)
Learning BeagleBone
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Terms and Definitions
Index

Flashing the LEDs


Hello, World might be a good first exercise on the BeagleBone to build a foundation, but it doesn't leverage any of the unique embedded features of the BeagleBone. The BeagleBone can interact with the real world. Our next exercise will be a classic first exercise for embedded devices such as the BeagleBone. We will attempt to blink some of the LEDs on the BeagleBone over the course of the next few exercises.

LEDs on the BeagleBone

The BeagleBone boards come with four programmable LEDs. These are the same LEDs that are used to indicate the software flashing status located next to the RJ45 Ethernet connector. On the BBW, the LEDs are green, whereas on the BBB, the LEDs are blue. The LEDs can be programmed in the same way on both the BBB and BBW. They are the LEDs that we will be blinking in our exercises.

You can see all the four LEDs on the BeagleBone White and BeagleBone Black turned on in the following image:

Exercise 2 – taking control of the LEDs

The goal of this exercise...