aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilba <Jason.S.Williams@gmail.com>2019-04-05 01:10:07 +1100
committerDrashna Jaelre <drashna@live.com>2019-04-04 07:10:07 -0700
commit852d125413388aa3e71d2be91f04ddea534f2af3 (patch)
treecdf5a8791bd764f921fe8761dae9f89a96d321aa
parent3c7cb5cf5dbf9e97db9b98e32beca9ee58a1c246 (diff)
downloadfirmware-852d125413388aa3e71d2be91f04ddea534f2af3.tar.gz
firmware-852d125413388aa3e71d2be91f04ddea534f2af3.tar.bz2
firmware-852d125413388aa3e71d2be91f04ddea534f2af3.zip
[Keyboard] Added configurable defaults for RGB backlight parameters. (#5549)
* Added configurable defaults for RGB backlight indicators. * Added more configurable defaults
-rw-r--r--keyboards/hs60/v2/config.h10
-rw-r--r--keyboards/rama/m60_a/config.h15
-rw-r--r--keyboards/rama/m6_b/config.h15
-rw-r--r--keyboards/zeal60/config.h10
-rw-r--r--keyboards/zeal60/rgb_backlight.c8
-rw-r--r--keyboards/zeal65/config.h10
6 files changed, 64 insertions, 4 deletions
diff --git a/keyboards/hs60/v2/config.h b/keyboards/hs60/v2/config.h
index bbf17251b..05255d133 100644
--- a/keyboards/hs60/v2/config.h
+++ b/keyboards/hs60/v2/config.h
@@ -102,9 +102,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// disable backlight after timeout in minutes, 0 = no timeout
#define RGB_BACKLIGHT_DISABLE_AFTER_TIMEOUT 0
+// the default brightness
+#define RGB_BACKLIGHT_BRIGHTNESS 255
+
// the default effect (RGB test)
#define RGB_BACKLIGHT_EFFECT 255
+// the default effect speed (0-3)
+#define RGB_BACKLIGHT_EFFECT_SPEED 0
+
+// the default color1 and color2
+#define RGB_BACKLIGHT_COLOR_1 { .h = 0, .s = 255 }
+#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 }
+
#define DRIVER_COUNT 2
#define DRIVER_LED_TOTAL 64
diff --git a/keyboards/rama/m60_a/config.h b/keyboards/rama/m60_a/config.h
index 2b54cda79..1cbdee5ae 100644
--- a/keyboards/rama/m60_a/config.h
+++ b/keyboards/rama/m60_a/config.h
@@ -87,9 +87,19 @@
// disable backlight after timeout in minutes, 0 = no timeout
#define RGB_BACKLIGHT_DISABLE_AFTER_TIMEOUT 0
+// the default brightness
+#define RGB_BACKLIGHT_BRIGHTNESS 255
+
// the default effect (RGB test)
#define RGB_BACKLIGHT_EFFECT 255
+// the default effect speed (0-3)
+#define RGB_BACKLIGHT_EFFECT_SPEED 0
+
+// the default color1 and color2
+#define RGB_BACKLIGHT_COLOR_1 { .h = 0, .s = 255 }
+#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 }
+
// These define which keys in the matrix are alphas/mods
// Used for backlight effects so colors are different for
// alphas vs. mods
@@ -101,6 +111,11 @@
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_3 0b0011000000000001
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_4 0b0011100000000111
+#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
diff --git a/keyboards/rama/m6_b/config.h b/keyboards/rama/m6_b/config.h
index c2a225d53..0d690bffa 100644
--- a/keyboards/rama/m6_b/config.h
+++ b/keyboards/rama/m6_b/config.h
@@ -120,9 +120,19 @@
// disable backlight after timeout in minutes, 0 = no timeout
#define RGB_BACKLIGHT_DISABLE_AFTER_TIMEOUT 0
+// the default brightness
+#define RGB_BACKLIGHT_BRIGHTNESS 255
+
// the default effect (RGB test)
#define RGB_BACKLIGHT_EFFECT 255
+// the default effect speed (0-3)
+#define RGB_BACKLIGHT_EFFECT_SPEED 0
+
+// the default color1 and color2
+#define RGB_BACKLIGHT_COLOR_1 { .h = 0, .s = 255 }
+#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 }
+
// These define which keys in the matrix are alphas/mods
// Used for backlight effects so colors are different for
// alphas vs. mods
@@ -134,6 +144,11 @@
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_3 0
#define RGB_BACKLIGHT_ALPHAS_MODS_ROW_4 0
+#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
diff --git a/keyboards/zeal60/config.h b/keyboards/zeal60/config.h
index 94cc9989b..a5e41116d 100644
--- a/keyboards/zeal60/config.h
+++ b/keyboards/zeal60/config.h
@@ -86,9 +86,19 @@
// disable backlight after timeout in minutes, 0 = no timeout
#define RGB_BACKLIGHT_DISABLE_AFTER_TIMEOUT 0
+// the default brightness
+#define RGB_BACKLIGHT_BRIGHTNESS 255
+
// the default effect (RGB test)
#define RGB_BACKLIGHT_EFFECT 255
+// the default effect speed (0-3)
+#define RGB_BACKLIGHT_EFFECT_SPEED 0
+
+// the default color1 and color2
+#define RGB_BACKLIGHT_COLOR_1 { .h = 0, .s = 255 }
+#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 }
+
// These define which keys in the matrix are alphas/mods
// Used for backlight effects so colors are different for
// alphas vs. mods
diff --git a/keyboards/zeal60/rgb_backlight.c b/keyboards/zeal60/rgb_backlight.c
index 8d7a7fe8d..d5f206fdc 100644
--- a/keyboards/zeal60/rgb_backlight.c
+++ b/keyboards/zeal60/rgb_backlight.c
@@ -69,11 +69,11 @@ backlight_config g_config = {
.disable_hhkb_blocker_leds = RGB_BACKLIGHT_DISABLE_HHKB_BLOCKER_LEDS,
.disable_when_usb_suspended = RGB_BACKLIGHT_DISABLE_WHEN_USB_SUSPENDED,
.disable_after_timeout = RGB_BACKLIGHT_DISABLE_AFTER_TIMEOUT,
- .brightness = 255,
+ .brightness = RGB_BACKLIGHT_BRIGHTNESS,
.effect = RGB_BACKLIGHT_EFFECT,
- .effect_speed = 0,
- .color_1 = { .h = 0, .s = 255 },
- .color_2 = { .h = 127, .s = 255 },
+ .effect_speed = RGB_BACKLIGHT_EFFECT_SPEED,
+ .color_1 = RGB_BACKLIGHT_COLOR_1,
+ .color_2 = RGB_BACKLIGHT_COLOR_2,
.caps_lock_indicator = RGB_BACKLIGHT_CAPS_LOCK_INDICATOR,
.layer_1_indicator = RGB_BACKLIGHT_LAYER_1_INDICATOR,
.layer_2_indicator = RGB_BACKLIGHT_LAYER_2_INDICATOR,
diff --git a/keyboards/zeal65/config.h b/keyboards/zeal65/config.h
index 896deac8b..224fce1f6 100644
--- a/keyboards/zeal65/config.h
+++ b/keyboards/zeal65/config.h
@@ -86,9 +86,19 @@
// disable backlight after timeout in minutes, 0 = no timeout
#define RGB_BACKLIGHT_DISABLE_AFTER_TIMEOUT 0
+// the default brightness
+#define RGB_BACKLIGHT_BRIGHTNESS 255
+
// the default effect (RGB test)
#define RGB_BACKLIGHT_EFFECT 255
+// the default effect speed (0-3)
+#define RGB_BACKLIGHT_EFFECT_SPEED 0
+
+// the default color1 and color2
+#define RGB_BACKLIGHT_COLOR_1 { .h = 0, .s = 255 }
+#define RGB_BACKLIGHT_COLOR_2 { .h = 127, .s = 255 }
+
// These define which keys in the matrix are alphas/mods
// Used for backlight effects so colors are different for
// alphas vs. mods