diff options
| author | XScorpion2 <rcalt2vt@gmail.com> | 2019-04-14 20:50:35 -0400 |
|---|---|---|
| committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-04-14 17:50:35 -0700 |
| commit | 5fcd744ddba591829a129560992b2e43fb615d4d (patch) | |
| tree | 33b78133af1563f5dfa1e125a37f86e30a7df1cb /quantum/rgblight.c | |
| parent | d7ba190cd9b90bce3a00dfa2a9afe4b3bf0a1dbb (diff) | |
| download | qmk_firmware-5fcd744ddba591829a129560992b2e43fb615d4d.tar.gz qmk_firmware-5fcd744ddba591829a129560992b2e43fb615d4d.zip | |
Features/ws2812 matrix driver (#5418)
* WS2812 driver implementation for RGB Matrix
* Added driver configuration docs
Diffstat (limited to 'quantum/rgblight.c')
| -rw-r--r-- | quantum/rgblight.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c index 08515564b..e2410424e 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight.c | |||
| @@ -63,7 +63,11 @@ const uint16_t RGBLED_GRADIENT_RANGES[] PROGMEM = {360, 240, 180, 120, 90}; | |||
| 63 | rgblight_config_t rgblight_config; | 63 | rgblight_config_t rgblight_config; |
| 64 | bool is_rgblight_initialized = false; | 64 | bool is_rgblight_initialized = false; |
| 65 | 65 | ||
| 66 | #ifndef LED_ARRAY | ||
| 66 | LED_TYPE led[RGBLED_NUM]; | 67 | LED_TYPE led[RGBLED_NUM]; |
| 68 | #define LED_ARRAY led | ||
| 69 | #endif | ||
| 70 | |||
| 67 | bool rgblight_timer_enabled = false; | 71 | bool rgblight_timer_enabled = false; |
| 68 | 72 | ||
| 69 | static uint8_t clipping_start_pos = 0; | 73 | static uint8_t clipping_start_pos = 0; |
