From 548766d0a5586f4b4fc5c48856b7f5c16f54efef Mon Sep 17 00:00:00 2001 From: Mikkel Jeppesen <2756925+Duckle29@users.noreply.github.com> Date: Sat, 17 Mar 2018 23:51:50 +0100 Subject: [PATCH] Enabled RGB --- keyboards/lets_split_vitamins/keymaps/default/keymap.c | 6 +++--- keyboards/lets_split_vitamins/matrix.c | 2 ++ keyboards/lets_split_vitamins/rev1/config.h | 5 +++-- keyboards/lets_split_vitamins/rules.mk | 3 +-- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/keyboards/lets_split_vitamins/keymaps/default/keymap.c b/keyboards/lets_split_vitamins/keymaps/default/keymap.c index ff5f38359b..11ef701a3b 100644 --- a/keyboards/lets_split_vitamins/keymaps/default/keymap.c +++ b/keyboards/lets_split_vitamins/keymaps/default/keymap.c @@ -21,7 +21,7 @@ enum custom_keycodes { DVORAK, LOWER, RAISE, - ADJUST, + ADJUST }; // Fillers to make layering more clear @@ -128,14 +128,14 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { * |------+------+------+------+------+------|------+------+------+------+------+------| * | | | | | | | | | | | | | * |------+------+------+------+------+------+------+------+------+------+------+------| - * | | | | | | | | | | | | + * | | | | | | | | | | |RGB_MOD| * `-----------------------------------------------------------------------------------' */ [_ADJUST] = KEYMAP( \ _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, \ _______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, \ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \ + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_MOD \ ) diff --git a/keyboards/lets_split_vitamins/matrix.c b/keyboards/lets_split_vitamins/matrix.c index f12d37e647..53908c4c01 100644 --- a/keyboards/lets_split_vitamins/matrix.c +++ b/keyboards/lets_split_vitamins/matrix.c @@ -33,6 +33,7 @@ along with this program. If not, see . #include "config.h" #include "timer.h" + #ifdef USE_I2C # include "i2c.h" #else // USE_SERIAL @@ -181,6 +182,7 @@ void matrix_init(void) matrix_slave_scan(); } } + } uint8_t _matrix_scan(void) diff --git a/keyboards/lets_split_vitamins/rev1/config.h b/keyboards/lets_split_vitamins/rev1/config.h index 59d0b80142..50168237bc 100644 --- a/keyboards/lets_split_vitamins/rev1/config.h +++ b/keyboards/lets_split_vitamins/rev1/config.h @@ -60,9 +60,10 @@ along with this program. If not, see . /* ws2812 RGB LED */ #define RGB_DI_PIN F0 #define RGBLIGHT_TIMER -#define RGBLED_NUM 12 // Number of LEDs +#define RGBLED_NUM 16 // Number of LEDs #define ws2812_PORTREG PORTF #define ws2812_DDRREG DDRF +#define RGBLIGHT_ANIMATIONS /* Audio settings */ #ifdef AUDIO_ENABLE @@ -82,7 +83,7 @@ along with this program. If not, see . /* disable action features */ //#define NO_ACTION_LAYER -//#define NO_ACTION_TAPPING +#define NO_ACTION_TAPPING //#define NO_ACTION_ONESHOT //#define NO_ACTION_MACRO //#define NO_ACTION_FUNCTION diff --git a/keyboards/lets_split_vitamins/rules.mk b/keyboards/lets_split_vitamins/rules.mk index 501b8c32cc..816534b7dd 100644 --- a/keyboards/lets_split_vitamins/rules.mk +++ b/keyboards/lets_split_vitamins/rules.mk @@ -64,8 +64,7 @@ AUDIO_ENABLE = no # Audio output on port C6 UNICODE_ENABLE = no # Unicode BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. -SUBPROJECT_rev1 = yes -USE_I2C = yes +USE_I2C = no # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend