diff options
| author | Seth Barberee <seth.barberee@gmail.com> | 2018-07-22 08:56:14 -0500 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2018-07-22 06:56:14 -0700 |
| commit | ed99581161b35b383ee9e1f5c070574524e9ea36 (patch) | |
| tree | f0a8cb293512fac2e64b4ab413a47d3ae031da60 /keyboards/iris/split_rgb.c | |
| parent | 83d33caf63fc2270de576c2163f39ace400bc328 (diff) | |
| download | qmk_firmware-ed99581161b35b383ee9e1f5c070574524e9ea36.tar.gz qmk_firmware-ed99581161b35b383ee9e1f5c070574524e9ea36.zip | |
Convert Iris to use SPLIT_KEYBOARD (#3458)
* convert iris to split-common
* Fix build error
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 | } | ||
