diff options
Diffstat (limited to 'keyboards/iris/split_rgb.c')
| -rw-r--r-- | keyboards/iris/split_rgb.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/keyboards/iris/split_rgb.c b/keyboards/iris/split_rgb.c deleted file mode 100644 index 6d7cb44cf..000000000 --- a/keyboards/iris/split_rgb.c +++ /dev/null | |||
| @@ -1,41 +0,0 @@ | |||
| 1 | #include <stdint.h> | ||
| 2 | #include <stdbool.h> | ||
| 3 | #include "split_util.h" | ||
| 4 | #include "progmem.h" | ||
| 5 | #include "print.h" | ||
| 6 | #include "rgblight.h" | ||
| 7 | |||
| 8 | #ifdef USE_I2C | ||
| 9 | # include "i2c.h" | ||
| 10 | #else // USE_SERIAL | ||
| 11 | # include "serial.h" | ||
| 12 | #endif | ||
| 13 | |||
| 14 | |||
| 15 | rgblight_config_t rgblight_config; | ||
| 16 | |||
| 17 | void rgblight_slave_update(void) { | ||
| 18 | //rgblight_effect_christmas(); | ||
| 19 | } | ||
| 20 | |||
| 21 | |||
| 22 | void rgblight_set(void) { | ||
| 23 | if (rgblight_config.enable) { | ||
| 24 | #ifdef RGBW | ||
| 25 | ws2812_setleds_rgbw(led, RGBLED_NUM); | ||
| 26 | #else | ||
| 27 | ws2812_setleds(led, RGBLED_NUM); | ||
| 28 | #endif | ||
| 29 | } else { | ||
| 30 | for (uint8_t i = 0; i < RGBLED_NUM; i++) { | ||
| 31 | led[i].r = 0; | ||
| 32 | led[i].g = 0; | ||
| 33 | led[i].b = 0; | ||
| 34 | } | ||
| 35 | #ifdef RGBW | ||
| 36 | ws2812_setleds_rgbw(led, RGBLED_NUM); | ||
| 37 | #else | ||
| 38 | ws2812_setleds(led, RGBLED_NUM); | ||
| 39 | #endif | ||
| 40 | } | ||
| 41 | } | ||
