summaryrefslogtreecommitdiff
path: root/keyboards/keychron/v6
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keychron/v6')
-rw-r--r--keyboards/keychron/v6/ansi_encoder/config.h3
-rw-r--r--keyboards/keychron/v6/ansi_encoder/info.json5
-rw-r--r--keyboards/keychron/v6/config.h3
-rw-r--r--keyboards/keychron/v6/halconf.h2
-rw-r--r--keyboards/keychron/v6/iso_encoder/config.h3
-rw-r--r--keyboards/keychron/v6/iso_encoder/info.json5
-rw-r--r--keyboards/keychron/v6/mcuconf.h2
7 files changed, 14 insertions, 9 deletions
diff --git a/keyboards/keychron/v6/ansi_encoder/config.h b/keyboards/keychron/v6/ansi_encoder/config.h
index c87df6a9bf..0d8d843d2f 100644
--- a/keyboards/keychron/v6/ansi_encoder/config.h
+++ b/keyboards/keychron/v6/ansi_encoder/config.h
@@ -37,9 +37,6 @@
#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
/* Encoder Configuration */
-#define ENCODERS_PAD_A { C14 }
-#define ENCODERS_PAD_B { A2 }
-#define ENCODER_RESOLUTION 4
#define ENCODER_DEFAULT_POS 0x3
/* Enable caps-lock LED*/
diff --git a/keyboards/keychron/v6/ansi_encoder/info.json b/keyboards/keychron/v6/ansi_encoder/info.json
index 1ac88337f3..d6f46506ec 100644
--- a/keyboards/keychron/v6/ansi_encoder/info.json
+++ b/keyboards/keychron/v6/ansi_encoder/info.json
@@ -8,6 +8,11 @@
"pid": "0x0361",
"device_version": "1.0.0"
},
+ "encoder": {
+ "rotary": [
+ {"pin_a": "C14", "pin_b": "A2"}
+ ]
+ },
"processor": "STM32L432",
"bootloader": "stm32-dfu",
"layouts": {
diff --git a/keyboards/keychron/v6/config.h b/keyboards/keychron/v6/config.h
index af5e706bab..38cff19e6b 100644
--- a/keyboards/keychron/v6/config.h
+++ b/keyboards/keychron/v6/config.h
@@ -19,9 +19,6 @@
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION ROW2COL
-/* Set 0 if debouncing isn't needed */
-#define DEBOUNCE 5
-
/* RGB Matrix Driver Configuration */
#define DRIVER_COUNT 2
#define DRIVER_ADDR_1 0b1110111
diff --git a/keyboards/keychron/v6/halconf.h b/keyboards/keychron/v6/halconf.h
index a7e5474b8c..e490b49e00 100644
--- a/keyboards/keychron/v6/halconf.h
+++ b/keyboards/keychron/v6/halconf.h
@@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#pragma once
+
#define HAL_USE_I2C TRUE
#define PAL_USE_CALLBACKS TRUE
diff --git a/keyboards/keychron/v6/iso_encoder/config.h b/keyboards/keychron/v6/iso_encoder/config.h
index 567db0d7b5..6e8069f7ec 100644
--- a/keyboards/keychron/v6/iso_encoder/config.h
+++ b/keyboards/keychron/v6/iso_encoder/config.h
@@ -37,9 +37,6 @@
#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
/* Encoder Configuration */
-#define ENCODERS_PAD_A { C14 }
-#define ENCODERS_PAD_B { A2 }
-#define ENCODER_RESOLUTION 4
#define ENCODER_DEFAULT_POS 0x3
/* Enable caps-lock LED*/
diff --git a/keyboards/keychron/v6/iso_encoder/info.json b/keyboards/keychron/v6/iso_encoder/info.json
index f0e4a3d4f2..d8f86e5aa0 100644
--- a/keyboards/keychron/v6/iso_encoder/info.json
+++ b/keyboards/keychron/v6/iso_encoder/info.json
@@ -8,6 +8,11 @@
"pid": "0x0363",
"device_version": "1.0.0"
},
+ "encoder": {
+ "rotary": [
+ {"pin_a": "C14", "pin_b": "A2"}
+ ]
+ },
"processor": "STM32L432",
"bootloader": "stm32-dfu",
"layouts": {
diff --git a/keyboards/keychron/v6/mcuconf.h b/keyboards/keychron/v6/mcuconf.h
index ea7ac022d7..0ca8c64850 100644
--- a/keyboards/keychron/v6/mcuconf.h
+++ b/keyboards/keychron/v6/mcuconf.h
@@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#pragma once
+
#include_next <mcuconf.h>
#undef STM32_I2C_USE_I2C1