Add artsey dev board crides made
This commit is contained in:
parent
a6e5d9c807
commit
5c5752eeb6
|
@ -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
|
|
@ -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)
|
9
zmk-config/config/boards/shields/artsey_dev/README.md
Normal file
9
zmk-config/config/boards/shields/artsey_dev/README.md
Normal file
|
@ -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.
|
|
@ -0,0 +1,76 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2020 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <behaviors.dtsi>
|
||||||
|
#include <dt-bindings/zmk/keys.h>
|
||||||
|
|
||||||
|
// 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
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
|
@ -0,0 +1,42 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2020 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <dt-bindings/zmk/matrix_transform.h>
|
||||||
|
|
||||||
|
/ {
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
};
|
BIN
zmk-config/config/boards/shields/artsey_dev/firmware/zmk.uf2
Normal file
BIN
zmk-config/config/boards/shields/artsey_dev/firmware/zmk.uf2
Normal file
Binary file not shown.
Loading…
Reference in a new issue