summaryrefslogtreecommitdiff
path: root/keyboards/keychron/s1/ansi/white/config.h
diff options
context:
space:
mode:
authorlalalademaxiya1 <66767061+lalalademaxiya1@users.noreply.github.com>2022-12-20 14:44:23 +0800
committerGitHub <noreply@github.com>2022-12-20 17:44:23 +1100
commit8560280afe1d559aba58ab1a2e6f1f8fda9e4e46 (patch)
tree2ac6be8b7d7aa936fd8e4a75a5c3ab8a21052616 /keyboards/keychron/s1/ansi/white/config.h
parent8d43f20624d12f16cc1f64ce36d6735caa944362 (diff)
Add Keychron S1 (#19378)
Diffstat (limited to 'keyboards/keychron/s1/ansi/white/config.h')
-rw-r--r--keyboards/keychron/s1/ansi/white/config.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/keyboards/keychron/s1/ansi/white/config.h b/keyboards/keychron/s1/ansi/white/config.h
new file mode 100644
index 0000000000..ee09c95266
--- /dev/null
+++ b/keyboards/keychron/s1/ansi/white/config.h
@@ -0,0 +1,64 @@
+/* Copyright 2022 @ Keychron (https://www.keychron.com)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+/* LED Matrix Driver Configuration */
+#define DRIVER_COUNT 1
+#define DRIVER_ADDR_1 0b1110100
+#define DRIVER_1_LED_TOTAL 84
+#define LED_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
+
+/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
+#define PHASE_CHANNEL MSKPHASE_6CHANNEL
+#define CKLED2001_CURRENT_TUNE \
+ { 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80 } // 250mA
+ // { 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40 } // 127mA
+
+/* Disable LED lighting when PC is in suspend */
+#define LED_DISABLE_WHEN_USB_SUSPENDED
+
+// LED Matrix Animation modes. Explicitly enabled
+// For full list of effects, see:
+// https://docs.qmk.fm/#/feature_led_matrix?id=led-matrix-effects
+#define ENABLE_LED_MATRIX_NONE
+#define ENABLE_LED_MATRIX_SOLID // Static single val, no speed support
+// #define ENABLE_LED_MATRIX_ALPHAS_MODS // Static dual val, speed is val for LEDs marked as modifiers
+#define ENABLE_LED_MATRIX_BREATHING // Cycling brightness animation
+// #define ENABLE_LED_MATRIX_BAND // Band fading brightness scrolling left to right
+#define ENABLE_LED_MATRIX_BAND_PINWHEEL // 3 blade spinning pinwheel fades brightness
+#define ENABLE_LED_MATRIX_BAND_SPIRAL // Spinning spiral fades brightness
+#define ENABLE_LED_MATRIX_CYCLE_LEFT_RIGHT // Full gradient scrolling left to right
+#define ENABLE_LED_MATRIX_CYCLE_UP_DOWN // Full gradient scrolling top to bottom
+#define ENABLE_LED_MATRIX_CYCLE_OUT_IN // Full gradient scrolling out to in
+#define ENABLE_LED_MATRIX_DUAL_BEACON // Full gradient spinning around center of keyboard
+// #if defined(LED_MATRIX_KEYPRESSES) || defined(LED_MATRIX_KEYRELEASES)
+#define LED_MATRIX_KEYPRESSES
+#define LED_MATRIX_KEYRELEASES
+
+#define ENABLE_LED_MATRIX_SOLID_REACTIVE_SIMPLE // Pulses keys hit then fades out
+// #define ENABLE_LED_MATRIX_SOLID_REACTIVE_WIDE // Value pulses near a single key hit then fades out
+#define ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTIWIDE // Value pulses near multiple key hits then fades out
+#define ENABLE_LED_MATRIX_SOLID_REACTIVE_CROSS // Value pulses the same column and row of a single key hit then fades out
+// #define ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTICROSS // Value pulses the same column and row of multiple key hits then fades out
+// #define ENABLE_LED_MATRIX_SOLID_REACTIVE_NEXUS // Value pulses away on the same column and row of a single key hit then fades out
+// #define ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTINEXUS // Value pulses away on the same column and row of multiple key hits then fades out
+#define ENABLE_LED_MATRIX_SOLID_SPLASH // Value pulses away from a single key hit then fades out
+#define ENABLE_LED_MATRIX_SOLID_MULTISPLASH // Value pulses away from multiple key hits then fades out
+// #endif
+#define ENABLE_LED_MATRIX_WAVE_LEFT_RIGHT // Sine wave scrolling from left to right
+#define ENBALE_LED_MATRIX_WAVE_UP_DOWN // Sine wave scrolling from up to down
+// #define ENABLE_LED_MATRIX_EFFECT_MAX