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