Go to the documentation of this file.
24 #ifndef GROVE_LEDBAR_H
25 #define GROVE_LEDBAR_H
39 #define GROVE_LEDBAR_R2G MY9221_DIR_FWD
40 #define GROVE_LEDBAR_G2R MY9221_DIR_REV
46 #define GROVE_LEDBAR_MAX UINT8_MAX
int grove_ledbar_init(grove_ledbar_t *dev, const grove_ledbar_params_t *params)
Initialize the given driver.
void grove_ledbar_set(grove_ledbar_t *dev, uint8_t level)
Set overall (brightness) level distributed over all LEDs.
my9221_params_t grove_ledbar_params_t
Parameters needed for device initialization.
my9221_t grove_ledbar_t
Device descriptor for grove ledbar, alias for MY9221 LED controller.
void grove_ledbar_clear(grove_ledbar_t *dev)
Clear ledbar, i.e.
Device descriptor for MY9221 LED controller.
Interface for the MY9221 LED controller driver.
Parameters needed for device initialization.