You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pbsujit edited this page Jun 7, 2013
·
21 revisions
The LEDs on the BBB are on GPIOs 53,54,55,56 pin numbers. To access the GPIO pins, we will use the GPIO class in Dune. The definition of the GPIOs can be looked in DH>src/DUNE/Hardware/Dune.hpp. We will use the following steps to control LEDs.
Create a new task, say GpioLed. How to create task is describe in Example 1.
Include the header file
#include<DUNE/Hardware/GPIO.hpp>
The GPIOs have two entities - (1) the direction, either input or output and (2) the value. We will first declare an entity of GPIO class in side the TASK struct as