diff --git a/zmk-config/config/boards/shields/artsey_dev/Kconfig.defconfig b/zmk-config/config/boards/shields/artsey_dev/Kconfig.defconfig new file mode 100644 index 00000000..98d5897f --- /dev/null +++ b/zmk-config/config/boards/shields/artsey_dev/Kconfig.defconfig @@ -0,0 +1,9 @@ +# Copyright (c) 2020 The ZMK Contributors +# SPDX-License-Identifier: MIT + +if SHIELD_ARTSEY_DEV + +config ZMK_KEYBOARD_NAME + default "ARTSEY DEV" + +endif diff --git a/zmk-config/config/boards/shields/artsey_dev/Kconfig.shield b/zmk-config/config/boards/shields/artsey_dev/Kconfig.shield new file mode 100644 index 00000000..0a35150e --- /dev/null +++ b/zmk-config/config/boards/shields/artsey_dev/Kconfig.shield @@ -0,0 +1,5 @@ +# Copyright (c) 2020 The ZMK Contributors +# SPDX-License-Identifier: MIT + +config SHIELD_ARTSEY_DEV + def_bool $(shields_list_contains,artsey_dev) diff --git a/zmk-config/config/boards/shields/artsey_dev/README.md b/zmk-config/config/boards/shields/artsey_dev/README.md new file mode 100644 index 00000000..164e0a74 --- /dev/null +++ b/zmk-config/config/boards/shields/artsey_dev/README.md @@ -0,0 +1,9 @@ +# ARTSEY Dev + +A dev/test board designed by crides for testing ARTSEY keymaps. + +ZMK Build command (devcontainer): `west build --board nice_nano -d build/artsey_dev -- -DSHIELD=artsey_dev -DZMK_CONFIG=/workspaces/zmk-config/config` + +**WARNING** + +Needs ZMK [PR 661](https://github.com/zmkfirmware/zmk/pull/661) to work correctly. diff --git a/zmk-config/config/boards/shields/artsey_dev/artsey_dev.conf b/zmk-config/config/boards/shields/artsey_dev/artsey_dev.conf new file mode 100644 index 00000000..e69de29b diff --git a/zmk-config/config/boards/shields/artsey_dev/artsey_dev.keymap b/zmk-config/config/boards/shields/artsey_dev/artsey_dev.keymap new file mode 100644 index 00000000..867e264c --- /dev/null +++ b/zmk-config/config/boards/shields/artsey_dev/artsey_dev.keymap @@ -0,0 +1,76 @@ +/* + * Copyright (c) 2020 The ZMK Contributors + * + * SPDX-License-Identifier: MIT + */ + +#include +#include + +// ARTS Row +#define KEY_A 4 +#define KEY_R 5 +#define KEY_T 6 +#define KEY_S 7 +// EYIO Row +#define KEY_E 0 +#define KEY_Y 1 +#define KEY_I 2 +#define KEY_O 3 + +#include "../../../artsey.dtsi" + +/ { + keymap { + compatible = "zmk,keymap"; + base { + label = "Base"; + bindings = < + &layer_parentheticals_kp LAYER_ID_PARENTHETICALS A &kp R &kp T &layer_numbers_kp LAYER_ID_NUMBERS S + &layer_symbols_kp LAYER_ID_SYMBOLS E &kp Y &kp I &layer_navigation_kp LAYER_ID_NAVIGATION O + >; + }; + numbers { + label = "Numbers"; + bindings = < + &layer_parentheticals_kp LAYER_ID_PARENTHETICALS N1 &kp N2 &kp N3 &layer_base_sl LAYER_ID_BASE LAYER_ID_F_ONE_SIX + &layer_symbols_kp LAYER_ID_SYMBOLS N4 &kp N5 &kp N6 &layer_navigation_sl LAYER_ID_NAVIGATION LAYER_ID_F_SEVEN_TWELVE + >; + }; + symbols { + label = "Symbols"; + bindings = < + &layer_parentheticals_none LAYER_ID_PARENTHETICALS 0 &kp BSLH &kp SEMI &layer_numbers_kp LAYER_ID_NUMBERS GRAVE + &layer_base_none LAYER_ID_BASE 0 &kp MINUS &kp EQUAL &layer_navigation_none LAYER_ID_NAVIGATION 0 + >; + }; + parentheticals { + label = "Paren"; + bindings = < + &layer_base_none LAYER_ID_BASE 0 &kp LPAR &kp RPAR &layer_numbers_kp LAYER_ID_NUMBERS LBRC + &layer_symbols_none LAYER_ID_SYMBOLS 0 &kp LBKT &kp RBKT &layer_navigation_kp LAYER_ID_NAVIGATION RBRC + >; + }; + navigation { + label = "Nav"; + bindings = < + &layer_parentheticals_kp LAYER_ID_PARENTHETICALS HOME &kp UP &kp END &layer_numbers_none LAYER_ID_NUMBERS 0 + &layer_symbols_kp LAYER_ID_SYMBOLS LEFT &kp DOWN &kp RIGHT &layer_base_none LAYER_ID_BASE 0 + >; + }; + f_one_to_six{ + label = "F1-F6"; + bindings = < + &layer_parentheticals_kp LAYER_ID_PARENTHETICALS F1 &kp F2 &kp F3 &layer_numbers_none LAYER_ID_NUMBERS 0 + &layer_symbols_kp LAYER_ID_SYMBOLS F4 &kp F5 &kp F6 &layer_navigation_none LAYER_ID_NAVIGATION 0 + >; + }; + f_seven_to_twelve { + label = "F7-F12"; + bindings = < + &layer_parentheticals_kp LAYER_ID_PARENTHETICALS F7 &kp F8 &kp F9 &layer_numbers_none LAYER_ID_NUMBERS 0 + &layer_symbols_kp LAYER_ID_SYMBOLS F10 &kp F11 &kp F12 &layer_navigation_none LAYER_ID_NAVIGATION 0 + >; + }; + }; +}; diff --git a/zmk-config/config/boards/shields/artsey_dev/artsey_dev.overlay b/zmk-config/config/boards/shields/artsey_dev/artsey_dev.overlay new file mode 100644 index 00000000..11898df7 --- /dev/null +++ b/zmk-config/config/boards/shields/artsey_dev/artsey_dev.overlay @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2020 The ZMK Contributors + * + * SPDX-License-Identifier: MIT + */ + +#include + +/ { + kscan0: kscan { + compatible = "zmk,kscan-gpio-direct"; + + label = "KSCAN"; + + input-gpios + = <&pro_micro_a 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro_a 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro_d 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro_d 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro_a 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro_a 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro_d 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro_d 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + ; + }; + + default_transform: keymap_transform_0 { + compatible = "zmk,matrix-transform"; + columns = <4>; + rows = <2>; + + map = < + RC(0,0) RC(0,1) RC(0,2) RC(0,3) + RC(1,0) RC(1,1) RC(1,2) RC(1,3) + >; + }; + + chosen { + zmk,kscan = &kscan0; + zmk,matrix_transform = &default_transform; + }; +}; diff --git a/zmk-config/config/boards/shields/artsey_dev/firmware/zmk.uf2 b/zmk-config/config/boards/shields/artsey_dev/firmware/zmk.uf2 new file mode 100644 index 00000000..457e4032 Binary files /dev/null and b/zmk-config/config/boards/shields/artsey_dev/firmware/zmk.uf2 differ