Interface for the Grove ledbar driver. More...
Interface for the Grove ledbar driver.
Definition in file grove_ledbar.h.
Go to the source code of this file.
Macros | |
#define | GROVE_LEDBAR_MAX UINT8_MAX |
Maximum value for ledbar level. | |
Typedefs | |
typedef my9221_params_t | grove_ledbar_params_t |
Parameters needed for device initialization. | |
typedef my9221_t | grove_ledbar_t |
Device descriptor for grove ledbar, alias for MY9221 LED controller. | |
Functions | |
int | grove_ledbar_init (grove_ledbar_t *dev, const grove_ledbar_params_t *params) |
Initialize the given driver. More... | |
void | grove_ledbar_set (grove_ledbar_t *dev, uint8_t level) |
Set overall (brightness) level distributed over all LEDs. More... | |
void | grove_ledbar_clear (grove_ledbar_t *dev) |
Clear ledbar, i.e. More... | |
Ledbar direction, either red to green, or vice versa. | |
#define | GROVE_LEDBAR_R2G MY9221_DIR_FWD |
#define | GROVE_LEDBAR_G2R MY9221_DIR_REV |