summaryrefslogtreecommitdiff
path: root/drivers/led/issi/is31fl3741.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/led/issi/is31fl3741.h')
-rw-r--r--drivers/led/issi/is31fl3741.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/led/issi/is31fl3741.h b/drivers/led/issi/is31fl3741.h
index 1febb6398b..2b0e449554 100644
--- a/drivers/led/issi/is31fl3741.h
+++ b/drivers/led/issi/is31fl3741.h
@@ -22,6 +22,7 @@
#include <stdint.h>
#include <stdbool.h>
#include "progmem.h"
+#include "util.h"
// ======== DEPRECATED DEFINES - DO NOT USE ========
#ifdef DRIVER_ADDR_1
@@ -81,11 +82,11 @@
#endif
typedef struct is31fl3741_led_t {
- uint32_t driver : 2;
- uint32_t r : 10;
- uint32_t g : 10;
- uint32_t b : 10;
-} __attribute__((packed)) is31fl3741_led_t;
+ uint8_t driver : 2;
+ uint16_t r : 9;
+ uint16_t g : 9;
+ uint16_t b : 9;
+} PACKED is31fl3741_led_t;
extern const is31fl3741_led_t PROGMEM g_is31fl3741_leds[IS31FL3741_LED_COUNT];