35#define MY9221_LED_MAX (12U)
40#define MY9221_LED_ON (0xFF)
45#define MY9221_LED_OFF (0x00)
Low-level GPIO peripheral driver interface definitions.
void my9221_toggle_led(my9221_t *dev, const uint8_t led)
Toggle a distinct LED.
#define MY9221_LED_MAX
Maximum number of distinct LEDs the controller can operate.
void my9221_set_led(my9221_t *dev, const uint8_t led, const uint8_t alpha)
Set brightness of distinct LED.
int my9221_init(my9221_t *dev, const my9221_params_t *params)
Initialize the given driver.
void my9221_set_state(my9221_t *dev, const uint8_t *state, uint8_t len)
Set device state.
Parameters needed for device initialization.
uint8_t leds
number of LEDs
Device descriptor for MY9221 LED controller.
my9221_params_t params
config parameters