Example: blink user LED 3. More...
#include "BBB/pruio.bi"
Go to the source code of this file.
Macros | |
#define | PIN /* 24 */ |
The CPU ball to control (user LED 3). | |
#define | OUT_K |
Output a short blink. More... | |
#define | OUT_L |
Output a long blink. More... | |
#define | OUT_S /* OUT_K : OUT_K : OUT_K : SLEEP 150 */ |
Output a 'S' (short - short - short). | |
#define | OUT_O /* OUT_L : OUT_L : OUT_L : SLEEP 150 */ |
Output an 'O' (long - long - long). | |
Functions | |
int | main () |
Variables | |
VAR | io = NEW PruIo() |
Create a PruIo instance, wakeup only GPIO-1 subsystem, ignore kernel claims. | |
VAR | pinmode = .BallConf[PIN] |
The current pinmode. | |
Example: blink user LED 3.
This file contains an example on how to use libpruio to control the user LED 3 (near ethernet connector) on the beaglebone board. It shows how to unlock a CPU ball that is used by the system. And it shows how to control the unlocked ball. Find a functional description in section sos.
Licence: GPLv3, Copyright 2014-2023 by Thomas{ doT ]Freiherr[ At ]gmx[ DoT }net
Compile by: fbc -w all sos.bas
Definition in file sos.bas.
#define OUT_K |
#define OUT_L |