diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..a058a4b --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "editor.fontFamily": "mono" +} \ No newline at end of file diff --git a/build.yaml b/build.yaml index 7ab5d6a..049bccb 100644 --- a/build.yaml +++ b/build.yaml @@ -14,6 +14,6 @@ --- include: - board: nice_nano_v2 - shield: corne_left + shield: leko_pona_left - board: nice_nano_v2 - shield: corne_right + shield: leko_pona_right diff --git a/config/boards/shields/leko_pona/Kconfig.defconfig b/config/boards/shields/leko_pona/Kconfig.defconfig new file mode 100644 index 0000000..ee9613a --- /dev/null +++ b/config/boards/shields/leko_pona/Kconfig.defconfig @@ -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 \ No newline at end of file diff --git a/config/boards/shields/leko_pona/Kconfig.shield b/config/boards/shields/leko_pona/Kconfig.shield new file mode 100644 index 0000000..9ae8695 --- /dev/null +++ b/config/boards/shields/leko_pona/Kconfig.shield @@ -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) \ No newline at end of file diff --git a/config/boards/shields/leko_pona/leko_pona.conf b/config/boards/shields/leko_pona/leko_pona.conf new file mode 100644 index 0000000..e69de29 diff --git a/config/boards/shields/leko_pona/leko_pona.dtsi b/config/boards/shields/leko_pona/leko_pona.dtsi new file mode 100644 index 0000000..f9d089f --- /dev/null +++ b/config/boards/shields/leko_pona/leko_pona.dtsi @@ -0,0 +1,53 @@ +#include + +/ { + 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)> + ; + }; +}; \ No newline at end of file diff --git a/config/boards/shields/leko_pona/leko_pona.keymap b/config/boards/shields/leko_pona/leko_pona.keymap new file mode 100644 index 0000000..c96ce45 --- /dev/null +++ b/config/boards/shields/leko_pona/leko_pona.keymap @@ -0,0 +1,22 @@ +#include +#include + +/ { + 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 + >; + }; + }; +}; \ No newline at end of file diff --git a/config/boards/shields/leko_pona/leko_pona.zmk.yml b/config/boards/shields/leko_pona/leko_pona.zmk.yml new file mode 100644 index 0000000..a996000 --- /dev/null +++ b/config/boards/shields/leko_pona/leko_pona.zmk.yml @@ -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 + \ No newline at end of file diff --git a/config/boards/shields/leko_pona/leko_pona_left.conf b/config/boards/shields/leko_pona/leko_pona_left.conf new file mode 100644 index 0000000..e69de29 diff --git a/config/boards/shields/leko_pona/leko_pona_left.overlay b/config/boards/shields/leko_pona/leko_pona_left.overlay new file mode 100644 index 0000000..e69de29 diff --git a/config/boards/shields/leko_pona/leko_pona_right.conf b/config/boards/shields/leko_pona/leko_pona_right.conf new file mode 100644 index 0000000..e69de29 diff --git a/config/boards/shields/leko_pona/leko_pona_right.overlay b/config/boards/shields/leko_pona/leko_pona_right.overlay new file mode 100644 index 0000000..814d2fc --- /dev/null +++ b/config/boards/shields/leko_pona/leko_pona_right.overlay @@ -0,0 +1,5 @@ +#include "leko_pona.dtsi" + +&default_transform { + col-offset = <18>; +}; diff --git a/config/corne.conf b/config/corne.conf deleted file mode 100644 index 974243c..0000000 --- a/config/corne.conf +++ /dev/null @@ -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 diff --git a/config/leko_pona.conf b/config/leko_pona.conf new file mode 100644 index 0000000..e69de29