From 9ceabfb267f8daedaad929231229c703abc12ec4 Mon Sep 17 00:00:00 2001 From: Louis Orleans Date: Mon, 11 Sep 2017 11:09:25 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20RGB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- keyboards/ergodox_infinity/config.h | 8 ++++++++ keyboards/ergodox_infinity/rules.mk | 10 +++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/keyboards/ergodox_infinity/config.h b/keyboards/ergodox_infinity/config.h index 094761e0b4..e20efb8400 100644 --- a/keyboards/ergodox_infinity/config.h +++ b/keyboards/ergodox_infinity/config.h @@ -77,6 +77,14 @@ along with this program. If not, see . #define VISUALIZER_USER_DATA_SIZE 16 +// ws2812 options +#define RGB_DI_PIN F6 // pin the DI on the ws2812 is hooked-up to +#define RGBLIGHT_ANIMATIONS // run RGB animations +#define RGBLED_NUM 6 // number of LEDs +#define RGBLIGHT_HUE_STEP 12 // units to step when in/decreasing hue +#define RGBLIGHT_SAT_STEP 25 // units to step when in/decresing saturation +#define RGBLIGHT_VAL_STEP 12 // units to step when in/decreasing value (brightness) + /* * Feature disable options * These options are also useful to firmware size reduction. diff --git a/keyboards/ergodox_infinity/rules.mk b/keyboards/ergodox_infinity/rules.mk index cb11152556..d42d20d2d4 100644 --- a/keyboards/ergodox_infinity/rules.mk +++ b/keyboards/ergodox_infinity/rules.mk @@ -75,15 +75,15 @@ VISUALIZER_ENABLE = yes LCD_ENABLE = yes BACKLIGHT_ENABLE = yes LCD_BACKLIGHT_ENABLE = yes -MIDI_ENABLE = no -RGBLIGHT_ENABLE = no +MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) +RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. LCD_DRIVER = st7565 -LCD_WIDTH = 128 +LCD_WIDTH = 128 LCD_HEIGHT = 32 LED_DRIVER = is31fl3731c -LED_WIDTH = 7 +LED_WIDTH = 7 LED_HEIGHT = 7 -LAYOUTS = ergodox ergodox_80 \ No newline at end of file +LAYOUTS = ergodox ergodox_80