mirror of
https://github.com/CrispyPin/zmk-config.git
synced 2024-11-21 17:40:25 +01:00
add leko_pona inital configs
This commit is contained in:
parent
ee17c9b0d5
commit
e291e38b0f
14 changed files with 119 additions and 8 deletions
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"editor.fontFamily": "mono"
|
||||||
|
}
|
|
@ -14,6 +14,6 @@
|
||||||
---
|
---
|
||||||
include:
|
include:
|
||||||
- board: nice_nano_v2
|
- board: nice_nano_v2
|
||||||
shield: corne_left
|
shield: leko_pona_left
|
||||||
- board: nice_nano_v2
|
- board: nice_nano_v2
|
||||||
shield: corne_right
|
shield: leko_pona_right
|
||||||
|
|
16
config/boards/shields/leko_pona/Kconfig.defconfig
Normal file
16
config/boards/shields/leko_pona/Kconfig.defconfig
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
if SHIELD_LEKO_PONA_LEFT
|
||||||
|
|
||||||
|
config ZMK_KEYBOARD_NAME
|
||||||
|
default "leko pona wan"
|
||||||
|
|
||||||
|
config ZMK_SPLIT_ROLE_CENTRAL
|
||||||
|
default y
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
if SHIELD_LEKO_PONA_LEFT || SHIELD_LEKO_PONA_RIGHT
|
||||||
|
|
||||||
|
config ZMK_SPLIT
|
||||||
|
default y
|
||||||
|
|
||||||
|
endif
|
5
config/boards/shields/leko_pona/Kconfig.shield
Normal file
5
config/boards/shields/leko_pona/Kconfig.shield
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
config SHIELD_LEKO_PONA_LEFT
|
||||||
|
def_bool $(shields_list_contains,leko_pona_left)
|
||||||
|
|
||||||
|
config SHIELD_LEKO_PONA_RIGHT
|
||||||
|
def_bool $(shields_list_contains,leko_pona_right)
|
0
config/boards/shields/leko_pona/leko_pona.conf
Normal file
0
config/boards/shields/leko_pona/leko_pona.conf
Normal file
53
config/boards/shields/leko_pona/leko_pona.dtsi
Normal file
53
config/boards/shields/leko_pona/leko_pona.dtsi
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
#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 = <36>;
|
||||||
|
rows = <1>;
|
||||||
|
// | SW6 | SW5 | SW4 | SW3 | SW2 | SW1 | | SW1 | SW2 | SW3 | SW4 | SW5 | SW6 |
|
||||||
|
// | SW12 | SW11 | SW10 | SW9 | SW8 | SW7 | | SW7 | SW8 | SW9 | SW10 | SW11 | SW12 |
|
||||||
|
// | SW18 | SW17 | SW16 | SW15 | SW14 | SW13 | | SW13 | SW14 | SW15 | SW16 | SW17 | SW18 |
|
||||||
|
// | SW24 | SW23 | SW22 | SW21 | SW20 | SW19 | SW25 | | SW25 | SW19 | SW20 | SW21 | SW22 | SW23 | SW24 |
|
||||||
|
// | SW29 | SW28 | SW27 | SW26 | | SW26 | SW27 | SW28 | SW29 |
|
||||||
|
map = <
|
||||||
|
RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,22) RC(0,21) RC(0,20) RC(0,19) RC(0,18)
|
||||||
|
RC(0,5) RC(0,6) RC(0,7) RC(0,8) RC(0,9) RC(0,27) RC(0,26) RC(0,25) RC(0,24) RC(0,23)
|
||||||
|
RC(0,10) RC(0,11) RC(0,12) RC(0,12) RC(0,14) RC(0,32) RC(0,31) RC(0,30) RC(0,29) RC(0,28)
|
||||||
|
RC(0,15) RC(0,16) RC(0,17) RC(0,35) RC(0,34) RC(0,33)
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
|
||||||
|
kscan0: kscan {
|
||||||
|
compatible = "zmk,kscan-gpio-direct";
|
||||||
|
label = "KSCAN";
|
||||||
|
input-gpios
|
||||||
|
= <&pro_micro 19 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||||
|
, <&pro_micro 20 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||||
|
, <&pro_micro 21 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||||
|
, <&pro_micro 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||||
|
, <&pro_micro 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||||
|
|
||||||
|
, <&pro_micro 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||||
|
, <&pro_micro 16 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||||
|
, <&pro_micro 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||||
|
, <&pro_micro 15 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||||
|
, <&pro_micro 18 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||||
|
|
||||||
|
, <&pro_micro 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||||
|
, <&pro_micro 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||||
|
, <&pro_micro 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||||
|
, <&pro_micro 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||||
|
, <&pro_micro 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||||
|
|
||||||
|
, <&pro_micro 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||||
|
, <&pro_micro 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||||
|
, <&pro_micro 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||||
|
;
|
||||||
|
};
|
||||||
|
};
|
22
config/boards/shields/leko_pona/leko_pona.keymap
Normal file
22
config/boards/shields/leko_pona/leko_pona.keymap
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
#include <behaviors.dtsi>
|
||||||
|
#include <dt-bindings/zmk/keys.h>
|
||||||
|
|
||||||
|
/ {
|
||||||
|
keymap {
|
||||||
|
compatible = "zmk,keymap";
|
||||||
|
|
||||||
|
default_layer {
|
||||||
|
// --------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
// | ESC | W | E | R | T | | Y | U | I | O | P |
|
||||||
|
// | A | S | D | F | G | | H | J | K | L | ; |
|
||||||
|
// | SHIFT | X | C | V | B | | M | , | . | / | R CTRL |
|
||||||
|
// | GUI | DEL | RETURN || TAB | BSPC | R ALT |
|
||||||
|
bindings = <
|
||||||
|
&kp ESC &kp W &kp F &kp P &kp B &kp J &kp L &kp U &kp Y &kp BACKSPACE
|
||||||
|
&kp A &kp R &kp S &kp T &kp G &kp M &kp N &kp E &kp I &kp O
|
||||||
|
&kp LCTRL &kp X &kp C &kp D &kp V &kp K &kp H &kp Z &kp Q &kp RET
|
||||||
|
&kp LALT &kp DOT &kp SPACE &kp LSHIFT &kp DOT &kp LWIN
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
13
config/boards/shields/leko_pona/leko_pona.zmk.yml
Normal file
13
config/boards/shields/leko_pona/leko_pona.zmk.yml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
file_format: "1"
|
||||||
|
id: leko_pona
|
||||||
|
name: leko pona
|
||||||
|
type: shield
|
||||||
|
url: https://github.com/CrispyPin/zmk-config/
|
||||||
|
requires: [nice_nano_v2]
|
||||||
|
exposes: []
|
||||||
|
features:
|
||||||
|
- keys
|
||||||
|
siblings:
|
||||||
|
- leko_pona_left
|
||||||
|
- leko_pona_right
|
||||||
|
|
0
config/boards/shields/leko_pona/leko_pona_left.conf
Normal file
0
config/boards/shields/leko_pona/leko_pona_left.conf
Normal file
0
config/boards/shields/leko_pona/leko_pona_left.overlay
Normal file
0
config/boards/shields/leko_pona/leko_pona_left.overlay
Normal file
0
config/boards/shields/leko_pona/leko_pona_right.conf
Normal file
0
config/boards/shields/leko_pona/leko_pona_right.conf
Normal file
5
config/boards/shields/leko_pona/leko_pona_right.overlay
Normal file
5
config/boards/shields/leko_pona/leko_pona_right.overlay
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#include "leko_pona.dtsi"
|
||||||
|
|
||||||
|
&default_transform {
|
||||||
|
col-offset = <18>;
|
||||||
|
};
|
|
@ -1,6 +0,0 @@
|
||||||
# Uncomment the following lines to enable the Corne RGB Underglow
|
|
||||||
# CONFIG_ZMK_RGB_UNDERGLOW=y
|
|
||||||
# CONFIG_WS2812_STRIP=y
|
|
||||||
|
|
||||||
# Uncomment the following line to enable the Corne OLED Display
|
|
||||||
# CONFIG_ZMK_DISPLAY=y
|
|
0
config/leko_pona.conf
Normal file
0
config/leko_pona.conf
Normal file
Loading…
Reference in a new issue