Firmware
|
Go to the source code of this file.
Macros | |
#define | BLINKM0_DEVICE_PATH "/dev/blinkm0" |
#define | _BLINKMIOCBASE (0x2900) |
#define | _BLINKMIOC(_n) (_PX4_IOC(_BLINKMIOCBASE, _n)) |
#define | BLINKM_PLAY_SCRIPT_NAMED _BLINKMIOC(1) |
play the named script in *(char *)arg, repeating forever | |
#define | BLINKM_PLAY_SCRIPT _BLINKMIOC(2) |
play the numbered script in (arg), repeating forever | |
#define | BLINKM_SET_USER_SCRIPT _BLINKMIOC(3) |
Set the user script; (arg) is a pointer to an array of script lines, where each line is an array of four bytes giving <duration>, <command>, arg[0-2]. More... | |
BlinkM driver API.
This could probably become a more generalised API for multi-colour LED driver systems, or be merged with the generic LED driver.
#define BLINKM_SET_USER_SCRIPT _BLINKMIOC(3) |
Set the user script; (arg) is a pointer to an array of script lines, where each line is an array of four bytes giving <duration>, <command>, arg[0-2].
The script is terminated by a zero command.