Julia Luna
2 years ago
10 changed files with 120 additions and 0 deletions
@ -0,0 +1,16 @@
@@ -0,0 +1,16 @@
|
||||
if SHIELD_MEOWBOARD_LEFT |
||||
|
||||
config ZMK_KEYBOARD_NAME |
||||
default "Meowboard" |
||||
|
||||
config ZMK_SPLIT_ROLE_CENTRAL |
||||
default y |
||||
|
||||
endif |
||||
|
||||
if SHIELD_MEOWBOARD_LEFT || SHIELD_MEOWBOARD_RIGHT |
||||
|
||||
config ZMK_SPLIT |
||||
default y |
||||
|
||||
endif |
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
config SHIELD_MEOWBOARD_LEFT |
||||
def_bool $(shields_list_contains,meowboard_left) |
||||
|
||||
config SHIELD_MEOWBOARD_RIGHT |
||||
def_bool $(shields_list_contains,meowboard_right) |
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
#include "meowboard.dtsi" |
||||
|
||||
&kscan0 { |
||||
col-gpios |
||||
= <&pro_micro 18 GPIO_ACTIVE_HIGH> // l pinky |
||||
, <&pro_micro 15 GPIO_ACTIVE_HIGH> // l ring |
||||
, <&pro_micro 14 GPIO_ACTIVE_HIGH> // l middle |
||||
, <&pro_micro 16 GPIO_ACTIVE_HIGH> // l index |
||||
, <&pro_micro 10 GPIO_ACTIVE_HIGH> // l inner |
||||
; |
||||
}; |
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
#include "meowboard.dtsi" |
||||
|
||||
&default_transform { |
||||
col-offset = <5>; |
||||
}; |
||||
|
||||
&kscan0 { |
||||
col-gpios |
||||
= <&pro_micro 10 GPIO_ACTIVE_HIGH> // r inner |
||||
, <&pro_micro 16 GPIO_ACTIVE_HIGH> // r index |
||||
, <&pro_micro 14 GPIO_ACTIVE_HIGH> // r middle |
||||
, <&pro_micro 15 GPIO_ACTIVE_HIGH> // r ring |
||||
, <&pro_micro 18 GPIO_ACTIVE_HIGH> // r pinky |
||||
; |
||||
}; |
@ -0,0 +1,39 @@
@@ -0,0 +1,39 @@
|
||||
#include <dt-bindings/zmk/matrix_transform.h> |
||||
|
||||
|
||||
/ { |
||||
chosen { |
||||
zmk,kscan = &kscan0; |
||||
zmk,matrix_transform = &default_transform; |
||||
}; |
||||
|
||||
default_transform: keymap_transform_0 { |
||||
compatible = "zmk,matrix-transform"; |
||||
columns = <10>; |
||||
rows = <5>; |
||||
|
||||
map = < |
||||
RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,6) RC(0,7) RC(0,8) RC(0,9) |
||||
RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(1,6) RC(1,7) RC(1,8) RC(1,9) |
||||
RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(2,8) RC(2,9) |
||||
RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(3,6) RC(3,7) RC(3,8) RC(3,9) |
||||
RC(4,0) RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,5) RC(4,6) RC(4,7) RC(4,8) RC(4,9) |
||||
>; |
||||
|
||||
}; |
||||
|
||||
kscan0: kscan { |
||||
compatible = "zmk,kscan-gpio-matrix"; |
||||
label = "KSCAN"; |
||||
|
||||
diode-direction = "row2col"; |
||||
row-gpios |
||||
= <&pro_micro 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // Row A from the schematic file |
||||
, <&pro_micro 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // Row B from the schematic file |
||||
, <&pro_micro 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // Row C from the schematic file |
||||
, <&pro_micro 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // Row D from the schematic file |
||||
, <&pro_micro 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // Row E from the schematic file |
||||
; |
||||
|
||||
}; |
||||
}; |
@ -0,0 +1,22 @@
@@ -0,0 +1,22 @@
|
||||
#include <behaviors.dtsi> |
||||
#include <dt-bindings/zmk/keys.h> |
||||
|
||||
#define DEFAULT 0 |
||||
#define L2 1 |
||||
#define L3 2 |
||||
|
||||
/ { |
||||
keymap { |
||||
compatible = "zmk,keymap"; |
||||
|
||||
default_layer { |
||||
bindings = < |
||||
&trans &trans &trans &trans &kp 1 &kp 2 &kp 3 &trans |
||||
&kp X &kp V &kp L &kp C &kp W &kp K &kp H &kp G &kp F &kp Q |
||||
&kp U &kp I &kp A &kp E &kp O &kp S &kp N &kp R &kp T &kp D |
||||
&trans &trans &kp Y &kp P &kp Z &kp B &kp M &kp COMMA &kp DOT &kp J |
||||
&kp ESC &kp SPACE &kp TAB &kp LCTRL &mo L2 &mo L3 &kp LMETA &kp PSCRN &kp ENTER &kp DEL |
||||
>; |
||||
}; |
||||
}; |
||||
}; |
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
file_format: "1" |
||||
id: meowboard |
||||
name: Meowboard |
||||
type: shield |
||||
url: https://git.julia.network/julia/meowboard |
||||
requires: |
||||
- pro_micro |
||||
features: |
||||
- keys |
||||
siblings: |
||||
- meowboard_left |
||||
- meowboard_right |
Loading…
Reference in new issue