Go to the documentation of this file.
35 #define MY9221_LED_MAX (12U)
40 #define MY9221_LED_ON (0xFF)
45 #define MY9221_LED_OFF (0x00)
uint8_t leds
number of LEDs
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.
void my9221_toggle_led(my9221_t *dev, const uint8_t led)
Toggle a distinct LED.
Device descriptor for MY9221 LED controller.
my9221_params_t params
config parameters
Low-level GPIO peripheral driver interface definitions.
Parameters needed for device initialization.
#define MY9221_LED_MAX
Maximum number of distinct LEDs the controller can operate.