diff options
Diffstat (limited to 'drivers/avr/ws2812.h')
| -rw-r--r-- | drivers/avr/ws2812.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/avr/ws2812.h b/drivers/avr/ws2812.h index 60924a0fb..f7e0c3144 100644 --- a/drivers/avr/ws2812.h +++ b/drivers/avr/ws2812.h | |||
| @@ -28,23 +28,7 @@ | |||
| 28 | //#include "ws2812_config.h" | 28 | //#include "ws2812_config.h" |
| 29 | //#include "i2cmaster.h" | 29 | //#include "i2cmaster.h" |
| 30 | 30 | ||
| 31 | #ifdef RGBW | 31 | #include "rgblight_types.h" |
| 32 | #define LED_TYPE struct cRGBW | ||
| 33 | #else | ||
| 34 | #define LED_TYPE struct cRGB | ||
| 35 | #endif | ||
| 36 | |||
| 37 | |||
| 38 | /* | ||
| 39 | * Structure of the LED array | ||
| 40 | * | ||
| 41 | * cRGB: RGB for WS2812S/B/C/D, SK6812, SK6812Mini, SK6812WWA, APA104, APA106 | ||
| 42 | * cRGBW: RGBW for SK6812RGBW | ||
| 43 | */ | ||
| 44 | |||
| 45 | struct cRGB { uint8_t g; uint8_t r; uint8_t b; }; | ||
| 46 | struct cRGBW { uint8_t g; uint8_t r; uint8_t b; uint8_t w;}; | ||
| 47 | |||
| 48 | 32 | ||
| 49 | 33 | ||
| 50 | /* User Interface | 34 | /* User Interface |
