initial
This commit is contained in:
19
config/boards/shields/hillside46/Kconfig.defconfig
Normal file
19
config/boards/shields/hillside46/Kconfig.defconfig
Normal file
@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2021-2022 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
if SHIELD_HILLSIDE46_LEFT
|
||||
|
||||
config ZMK_KEYBOARD_NAME
|
||||
default "Hillside46"
|
||||
|
||||
config ZMK_SPLIT_BLE_ROLE_CENTRAL
|
||||
default y
|
||||
|
||||
endif
|
||||
|
||||
if SHIELD_HILLSIDE46_LEFT || SHIELD_HILLSIDE46_RIGHT
|
||||
|
||||
config ZMK_SPLIT
|
||||
default y
|
||||
|
||||
endif
|
8
config/boards/shields/hillside46/Kconfig.shield
Normal file
8
config/boards/shields/hillside46/Kconfig.shield
Normal file
@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2021-2022 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
config SHIELD_HILLSIDE46_LEFT
|
||||
def_bool $(shields_list_contains,hillside46_left)
|
||||
|
||||
config SHIELD_HILLSIDE46_RIGHT
|
||||
def_bool $(shields_list_contains,hillside46_right)
|
21
config/boards/shields/hillside46/README.md
Normal file
21
config/boards/shields/hillside46/README.md
Normal file
@ -0,0 +1,21 @@
|
||||
Hillside 46 is a split ergonomic keyboard with 3x6+5 choc-spaced keys.
|
||||
It has the aggressive stagger of the Ferris but a longer thumb arc and a break-off outer pinkie column.
|
||||
More information is at [github/mmccoyd](https://github.com/mmccoyd/hillside/).
|
||||
|
||||
The default keymap is described in
|
||||
[QMK](https://github.com/qmk/qmk_firmware/tree/master/keyboards/handwired/hillside/46).
|
||||
|
||||
For ZMK, the adjust layer has a few differences from the QMK version:
|
||||
|
||||
- Extra keys for bluetooth, reset and output.
|
||||
- No swap Alt GUI keys.
|
||||
- No RGB controls as RGB eats power.
|
||||
- Bluetooth clear is deliberately in an inconvenient spot to avoid unpairing.
|
||||
|
||||
If used, the following must be manually enabled in hillside46.conf:
|
||||
|
||||
- Encoders
|
||||
- Underglow
|
||||
|
||||
If desired, you could hardwire a display to the I2C header,
|
||||
which is arranged for a haptic feedback board.
|
37
config/boards/shields/hillside46/boards/nice_nano.overlay
Normal file
37
config/boards/shields/hillside46/boards/nice_nano.overlay
Normal file
@ -0,0 +1,37 @@
|
||||
/* Copyright (c) 2021-2022 The ZMK Contributors
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <dt-bindings/led/led.h>
|
||||
|
||||
&spi1 {
|
||||
compatible = "nordic,nrf-spim";
|
||||
status = "okay";
|
||||
mosi-pin = <6>;
|
||||
// Unused pins, needed for SPI def, but not used by ws2812 driver.
|
||||
sck-pin = <5>;
|
||||
miso-pin = <7>;
|
||||
|
||||
led_strip: ws2812@0 {
|
||||
compatible = "worldsemi,ws2812-spi";
|
||||
label = "WS2812";
|
||||
|
||||
/* SPI */
|
||||
reg = <0>; /* ignored, but necessary for SPI bindings */
|
||||
spi-max-frequency = <4000000>;
|
||||
|
||||
/* WS2812 */
|
||||
chain-length = <4>; /* arbitrary; change at will */
|
||||
spi-one-frame = <0x70>;
|
||||
spi-zero-frame = <0x40>;
|
||||
color-mapping = <LED_COLOR_ID_GREEN
|
||||
LED_COLOR_ID_RED
|
||||
LED_COLOR_ID_BLUE>;
|
||||
};
|
||||
};
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zmk,underglow = &led_strip;
|
||||
};
|
||||
};
|
46
config/boards/shields/hillside46/boards/nice_nano_v2.overlay
Normal file
46
config/boards/shields/hillside46/boards/nice_nano_v2.overlay
Normal file
@ -0,0 +1,46 @@
|
||||
#include <dt-bindings/led/led.h>
|
||||
|
||||
&pinctrl {
|
||||
spi3_default: spi3_default {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(SPIM_MOSI, 0, 6)>;
|
||||
};
|
||||
};
|
||||
|
||||
spi3_sleep: spi3_sleep {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(SPIM_MOSI, 0, 6)>;
|
||||
low-power-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&spi3 {
|
||||
compatible = "nordic,nrf-spim";
|
||||
status = "okay";
|
||||
|
||||
pinctrl-0 = <&spi3_default>;
|
||||
pinctrl-1 = <&spi3_sleep>;
|
||||
pinctrl-names = "default", "sleep";
|
||||
|
||||
led_strip: ws2812@0 {
|
||||
compatible = "worldsemi,ws2812-spi";
|
||||
|
||||
/* SPI */
|
||||
reg = <0>; /* ignored, but necessary for SPI bindings */
|
||||
spi-max-frequency = <4000000>;
|
||||
|
||||
/* WS2812 */
|
||||
chain-length = <10>; /* arbitrary; change at will */
|
||||
spi-one-frame = <0x70>;
|
||||
spi-zero-frame = <0x40>;
|
||||
|
||||
color-mapping = <LED_COLOR_ID_GREEN LED_COLOR_ID_RED LED_COLOR_ID_BLUE>;
|
||||
};
|
||||
};
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zmk,underglow = &led_strip;
|
||||
};
|
||||
};
|
46
config/boards/shields/hillside46/boards/nrfmicro_13.overlay
Normal file
46
config/boards/shields/hillside46/boards/nrfmicro_13.overlay
Normal file
@ -0,0 +1,46 @@
|
||||
#include <dt-bindings/led/led.h>
|
||||
|
||||
&pinctrl {
|
||||
spi1_default: spi1_default {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(SPIM_MOSI, 0, 6)>;
|
||||
};
|
||||
};
|
||||
|
||||
spi1_sleep: spi1_sleep {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(SPIM_MOSI, 0, 6)>;
|
||||
low-power-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&spi1 {
|
||||
compatible = "nordic,nrf-spim";
|
||||
status = "okay";
|
||||
|
||||
pinctrl-0 = <&spi1_default>;
|
||||
pinctrl-1 = <&spi1_sleep>;
|
||||
pinctrl-names = "default", "sleep";
|
||||
|
||||
led_strip: ws2812@0 {
|
||||
compatible = "worldsemi,ws2812-spi";
|
||||
|
||||
/* SPI */
|
||||
reg = <0>; /* ignored, but necessary for SPI bindings */
|
||||
spi-max-frequency = <4000000>;
|
||||
|
||||
/* WS2812 */
|
||||
chain-length = <10>; /* arbitrary; change at will */
|
||||
spi-one-frame = <0x70>;
|
||||
spi-zero-frame = <0x40>;
|
||||
|
||||
color-mapping = <LED_COLOR_ID_GREEN LED_COLOR_ID_RED LED_COLOR_ID_BLUE>;
|
||||
};
|
||||
};
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zmk,underglow = &led_strip;
|
||||
};
|
||||
};
|
68
config/boards/shields/hillside46/hillside46.dtsi
Normal file
68
config/boards/shields/hillside46/hillside46.dtsi
Normal file
@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright (c) 2021-2022 The ZMK Contributors
|
||||
*
|
||||
* 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 = <12>;
|
||||
rows = <4>;
|
||||
// | SW1 | SW2 | SW3 | SW4 | SW5 | SW6 | | SW6 | SW5 | SW4 | SW3 | SW2 | SW1 |
|
||||
// | SW7 | SW8 | SW9 | SW10 | SW11 | SW12 | | SW12 | SW11 | SW10 | SW9 | SW8 | SW7 |
|
||||
// | SW13 | SW14 | SW15 | SW16 | SW17 | SW18 / SW19 / \ SW19 \ SW18 | SW17 | SW16 | SW15 | SW14 | SW13 |
|
||||
// | SW20 / SW21 / SW22 / SW23 / \ SW23 \ SW23 \ SW21 \ SW20 |
|
||||
map = <
|
||||
RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,5) RC(0,6) RC(0,7) RC(0,8) RC(0,9) RC(0,10) RC(0,11)
|
||||
RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(1,6) RC(1,7) RC(1,8) RC(1,9) RC(1,10) RC(1,11)
|
||||
RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(3,5) RC(3,6) RC(2,6) RC(2,7) RC(2,8) RC(2,9) RC(2,10) RC(2,11)
|
||||
RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,7) RC(3,8) RC(3,9) RC(3,10)
|
||||
>;
|
||||
};
|
||||
|
||||
kscan0: kscan {
|
||||
compatible = "zmk,kscan-gpio-matrix";
|
||||
label = "KSCAN";
|
||||
|
||||
diode-direction = "col2row";
|
||||
row-gpios
|
||||
= <&pro_micro 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
;
|
||||
|
||||
};
|
||||
|
||||
left_encoder: encoder_left {
|
||||
compatible = "alps,ec11";
|
||||
label = "LEFT_ENCODER";
|
||||
a-gpios = <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||
b-gpios = <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||
resolution = <4>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
right_encoder: encoder_right {
|
||||
compatible = "alps,ec11";
|
||||
label = "RIGHT_ENCODER";
|
||||
a-gpios = <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||
b-gpios = <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||
resolution = <4>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
sensors {
|
||||
compatible = "zmk,keymap-sensors";
|
||||
sensors = <&left_encoder &right_encoder>;
|
||||
};
|
||||
|
||||
};
|
139
config/boards/shields/hillside46/hillside46.keymap
Normal file
139
config/boards/shields/hillside46/hillside46.keymap
Normal file
@ -0,0 +1,139 @@
|
||||
/*
|
||||
* Copyright (c) 2021-2022 The ZMK Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <behaviors.dtsi>
|
||||
#include <dt-bindings/zmk/bt.h>
|
||||
#include <dt-bindings/zmk/ext_power.h>
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
#include <dt-bindings/zmk/outputs.h>
|
||||
|
||||
#define QWERTY_L 0
|
||||
#define DVORAK_L 1
|
||||
#define COLEMK_L 2
|
||||
#define NAV_L 3
|
||||
#define SYM_L 4
|
||||
#define ADJ_L 5
|
||||
|
||||
#define Undo LC(Z)
|
||||
#define Cut LC(X)
|
||||
#define Copy LC(C)
|
||||
#define Paste LC(V)
|
||||
#define Redo LC(Y)
|
||||
|
||||
|
||||
/ {
|
||||
keymap {
|
||||
compatible = "zmk,keymap";
|
||||
|
||||
default_layer {
|
||||
/* QWERTY
|
||||
* -------------------------------------------------------------------------------------------------------------------------------------
|
||||
* | ` | Q | W | E | R | T |-----------------------------------| Y | U | I | O | P | BKSPC |
|
||||
* | TAB | A | S | D | F | G |-----------------------------------| H | J | K | L | ; | ENTER |
|
||||
* | CTRL | Z | X | C | V | B | ESC |-------------------| CAPS | N | M | , | . | / | ' |
|
||||
* | GUI | ALT |SK SHFT| Nav |---| Sym | SPACE | ALT | GUI |
|
||||
*/
|
||||
bindings = <
|
||||
&kp GRAVE &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
|
||||
&kp TAB &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp ENTER
|
||||
&kp LCTRL &kp Z &kp X &kp C &kp V &kp B &kp ESC &caps_word &kp N &kp M &kp COMMA &kp DOT &kp SLASH &kp SQT
|
||||
&kp LGUI &kp LALT &sk LSHIFT &mo NAV_L &mo SYM_L &kp SPACE &kp LALT &kp RGUI
|
||||
>;
|
||||
|
||||
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
|
||||
};
|
||||
|
||||
dvorak_layer {
|
||||
/* DVORAK
|
||||
* -------------------------------------------------------------------------------------------------------------------------------------
|
||||
* | ` | ' | , | . | P | Y |-----------------------------------| F | G | C | R | L | BKSPC |
|
||||
* | TAB | A | O | E | U | I |-----------------------------------| D | H | T | N | S | ENTER |
|
||||
* | CTRL | ; | Q | J | K | X | ESC |-------------------| CAPS | B | M | W | V | Z | / |
|
||||
* | GUI | ALT |SK SHFT| Nav |---| Sym | SPACE | ALT | GUI |
|
||||
*/
|
||||
bindings = <
|
||||
&kp GRAVE &kp SQT &kp COMMA &kp DOT &kp P &kp Y &kp F &kp G &kp C &kp R &kp L &kp BSPC
|
||||
&kp TAB &kp A &kp O &kp E &kp U &kp I &kp D &kp H &kp T &kp N &kp S &kp ENTER
|
||||
&kp LCTRL &kp SEMI &kp Q &kp J &kp K &kp X &kp ESC &caps_word &kp B &kp M &kp W &kp V &kp Z &kp SLASH
|
||||
&kp LGUI &kp LALT &sk LSHIFT &mo NAV_L &mo SYM_L &kp SPACE &kp LALT &kp RGUI
|
||||
>;
|
||||
|
||||
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
|
||||
};
|
||||
|
||||
colemak_layer {
|
||||
/* COLEMAK-DH
|
||||
* -------------------------------------------------------------------------------------------------------------------------------------
|
||||
* | ` | Q | W | F | P | B |-----------------------------------| J | L | U | Y | ; | BKSPC |
|
||||
* | TAB | A | R | S | T | G |-----------------------------------| M | N | E | I | O | ENTER |
|
||||
* | CTRL | Z | X | C | D | V | ESC |-------------------| CAPS | K | H | , | . | / | ' |
|
||||
* | GUI | ALT |SK SHFT| Nav |---| Sym | SPACE | ALT | GUI |
|
||||
*/
|
||||
bindings = <
|
||||
&kp GRAVE &kp Q &kp W &kp F &kp P &kp B &kp J &kp L &kp U &kp Y &kp SEMI &kp BSPC
|
||||
&kp TAB &kp A &kp R &kp S &kp T &kp G &kp M &kp N &kp E &kp I &kp O &kp ENTER
|
||||
&kp LCTRL &kp Z &kp X &kp C &kp D &kp V &kp ESC &caps_word &kp K &kp H &kp COMMA &kp DOT &kp SLASH &kp SQT
|
||||
&kp LGUI &kp LALT &sk LSHIFT &mo NAV_L &mo SYM_L &kp SPACE &kp LALT &kp RGUI
|
||||
>;
|
||||
|
||||
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
|
||||
};
|
||||
|
||||
nav_layer {
|
||||
/* NAV
|
||||
* -------------------------------------------------------------------------------------------------------------------------------------
|
||||
* | Copy | 1 | 2 | 3 | 4 | 5 |-----------------------------------| 6 | 7 | 8 | 9 | 0 | BSPC |
|
||||
* | Cut | GUI | Alt | Ctrl | Shift | Paste |-----------------------------------| PG UP | Left | Up | Down | Right | PG DN |
|
||||
* | Ctrl | F1 | F2 | F3 | F4 | F5 | UnDo |-------------------| ReDo | F6 | F7 | F8 | F9 | F10 | Ctrl |
|
||||
* | | | | |---| ADJ_L | | | |
|
||||
*/
|
||||
bindings = <
|
||||
&kp Copy &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &trans
|
||||
&kp Cut &kp LGUI &kp LALT &kp LCTRL &kp LSHFT &kp Paste &kp PG_UP &kp LEFT &kp UP &kp DOWN &kp RIGHT &kp PG_DN
|
||||
&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp Undo &kp Redo &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp RCTRL
|
||||
&trans &trans &trans &trans &mo ADJ_L &trans &trans &trans
|
||||
>;
|
||||
|
||||
sensor-bindings = <&inc_dec_kp PG_UP PG_DN &inc_dec_kp C_VOL_UP C_VOL_DN>;
|
||||
};
|
||||
|
||||
sym_layer {
|
||||
/* SYM
|
||||
* -------------------------------------------------------------------------------------------------------------------------------------
|
||||
* | INS | ! | @ | # | $ | % |-----------------------------------| ^ | & | * | ( | ) | BSPC |
|
||||
* | | \ | - | = | [ | ] |-----------------------------------| HOME | Shift | Ctrl | Alt | Gui | END |
|
||||
* | Ctrl | | | _ | + | { | } |SkAltGr|-------------------| MENU | Mute | Vol- | Vol+ | Play | | Ctrl |
|
||||
* | | | | ADJ_L |---| | | | |
|
||||
*/
|
||||
bindings = <
|
||||
&kp INS &kp EXCL &kp AT &kp HASH &kp DOLLAR &kp PERCENT &kp CARET &kp AMPS &kp ASTRK &kp LPAR &kp RPAR &kp DEL
|
||||
&none &kp BSLH &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kp HOME &kp RSHFT &kp RCTRL &kp LALT &kp RGUI &kp END
|
||||
&trans &kp PIPE &kp UNDER &kp PLUS &kp LBRC &kp RBRC &sk RALT &kp K_APP &kp C_MUTE &kp C_VOL_DN &kp C_VOL_UP &kp C_PP &none &kp RCTRL
|
||||
&trans &trans &trans &mo ADJ_L &trans &trans &trans &trans
|
||||
>;
|
||||
|
||||
sensor-bindings = <&inc_dec_kp PG_UP PG_DN &inc_dec_kp C_VOL_UP C_VOL_DN>;
|
||||
};
|
||||
|
||||
adj_layer {
|
||||
/* ADJUST
|
||||
* -------------------------------------------------------------------------------------------------------------------------------------
|
||||
* | | QWERTY| DVORAK| COLEMK| | |-----------------------------------| | F11 | F12 |Prt Scr|EP_OFF | EP_ON |
|
||||
* | RESET | BT 0 | BT 1 | BT 2 | BT 3 | BT 4 |-----------------------------------| | | | | | RESET |
|
||||
* | | LGUI | LALT | LCTRL | LSHIFT| |BT CLR |-------------------| | | |OUT_USB|OUT_BLE| | BOOTL |
|
||||
* | | | | |---| | | | |
|
||||
*/
|
||||
bindings = <
|
||||
&none &to QWERTY_L &to DVORAK_L &to COLEMK_L &none &none &none &kp F11 &kp F12 &kp PRINTSCREEN &ext_power EP_OFF &ext_power EP_ON
|
||||
&reset &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &none &none &none &none &reset
|
||||
&none &kp LGUI &kp LALT &kp LCTRL &kp LSHIFT &none &bt BT_CLR &none &none &none &out OUT_USB &out OUT_BLE &none &bootloader
|
||||
&trans &trans &trans &trans &trans &trans &trans &trans
|
||||
>;
|
||||
|
||||
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
|
||||
};
|
||||
};
|
||||
};
|
13
config/boards/shields/hillside46/hillside46.zmk.yml
Normal file
13
config/boards/shields/hillside46/hillside46.zmk.yml
Normal file
@ -0,0 +1,13 @@
|
||||
file_format: "1"
|
||||
id: hillside46
|
||||
name: Hillside46
|
||||
type: shield
|
||||
url: https://github.com/mmccoyd/hillside/
|
||||
requires: [pro_micro]
|
||||
features:
|
||||
- keys
|
||||
# - encoder
|
||||
# - underglow
|
||||
siblings:
|
||||
- hillside46_left
|
||||
- hillside46_right
|
22
config/boards/shields/hillside46/hillside46_left.overlay
Normal file
22
config/boards/shields/hillside46/hillside46_left.overlay
Normal file
@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (c) 2021-2022 The ZMK Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include "hillside46.dtsi"
|
||||
|
||||
&kscan0 {
|
||||
col-gpios
|
||||
= <&pro_micro 19 GPIO_ACTIVE_HIGH> // col0 in the schematic
|
||||
, <&pro_micro 18 GPIO_ACTIVE_HIGH> // col1 in the schematic
|
||||
, <&pro_micro 15 GPIO_ACTIVE_HIGH> // col2 in the schematic
|
||||
, <&pro_micro 14 GPIO_ACTIVE_HIGH> // col3 in the schematic
|
||||
, <&pro_micro 16 GPIO_ACTIVE_HIGH> // col4 in the schematic
|
||||
, <&pro_micro 10 GPIO_ACTIVE_HIGH> // col5 in the schematic
|
||||
;
|
||||
};
|
||||
|
||||
&left_encoder {
|
||||
status = "okay";
|
||||
};
|
26
config/boards/shields/hillside46/hillside46_right.overlay
Normal file
26
config/boards/shields/hillside46/hillside46_right.overlay
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright (c) 2021-2022 The ZMK Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include "hillside46.dtsi"
|
||||
|
||||
&default_transform {
|
||||
col-offset = <6>;
|
||||
};
|
||||
|
||||
&kscan0 {
|
||||
col-gpios
|
||||
= <&pro_micro 10 GPIO_ACTIVE_HIGH> // col5 in the schematic
|
||||
, <&pro_micro 16 GPIO_ACTIVE_HIGH> // col4 in the schematic
|
||||
, <&pro_micro 14 GPIO_ACTIVE_HIGH> // col3 in the schematic
|
||||
, <&pro_micro 15 GPIO_ACTIVE_HIGH> // col2 in the schematic
|
||||
, <&pro_micro 18 GPIO_ACTIVE_HIGH> // col1 in the schematic
|
||||
, <&pro_micro 19 GPIO_ACTIVE_HIGH> // col0 in the schematic
|
||||
;
|
||||
};
|
||||
|
||||
&right_encoder {
|
||||
status = "okay";
|
||||
};
|
Reference in New Issue
Block a user