Skip to content

Commit 4c44fc8

Browse files
committed
feat: Add custom corne_left overlay for RT-22 v0.2 pinout and disable display.
1 parent 363deb9 commit 4c44fc8

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

config/corne.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ CONFIG_ZMK_PM_SOFT_OFF=n
1818
# CONFIG_ZMK_MOUSE=y
1919

2020
CONFIG_ZMK_KEYBOARD_NAME="Nijuni"
21+
CONFIG_ZMK_DISPLAY=n
2122
# CONFIG_ZMK_KEYBOARD_NAME="Chocofi"
2223

2324

config/corne_left.overlay

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* RT-22 v0.2 (Nijuni-like) custom pinout overlay
3+
*
4+
* RT-22 uses standard Corne Row pins (D4, C6, D7, E6) as Columns,
5+
* and standard Corne Column pins (F6, F7, B1, B3) as Rows.
6+
* It also uses SDA (Pin 2) for the 5th column.
7+
*/
8+
9+
/ {
10+
chosen {
11+
zmk,kscan = &kscan0;
12+
};
13+
14+
kscan0: kscan {
15+
compatible = "zmk,kscan-gpio-matrix";
16+
wakeup-source;
17+
diode-direction = "col2row";
18+
19+
row-gpios
20+
= <&pro_micro 19 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> /* F6 */
21+
, <&pro_micro 18 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> /* F7 */
22+
, <&pro_micro 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> /* B1 */
23+
, <&pro_micro 14 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> /* B3 */
24+
;
25+
26+
col-gpios
27+
= <&pro_micro 16 GPIO_ACTIVE_HIGH> /* B2 - Dummy (outer col, &none in keymap) */
28+
, <&pro_micro 2 GPIO_ACTIVE_HIGH> /* SDA - Col 1 (QAZ) */
29+
, <&pro_micro 4 GPIO_ACTIVE_HIGH> /* D4 - Col 2 (WSX) */
30+
, <&pro_micro 5 GPIO_ACTIVE_HIGH> /* C6 - Col 3 (EDC) */
31+
, <&pro_micro 6 GPIO_ACTIVE_HIGH> /* D7 - Col 4 (RFV) */
32+
, <&pro_micro 7 GPIO_ACTIVE_HIGH> /* E6 - Col 5 (TGB) */
33+
;
34+
};
35+
};
36+
37+
/* Disable I2C/OLED to free up SDA pin */
38+
&pro_micro_i2c {
39+
status = "disabled";
40+
};
41+
42+
&oled {
43+
status = "disabled";
44+
};

0 commit comments

Comments
 (0)