]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Added configurable defaults for RGB backlight indicators.
authorWilba6582 <Jason.S.Williams@gmail.com>
Wed, 3 Apr 2019 12:54:34 +0000 (23:54 +1100)
committerDrashna Jaelre <drashna@live.com>
Wed, 3 Apr 2019 17:24:40 +0000 (10:24 -0700)
keyboards/hs60/v2/config.h
keyboards/zeal60/config.h
keyboards/zeal60/rgb_backlight.c
keyboards/zeal65/config.h

index b0c56adf891617b3bb462733bdee2541d3a90111..bbf17251b4eadf7cbd3bf60cb2d18ce4826f30da 100644 (file)
@@ -119,6 +119,11 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define RGB_BACKLIGHT_ALPHAS_MODS_ROW_3 0b0010000000000001
 #define RGB_BACKLIGHT_ALPHAS_MODS_ROW_4 0b0011110000000111
 
+#define RGB_BACKLIGHT_CAPS_LOCK_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 }
+#define RGB_BACKLIGHT_LAYER_1_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 }
+#define RGB_BACKLIGHT_LAYER_2_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 }
+#define RGB_BACKLIGHT_LAYER_3_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 }
+
 // TODO: refactor with new user EEPROM code (coming soon)
 #define EEPROM_MAGIC 0x451F
 #define EEPROM_MAGIC_ADDR 32
index e39b06cf6b23eb822d8e3d17ea59869b5af70c3f..94cc9989b74af0fe3ab8cd1adcb0c80eceaadcb8 100644 (file)
 #define RGB_BACKLIGHT_ALPHAS_MODS_ROW_3 0b0011000000000001
 #define RGB_BACKLIGHT_ALPHAS_MODS_ROW_4 0b0011110000000111
 
+#define RGB_BACKLIGHT_CAPS_LOCK_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 }
+#define RGB_BACKLIGHT_LAYER_1_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 }
+#define RGB_BACKLIGHT_LAYER_2_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 }
+#define RGB_BACKLIGHT_LAYER_3_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 }
+
 #define DYNAMIC_KEYMAP_LAYER_COUNT 4
 
 // EEPROM usage
index a965a13bbdf6887a11ad99c526638a1193fa64c0..8d7a7fe8d10bf44e24f775cfb19a4f74e68138e3 100644 (file)
@@ -74,10 +74,10 @@ backlight_config g_config = {
        .effect_speed = 0,
        .color_1 = { .h = 0, .s = 255 },
        .color_2 = { .h = 127, .s = 255 },
-       .caps_lock_indicator = { .color = { .h = 0, .s = 0 }, .index = 255 },
-       .layer_1_indicator = { .color = { .h = 0, .s = 0 }, .index = 255 },
-       .layer_2_indicator = { .color = { .h = 0, .s = 0 }, .index = 255 },
-       .layer_3_indicator = { .color = { .h = 0, .s = 0 }, .index = 255 },
+       .caps_lock_indicator = RGB_BACKLIGHT_CAPS_LOCK_INDICATOR,
+       .layer_1_indicator = RGB_BACKLIGHT_LAYER_1_INDICATOR,
+       .layer_2_indicator = RGB_BACKLIGHT_LAYER_2_INDICATOR,
+       .layer_3_indicator = RGB_BACKLIGHT_LAYER_3_INDICATOR,
        .alphas_mods = {
                RGB_BACKLIGHT_ALPHAS_MODS_ROW_0,
                RGB_BACKLIGHT_ALPHAS_MODS_ROW_1,
index 7406be865b0b2cec2dbbc1b3fecc80b3bfd4d1b9..896deac8b8be5d2c3355c5c90861b383dacf8308 100644 (file)
 #define RGB_BACKLIGHT_ALPHAS_MODS_ROW_3 0b0111000000000001
 #define RGB_BACKLIGHT_ALPHAS_MODS_ROW_4 0b0111110000000011
 
+#define RGB_BACKLIGHT_CAPS_LOCK_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 }
+#define RGB_BACKLIGHT_LAYER_1_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 }
+#define RGB_BACKLIGHT_LAYER_2_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 }
+#define RGB_BACKLIGHT_LAYER_3_INDICATOR { .color = { .h = 0, .s = 0 }, .index = 255 }
+
 #define DYNAMIC_KEYMAP_LAYER_COUNT 4
 
 // EEPROM usage