summaryrefslogtreecommitdiffstats
path: root/keyboards/keychron/q9/ansi
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keychron/q9/ansi')
-rw-r--r--keyboards/keychron/q9/ansi/ansi.c2
-rw-r--r--keyboards/keychron/q9/ansi/ansi.h19
-rw-r--r--keyboards/keychron/q9/ansi/info.json46
-rw-r--r--keyboards/keychron/q9/ansi/rules.mk1
4 files changed, 28 insertions, 40 deletions
diff --git a/keyboards/keychron/q9/ansi/ansi.c b/keyboards/keychron/q9/ansi/ansi.c
index e10c4de25b..b98149a5f8 100644
--- a/keyboards/keychron/q9/ansi/ansi.c
+++ b/keyboards/keychron/q9/ansi/ansi.c
@@ -14,7 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "ansi.h"
+#include "quantum.h"
#ifdef RGB_MATRIX_ENABLE
diff --git a/keyboards/keychron/q9/ansi/ansi.h b/keyboards/keychron/q9/ansi/ansi.h
deleted file mode 100644
index db52563dc4..0000000000
--- a/keyboards/keychron/q9/ansi/ansi.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/* Copyright 2021 @ 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
-
-#include "quantum.h"
diff --git a/keyboards/keychron/q9/ansi/info.json b/keyboards/keychron/q9/ansi/info.json
index e1a6ae534d..28ed46e56d 100644
--- a/keyboards/keychron/q9/ansi/info.json
+++ b/keyboards/keychron/q9/ansi/info.json
@@ -8,6 +8,14 @@
"pid": "0x0190",
"device_version": "1.0.0"
},
+ "rgb_matrix": {
+ "driver": "CKLED2001"
+ },
+ "matrix_pins": {
+ "cols": ["A10", "A9", "A8", "B1", "B0", "A7", "A6", "A5", "A4", "A3", "A2", "A1", "A0", "C15", "C14"],
+ "rows": ["B3", "A15", "A14", "A13"]
+ },
+ "diode_direction": "ROW2COL",
"processor": "STM32L432",
"bootloader": "stm32-dfu",
"layouts": {
@@ -23,11 +31,11 @@
{"matrix":[0, 7], "x":7.5, "y":0.25},
{"matrix":[0, 8], "x":8.5, "y":0.25},
{"matrix":[0, 9], "x":9.5, "y":0.25},
- {"matrix":[0,10], "x":10.5, "y":0.25},
- {"matrix":[0,11], "x":11.5, "y":0.25},
- {"matrix":[0,12], "x":12.5, "y":0.25},
- {"matrix":[0,13], "x":13.5, "y":0.25, "w":1.5},
- {"matrix":[0,14], "x":15.25, "y":0},
+ {"matrix":[0, 10], "x":10.5, "y":0.25},
+ {"matrix":[0, 11], "x":11.5, "y":0.25},
+ {"matrix":[0, 12], "x":12.5, "y":0.25},
+ {"matrix":[0, 13], "x":13.5, "y":0.25, "w":1.5},
+ {"matrix":[0, 14], "x":15.25, "y":0},
{"matrix":[1, 0], "x":0, "y":1.25, "w":1.75},
{"matrix":[1, 1], "x":1.75, "y":1.25},
@@ -39,10 +47,10 @@
{"matrix":[1, 7], "x":7.75, "y":1.25},
{"matrix":[1, 8], "x":8.75, "y":1.25},
{"matrix":[1, 9], "x":9.75, "y":1.25},
- {"matrix":[1,10], "x":10.75, "y":1.25},
- {"matrix":[1,11], "x":11.75, "y":1.25},
- {"matrix":[1,13], "x":12.75, "y":1.25, "w":2.25},
- {"matrix":[1,14], "x":15.25, "y":1.25},
+ {"matrix":[1, 10], "x":10.75, "y":1.25},
+ {"matrix":[1, 11], "x":11.75, "y":1.25},
+ {"matrix":[1, 13], "x":12.75, "y":1.25, "w":2.25},
+ {"matrix":[1, 14], "x":15.25, "y":1.25},
{"matrix":[2, 0], "x":0, "y":2.25, "w":2.25},
{"matrix":[2, 2], "x":2.25, "y":2.25},
@@ -53,21 +61,21 @@
{"matrix":[2, 7], "x":7.25, "y":2.25},
{"matrix":[2, 8], "x":8.25, "y":2.25},
{"matrix":[2, 9], "x":9.25, "y":2.25},
- {"matrix":[2,10], "x":10.25, "y":2.25},
- {"matrix":[2,11], "x":11.25, "y":2.25},
- {"matrix":[2,13], "x":12.25, "y":2.25, "w":1.75},
- {"matrix":[2,14], "x":14.25, "y":2.5},
+ {"matrix":[2, 10], "x":10.25, "y":2.25},
+ {"matrix":[2, 11], "x":11.25, "y":2.25},
+ {"matrix":[2, 13], "x":12.25, "y":2.25, "w":1.75},
+ {"matrix":[2, 14], "x":14.25, "y":2.5},
{"matrix":[3, 0], "x":0, "y":3.25, "w":1.25},
{"matrix":[3, 1], "x":1.25, "y":3.25, "w":1.25},
{"matrix":[3, 2], "x":2.5, "y":3.25, "w":1.25},
{"matrix":[3, 6], "x":3.75, "y":3.25, "w":6.25},
- {"matrix":[3,10], "x":10, "y":3.25},
- {"matrix":[3,11], "x":11, "y":3.25},
- {"matrix":[3,12], "x":12, "y":3.25},
- {"matrix":[3,13], "x":13.25, "y":3.5},
- {"matrix":[3,14], "x":14.25, "y":3.5},
- {"matrix":[1,12], "x":15.25, "y":3.5}
+ {"matrix":[3, 10], "x":10, "y":3.25},
+ {"matrix":[3, 11], "x":11, "y":3.25},
+ {"matrix":[3, 12], "x":12, "y":3.25},
+ {"matrix":[3, 13], "x":13.25, "y":3.5},
+ {"matrix":[3, 14], "x":14.25, "y":3.5},
+ {"matrix":[1, 12], "x":15.25, "y":3.5}
]
}
}
diff --git a/keyboards/keychron/q9/ansi/rules.mk b/keyboards/keychron/q9/ansi/rules.mk
index 345807d824..2b4a67b1ee 100644
--- a/keyboards/keychron/q9/ansi/rules.mk
+++ b/keyboards/keychron/q9/ansi/rules.mk
@@ -12,7 +12,6 @@ RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output
DIP_SWITCH_ENABLE = yes
RGB_MATRIX_ENABLE = yes
-RGB_MATRIX_DRIVER = CKLED2001
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = embedded_flash