Update notes ; prep tg4x bring up
This commit is contained in:
parent
278794d3b2
commit
c889548c3d
|
@ -10,12 +10,14 @@ Need to have the `zmk-config` directory mounted at `/workspaces/zmk-config` in D
|
||||||
|
|
||||||
west build --board nice_nano -d build/tidbit -- -DSHIELD=tidbit -DZMK_CONFIG=/workspaces/zmk-config/keyboards/zmk-config/config
|
west build --board nice_nano -d build/tidbit -- -DSHIELD=tidbit -DZMK_CONFIG=/workspaces/zmk-config/keyboards/zmk-config/config
|
||||||
|
|
||||||
|
west build --board nice_nano -d build/pockettype -- -DSHIELD=pockettype -DZMK_CONFIG=/workspaces/zmk-config/keyboards/zmk-config/config
|
||||||
|
|
||||||
|
west build --board nice_nano -d build/tg4x -- -DSHIELD=tg4x -DZMK_CONFIG=/workspaces/zmk-config/keyboards/zmk-config/config
|
||||||
|
|
||||||
west build --board nice_nano -d build/lily58/left -- -DSHIELD=lily58_left -DZMK_CONFIG=/workspaces/zmk-config/keyboards/zmk-config/config
|
west build --board nice_nano -d build/lily58/left -- -DSHIELD=lily58_left -DZMK_CONFIG=/workspaces/zmk-config/keyboards/zmk-config/config
|
||||||
|
|
||||||
west build --board nice_nano -d build/lily58/right -- -DSHIELD=lily58_right -DZMK_CONFIG=/workspaces/zmk-config/keyboards/zmk-config/config
|
west build --board nice_nano -d build/lily58/right -- -DSHIELD=lily58_right -DZMK_CONFIG=/workspaces/zmk-config/keyboards/zmk-config/config
|
||||||
|
|
||||||
west build --board nice_nano -d build/pockettype -- -DSHIELD=pockettype -DZMK_CONFIG=/workspaces/zmk-config/keyboards/zmk-config/config
|
|
||||||
|
|
||||||
west build --board itsybitsy_nrf52840 -d build/azarashi64/left -- -DSHIELD=azarashi64_left -DZMK_CONFIG=/workspaces/zmk-config/keyboards/zmk-config/config
|
west build --board itsybitsy_nrf52840 -d build/azarashi64/left -- -DSHIELD=azarashi64_left -DZMK_CONFIG=/workspaces/zmk-config/keyboards/zmk-config/config
|
||||||
|
|
||||||
west build --board itsybitsy_nrf52840 -d build/azarashi64/right -- -DSHIELD=azarashi64_right -DZMK_CONFIG=/workspaces/zmk-config/keyboards/zmk-config/config
|
west build --board itsybitsy_nrf52840 -d build/azarashi64/right -- -DSHIELD=azarashi64_right -DZMK_CONFIG=/workspaces/zmk-config/keyboards/zmk-config/config
|
||||||
|
|
9
keyboards/zmk-config/config/boards/shields/tg4x/Kconfig.defconfig
Executable file
9
keyboards/zmk-config/config/boards/shields/tg4x/Kconfig.defconfig
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
# Copyright (c) 2020 The ZMK Contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
if SHIELD_TG4X
|
||||||
|
|
||||||
|
config ZMK_KEYBOARD_NAME
|
||||||
|
default "TG4X"
|
||||||
|
|
||||||
|
endif
|
5
keyboards/zmk-config/config/boards/shields/tg4x/Kconfig.shield
Executable file
5
keyboards/zmk-config/config/boards/shields/tg4x/Kconfig.shield
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
# Copyright (c) 2020 The ZMK Contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
config SHIELD_TG4X
|
||||||
|
def_bool $(shields_list_contains,tg4x)
|
|
@ -0,0 +1,5 @@
|
||||||
|
# TG4X
|
||||||
|
|
||||||
|
Standard setup for the [TG4X](https://github.com/MythosMann/tg4x/) 40% keyboard.
|
||||||
|
|
||||||
|
The `keymap` directory contains the keyboard layout and were created by [Keyboard Layout Editor](http://www.keyboard-layout-editor.com/). Please note: the zmk keymap is slightly adjusted from the default shown on the main TG4X pages and QMK.
|
|
@ -0,0 +1,4 @@
|
||||||
|
# Enable underglow
|
||||||
|
CONFIG_ZMK_RGB_UNDERGLOW=y
|
||||||
|
# Use the STRIP config specific to the LEDs you're using
|
||||||
|
CONFIG_WS2812_STRIP=y
|
|
@ -0,0 +1,34 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2020 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
&spi1 {
|
||||||
|
compatible = "nordic,nrf-spim";
|
||||||
|
status = "okay";
|
||||||
|
mosi-pin = <9>;
|
||||||
|
// Unused pins, needed for SPI definition, but not used by the ws2812 driver itself.
|
||||||
|
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 = <7>; /* number of LEDs */
|
||||||
|
spi-one-frame = <0x70>;
|
||||||
|
spi-zero-frame = <0x40>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
/ {
|
||||||
|
chosen {
|
||||||
|
zmk,underglow = &led_strip;
|
||||||
|
};
|
||||||
|
};
|
7
keyboards/zmk-config/config/boards/shields/tg4x/tg4x.conf
Executable file
7
keyboards/zmk-config/config/boards/shields/tg4x/tg4x.conf
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
# Copyright (c) 2020 The ZMK Contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
# Enable underglow
|
||||||
|
#CONFIG_ZMK_RGB_UNDERGLOW=y
|
||||||
|
# Use the STRIP config specific to the LEDs you're using
|
||||||
|
#CONFIG_WS2812_STRIP=y
|
42
keyboards/zmk-config/config/boards/shields/tg4x/tg4x.keymap
Normal file
42
keyboards/zmk-config/config/boards/shields/tg4x/tg4x.keymap
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
/*
|
||||||
|
* 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>
|
||||||
|
|
||||||
|
/ {
|
||||||
|
keymap {
|
||||||
|
compatible = "zmk,keymap";
|
||||||
|
|
||||||
|
default_layer {
|
||||||
|
bindings = <
|
||||||
|
&kp ESCAPE &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp SQT &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 &none
|
||||||
|
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp SQT &kp RSHFT &none
|
||||||
|
&kp LCTRL &kp LGUI &kp LALT < 1 SPACE &none &none &none &kp SPACE &kp RALT &kp RGUI &mo 2 &kp RCTL &none
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
|
||||||
|
f_layer {
|
||||||
|
bindings = <
|
||||||
|
&kp GRAVE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS &kp DEL
|
||||||
|
&trans &kp HOME &kp PG_UP &trans &trans &trans &trans &kp LBRC &kp RBRC &kp EQUAL &kp BSLH &kp ENTER &none
|
||||||
|
&trans &kp END &kp PG_DN &trans &trans &trans &trans &trans &trans &trans &kp UP &kp RSFT &none
|
||||||
|
&trans &trans &trans &trans &none &none &none &trans &trans &kp LEFT &kp DOWN &kp RIGHT &none
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
|
||||||
|
o_layer {
|
||||||
|
bindings = <
|
||||||
|
&kp GRAVE &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12
|
||||||
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &kp C_VOL_UP &kp C_VOL_DN &kp C_PP &none
|
||||||
|
&bt BT_CLR &bt BT_PRV &bt BT_NXT &trans &trans &trans &trans &trans &trans &trans &bootloader &reset &none
|
||||||
|
&trans &trans &trans &trans &none &none &none &trans &trans &trans &trans &trans &none
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
57
keyboards/zmk-config/config/boards/shields/tg4x/tg4x.overlay
Normal file
57
keyboards/zmk-config/config/boards/shields/tg4x/tg4x.overlay
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2020 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <dt-bindings/zmk/matrix-transform.h>
|
||||||
|
|
||||||
|
/ {
|
||||||
|
kscan0: kscan {
|
||||||
|
compatible = "zmk,kscan-gpio-matrix";
|
||||||
|
label = "KSCAN";
|
||||||
|
|
||||||
|
diode-direction = "col2row";
|
||||||
|
|
||||||
|
row-gpios
|
||||||
|
= <&pro_micro_d 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
|
, <&pro_micro_d 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
|
, <&pro_micro_a 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
|
, <&pro_micro_a 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
|
;
|
||||||
|
|
||||||
|
col-gpios
|
||||||
|
= <&pro_micro_d 9 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_d 8 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_d 7 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_d 6 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_d 5 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_d 4 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_d 3 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_d 0 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_a 1 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_a 0 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_d 15 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_d 14 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_d 16 GPIO_ACTIVE_HIGH>
|
||||||
|
;
|
||||||
|
};
|
||||||
|
|
||||||
|
default_transform: keymap_transform_0 {
|
||||||
|
compatible = "zmk,matrix-transform";
|
||||||
|
columns = <13>;
|
||||||
|
rows = <4>;
|
||||||
|
|
||||||
|
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(0, 12)
|
||||||
|
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(1, 12)
|
||||||
|
RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(2,8) RC(2,9) RC(2,10) RC(2,11) RC(2, 12)
|
||||||
|
RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(3,6) RC(3,7) RC(3,8) RC(3,9) RC(3,10) RC(3,11) RC(3, 12)
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
|
||||||
|
chosen {
|
||||||
|
zmk,kscan = &kscan0;
|
||||||
|
zmk,matrix_transform = &default_transform;
|
||||||
|
};
|
||||||
|
};
|
|
@ -29,19 +29,22 @@
|
||||||
|
|
||||||
# Hardware To Do / Notes
|
# Hardware To Do / Notes
|
||||||
|
|
||||||
|
## Pockettype
|
||||||
|
|
||||||
|
- Setup as the 'nice' dongle
|
||||||
|
|
||||||
|
## 40%
|
||||||
|
|
||||||
|
- Setup as the 'naked' dongle
|
||||||
|
- Standard ZMK port with nice!nano
|
||||||
|
- Figure out underglow
|
||||||
|
|
||||||
## Tidbit
|
## Tidbit
|
||||||
|
|
||||||
- Setup to use oled same way as original
|
- Setup to use oled same way as original
|
||||||
- Setup to use nice!nano same way as original
|
- Setup to use nice!nano same way as original
|
||||||
- Setup to use 14500 same way as original
|
- Setup to use 14500 same way as original
|
||||||
|
|
||||||
## Pocket Type
|
|
||||||
|
|
||||||
- Nice!Nano + magnetic usb-c
|
|
||||||
- 110mAh LiPo under MCU
|
|
||||||
- Add OLED somehow
|
|
||||||
- Add neopixel on spare pins (if present)
|
|
||||||
|
|
||||||
## Mini mouse pad / track pad
|
## Mini mouse pad / track pad
|
||||||
|
|
||||||
- Adafruit itsybitsy nrf
|
- Adafruit itsybitsy nrf
|
||||||
|
|
Loading…
Reference in a new issue