Compare commits
2 commits
0f2ad7e7e2
...
7536136557
Author | SHA1 | Date | |
---|---|---|---|
7536136557 | |||
b1e498382a |
|
@ -35,6 +35,8 @@ west build --board nice_nano -d build/tidbit -- -DSHIELD=tidbit -DZMK_CONFIG=/wo
|
||||||
|
|
||||||
west build --board nice_nano -d build/corne_artsey_left -- -DSHIELD=corne_artsey_left -DZMK_CONFIG=/workspaces/zmk-config/zmk-config/config
|
west build --board nice_nano -d build/corne_artsey_left -- -DSHIELD=corne_artsey_left -DZMK_CONFIG=/workspaces/zmk-config/zmk-config/config
|
||||||
|
|
||||||
|
west build --board nice_nano -d build/corne_artsey_right -- -DSHIELD=corne_artsey_right -DZMK_CONFIG=/workspaces/zmk-config/zmk-config/config
|
||||||
|
|
||||||
west build --board nrf52840_mdk_dongle -d build/pockettype/central -- -DSHIELD=pockettype_central -DZMK_CONFIG=/workspaces/zmk-config/zmk-config/config
|
west build --board nrf52840_mdk_dongle -d build/pockettype/central -- -DSHIELD=pockettype_central -DZMK_CONFIG=/workspaces/zmk-config/zmk-config/config
|
||||||
|
|
||||||
west build --board nice_nano -d build/pockettype/peripheral -- -DSHIELD=pockettype_peripheral -DZMK_CONFIG=/workspaces/zmk-config/zmk-config/config
|
west build --board nice_nano -d build/pockettype/peripheral -- -DSHIELD=pockettype_peripheral -DZMK_CONFIG=/workspaces/zmk-config/zmk-config/config
|
||||||
|
@ -43,6 +45,8 @@ west build --board nice_nano -d build/tg4x -- -DSHIELD=tg4x -DZMK_CONFIG=/worksp
|
||||||
|
|
||||||
west build --board nice_nano -d build/corne_left -- -DSHIELD=corne_left -DZMK_CONFIG=/workspaces/zmk-config/zmk-config/config
|
west build --board nice_nano -d build/corne_left -- -DSHIELD=corne_left -DZMK_CONFIG=/workspaces/zmk-config/zmk-config/config
|
||||||
|
|
||||||
|
west build --board nice_nano -d build/corne_right -- -DSHIELD=corne_right -DZMK_CONFIG=/workspaces/zmk-config/zmk-config/config
|
||||||
|
|
||||||
west build --board nice_nano -d build/tidbit_artsey_left -- -DSHIELD=tidbit_artsey_left -DZMK_CONFIG=/workspaces/zmk-config/zmk-config/config
|
west build --board nice_nano -d build/tidbit_artsey_left -- -DSHIELD=tidbit_artsey_left -DZMK_CONFIG=/workspaces/zmk-config/zmk-config/config
|
||||||
|
|
||||||
west build --board nice_nano -d build/steno_right_lily58 -- -DSHIELD=steno_right_lily58 -DZMK_CONFIG=/workspaces/zmk-config/zmk-config/config
|
west build --board nice_nano -d build/steno_right_lily58 -- -DSHIELD=steno_right_lily58 -DZMK_CONFIG=/workspaces/zmk-config/zmk-config/config
|
||||||
|
|
|
@ -294,7 +294,7 @@
|
||||||
LEADING_NONES
|
LEADING_NONES
|
||||||
&layer_parentheticals_kp LAYER_ID_PARENTHETICALS F7 &kp F8 &kp F9 &layer_numbers_none LAYER_ID_NUMBERS 0
|
&layer_parentheticals_kp LAYER_ID_PARENTHETICALS F7 &kp F8 &kp F9 &layer_numbers_none LAYER_ID_NUMBERS 0
|
||||||
MIDDLE_NONES
|
MIDDLE_NONES
|
||||||
&layer_symbols_kp LAYER_ID_SYMBOLS F10 &kp N11 &kp F12 &layer_navigation_none LAYER_ID_NAVIGATION 0
|
&layer_symbols_kp LAYER_ID_SYMBOLS F10 &kp F11 &kp F12 &layer_navigation_none LAYER_ID_NAVIGATION 0
|
||||||
TRAILING_NONES
|
TRAILING_NONES
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
@ -306,6 +306,7 @@
|
||||||
// >;
|
// >;
|
||||||
// };
|
// };
|
||||||
};
|
};
|
||||||
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*****************************************
|
/*****************************************
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
if SHIELD_CORNE_ARTSEY_RIGHT
|
||||||
|
|
||||||
|
config ZMK_KEYBOARD_NAME
|
||||||
|
default "ARTSEY R"
|
||||||
|
|
||||||
|
config I2C
|
||||||
|
default y
|
||||||
|
|
||||||
|
config SSD1306
|
||||||
|
default y
|
||||||
|
|
||||||
|
config SSD1306_REVERSE_MODE
|
||||||
|
default y
|
||||||
|
|
||||||
|
config LVGL_HOR_RES_MAX
|
||||||
|
default 128
|
||||||
|
|
||||||
|
config LVGL_VER_RES_MAX
|
||||||
|
default 32
|
||||||
|
|
||||||
|
config LVGL_VDB_SIZE
|
||||||
|
default 64
|
||||||
|
|
||||||
|
config LVGL_DPI
|
||||||
|
default 148
|
||||||
|
|
||||||
|
config LVGL_BITS_PER_PIXEL
|
||||||
|
default 1
|
||||||
|
|
||||||
|
choice LVGL_COLOR_DEPTH
|
||||||
|
default LVGL_COLOR_DEPTH_1
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
endif
|
5
zmk-config/config/boards/shields/corne_artsey_right/Kconfig.shield
Executable file
5
zmk-config/config/boards/shields/corne_artsey_right/Kconfig.shield
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
# Copyright (c) 2020 Pete Johanson
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
config SHIELD_CORNE_ARTSEY_RIGHT
|
||||||
|
def_bool $(shields_list_contains,corne_artsey_right)
|
25
zmk-config/config/boards/shields/corne_artsey_right/corne_artsey_right.conf
Executable file
25
zmk-config/config/boards/shields/corne_artsey_right/corne_artsey_right.conf
Executable file
|
@ -0,0 +1,25 @@
|
||||||
|
# Copyright (c) 2020 The ZMK Contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
# Tune combos to allow proper ARTSEY support
|
||||||
|
CONFIG_ZMK_COMBO_MAX_COMBOS_PER_KEY=16
|
||||||
|
CONFIG_ZMK_COMBO_MAX_KEYS_PER_COMBO=8
|
||||||
|
CONFIG_ZMK_COMBO_MAX_PRESSED_COMBOS=8
|
||||||
|
|
||||||
|
# Enable Encoders
|
||||||
|
#CONFIG_EC11=y
|
||||||
|
#CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
|
||||||
|
|
||||||
|
# Enable display (layer in use is helpful)
|
||||||
|
CONFIG_ZMK_DISPLAY=y
|
||||||
|
|
||||||
|
# Enable WPM widget
|
||||||
|
#CONFIG_ZMK_WPM=y
|
||||||
|
CONFIG_ZMK_WIDGET_WPM_STATUS=y
|
||||||
|
|
||||||
|
# Turn on deep sleep
|
||||||
|
CONFIG_ZMK_SLEEP=y
|
||||||
|
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=900000
|
||||||
|
|
||||||
|
# Set screen blanking to 15s instead of 30s
|
||||||
|
CONFIG_ZMK_IDLE_TIMEOUT=30000
|
|
@ -0,0 +1,45 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2020 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <behaviors.dtsi>
|
||||||
|
#include <dt-bindings/zmk/keys.h>
|
||||||
|
#include <dt-bindings/zmk/bt.h>
|
||||||
|
|
||||||
|
// Enable ARTSEY Right
|
||||||
|
#define ARTSEY_RIGHT 1
|
||||||
|
|
||||||
|
// ARTS Row
|
||||||
|
#define KEY_A 1
|
||||||
|
#define KEY_R 2
|
||||||
|
#define KEY_T 3
|
||||||
|
#define KEY_S 4
|
||||||
|
// EYIO Row
|
||||||
|
#define KEY_E 7
|
||||||
|
#define KEY_Y 8
|
||||||
|
#define KEY_I 9
|
||||||
|
#define KEY_O 10
|
||||||
|
|
||||||
|
// Define Offsets
|
||||||
|
#define LEADING_NONES NONE(0,0,1)
|
||||||
|
#define MIDDLE_NONES NONE(0, 0, 2)
|
||||||
|
#define TRAILING_NONES NONE(0, 1, 0)
|
||||||
|
|
||||||
|
// Thumb buttons (used for BT combos)
|
||||||
|
#define THUMB_1 18
|
||||||
|
#define THUMB_2 19
|
||||||
|
#define THUMB_3 20
|
||||||
|
|
||||||
|
// Include main artsey.io keymap
|
||||||
|
#include "../../../artsey_v0_7.dtsi"
|
||||||
|
|
||||||
|
/ {
|
||||||
|
combos {
|
||||||
|
compatible = "zmk,combos";
|
||||||
|
chord_bt_clr { key-positions = <THUMB_1 THUMB_3>; bindings = <&bt BT_CLR>; };
|
||||||
|
chord_bt_prv { key-positions = <THUMB_1 THUMB_2>; bindings = <&bt BT_PRV>; };
|
||||||
|
chord_bt_nxt { key-positions = <THUMB_2 THUMB_3>; bindings = <&bt BT_NXT>; };
|
||||||
|
};
|
||||||
|
};
|
|
@ -0,0 +1,74 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2020 Pete Johanson
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#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 = <6>;
|
||||||
|
rows = <4>;
|
||||||
|
// | SW6 | SW5 | SW4 | SW3 | SW2 | SW1 |
|
||||||
|
// | SW12 | SW11 | SW10 | SW9 | SW8 | SW7 |
|
||||||
|
// | SW18 | SW17 | SW16 | SW15 | SW14 | SW13 |
|
||||||
|
// | SW21 | SW20 | SW19 |
|
||||||
|
map = <
|
||||||
|
RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,5)
|
||||||
|
RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5)
|
||||||
|
RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5)
|
||||||
|
RC(3,0) RC(3,1) RC(3,2)
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
|
||||||
|
kscan0: kscan {
|
||||||
|
compatible = "zmk,kscan-gpio-matrix";
|
||||||
|
label = "KSCAN";
|
||||||
|
|
||||||
|
diode-direction = "col2row";
|
||||||
|
row-gpios
|
||||||
|
= <&pro_micro_d 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
|
, <&pro_micro_d 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
|
, <&pro_micro_d 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
|
, <&pro_micro_d 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
|
;
|
||||||
|
|
||||||
|
col-gpios
|
||||||
|
= <&pro_micro_d 14 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_d 15 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_a 0 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_a 1 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_a 2 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_a 3 GPIO_ACTIVE_HIGH>
|
||||||
|
;
|
||||||
|
};
|
||||||
|
|
||||||
|
// TODO: per-key RGB node(s)?
|
||||||
|
};
|
||||||
|
|
||||||
|
&pro_micro_i2c {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
oled: ssd1306@3c {
|
||||||
|
compatible = "solomon,ssd1306fb";
|
||||||
|
reg = <0x3c>;
|
||||||
|
label = "DISPLAY";
|
||||||
|
width = <128>;
|
||||||
|
height = <32>;
|
||||||
|
segment-offset = <0>;
|
||||||
|
page-offset = <0>;
|
||||||
|
display-offset = <0>;
|
||||||
|
multiplex-ratio = <31>;
|
||||||
|
segment-remap;
|
||||||
|
com-invdir;
|
||||||
|
com-sequential;
|
||||||
|
prechargep = <0x22>;
|
||||||
|
};
|
||||||
|
};
|
Loading…
Reference in a new issue