Add right handed version of artsey for tidbit
This commit is contained in:
parent
57f4ebf255
commit
4148fa79e5
6 changed files with 167 additions and 0 deletions
37
config/boards/shields/tidbit_artsey_right/Kconfig.defconfig
Normal file
37
config/boards/shields/tidbit_artsey_right/Kconfig.defconfig
Normal file
|
@ -0,0 +1,37 @@
|
|||
# Copyright (c) 2021 Mike "KemoNine" Crosson
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
if SHIELD_TIDBIT_ARTSEY_RIGHT
|
||||
|
||||
config ZMK_KEYBOARD_NAME
|
||||
default "ARTSEY Tidbit 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
config/boards/shields/tidbit_artsey_right/Kconfig.shield
Normal file
5
config/boards/shields/tidbit_artsey_right/Kconfig.shield
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Copyright (c) 2021 Mike "KemoNine" Crosson
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
config SHIELD_TIDBIT_ARTSEY_RIGHT
|
||||
def_bool $(shields_list_contains,tidbit_artsey_right)
|
3
config/boards/shields/tidbit_artsey_right/README.md
Normal file
3
config/boards/shields/tidbit_artsey_right/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Tidbit - Right
|
||||
|
||||
This directory contians the ARTSEY implementation for the [Tidbit](https://nullbits.co/tidbit/).
|
|
@ -0,0 +1,21 @@
|
|||
# Copyright (c) 2021 Mike "KemoNine" Crosson
|
||||
# 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 display (layer in use is helpful)
|
||||
CONFIG_ZMK_DISPLAY=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=15000
|
||||
|
||||
# Enable Encoders
|
||||
#CONFIG_EC11=y
|
||||
#CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
|
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* Copyright (c) 2021 Mike "KemoNine" Crosson
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <behaviors.dtsi>
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
#include <dt-bindings/zmk/bt.h>
|
||||
|
||||
// Enable ARTSEY Left
|
||||
#define ARTSEY_LEFT 1
|
||||
|
||||
// ARTS Row
|
||||
#define KEY_A 7
|
||||
#define KEY_R 6
|
||||
#define KEY_T 5
|
||||
#define KEY_S 4
|
||||
// EYIO Row
|
||||
#define KEY_E 12
|
||||
#define KEY_Y 11
|
||||
#define KEY_I 10
|
||||
#define KEY_O 9
|
||||
|
||||
// Define Offsets
|
||||
#define LEADING_NONES NONE(0,0, 4)
|
||||
#define MIDDLE_NONES NONE(0, 0, 1)
|
||||
#define TRAILING_NONES NONE(0, 0, 6)
|
||||
|
||||
// Include main artsey.io keymap
|
||||
#include "../../../artsey.dtsi"
|
|
@ -0,0 +1,70 @@
|
|||
/*
|
||||
* Copyright (c) 2021 Mike "KemoNine" Crosson
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <dt-bindings/zmk/matrix_transform.h>
|
||||
|
||||
/ {
|
||||
kscan0: kscan {
|
||||
compatible = "zmk,kscan-gpio-matrix";
|
||||
label = "KSCAN";
|
||||
|
||||
diode-direction = "row2col";
|
||||
|
||||
row-gpios
|
||||
= <&pro_micro_d 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro_d 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro_d 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro_d 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro_d 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
;
|
||||
|
||||
col-gpios
|
||||
= <&pro_micro_a 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro_a 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro_a 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro_a 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
;
|
||||
|
||||
};
|
||||
|
||||
default_transform: keymap_transform_0 {
|
||||
compatible = "zmk,matrix-transform";
|
||||
columns = <4>;
|
||||
rows = <5>;
|
||||
|
||||
map = <
|
||||
RC(4,0) RC(3,0) RC(2,0) RC(1,0)
|
||||
RC(4,1) RC(3,1) RC(2,1) RC(1,1) RC(0,1)
|
||||
RC(4,2) RC(3,2) RC(2,2) RC(1,2) RC(0,2)
|
||||
RC(4,3) RC(3,3) RC(2,3) RC(1,3) RC(0,3)
|
||||
>;
|
||||
};
|
||||
|
||||
chosen {
|
||||
zmk,kscan = &kscan0;
|
||||
zmk,matrix_transform = &default_transform;
|
||||
};
|
||||
};
|
||||
|
||||
&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