diff options
author | Ryan <fauxpark@gmail.com> | 2023-09-20 20:50:52 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-20 11:50:52 +0100 |
commit | 4b26d9b62b299f15ce517e3fb7c9bfbe8eaf88b8 (patch) | |
tree | b582e038327a6c672ab9e876e2686d26a9dc78d6 /drivers/led/aw20216s.h | |
parent | 3575e27eceb1a749e9655c046cc4a9dd040cc5ce (diff) |
Update AW20216S LED type (#22072)
* Update AW20216S LED type
* Remove mattgauf keymap
Diffstat (limited to 'drivers/led/aw20216s.h')
-rw-r--r-- | drivers/led/aw20216s.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/led/aw20216s.h b/drivers/led/aw20216s.h index 49b0a8e0ad..e8f1e0344f 100644 --- a/drivers/led/aw20216s.h +++ b/drivers/led/aw20216s.h @@ -49,16 +49,19 @@ #ifdef DRIVER_2_EN # define AW20216S_DRIVER_2_EN DRIVER_2_EN #endif + +#define aw_led aw20216s_led_t +#define g_aw_leds g_aw20216s_leds // ======== -typedef struct aw20216s_led { +typedef struct aw20216s_led_t { uint8_t driver : 2; uint8_t r; uint8_t g; uint8_t b; -} aw20216s_led; +} aw20216s_led_t; -extern const aw20216s_led PROGMEM g_aw20216s_leds[RGB_MATRIX_LED_COUNT]; +extern const aw20216s_led_t PROGMEM g_aw20216s_leds[RGB_MATRIX_LED_COUNT]; void aw20216s_init(pin_t cs_pin, pin_t en_pin); void aw20216s_set_color(int index, uint8_t red, uint8_t green, uint8_t blue); |