Update personal tidbit config for zmk
This commit is contained in:
parent
0dd5f08b75
commit
851fb4a759
BIN
keyboards/nullbitsco/tidbit/layer-3---zmk-thumb.png
Normal file
BIN
keyboards/nullbitsco/tidbit/layer-3---zmk-thumb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.9 KiB |
46
keyboards/nullbitsco/tidbit/layer-3---zmk.json
Normal file
46
keyboards/nullbitsco/tidbit/layer-3---zmk.json
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"backcolor": "#00f3ff",
|
||||||
|
"name": "Layer 3 - ZMK",
|
||||||
|
"author": "KemoNine"
|
||||||
|
},
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"x": 1,
|
||||||
|
"a": 7
|
||||||
|
},
|
||||||
|
"TG(0)",
|
||||||
|
"Reset",
|
||||||
|
"Boot"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"Out Tog",
|
||||||
|
"Out USB",
|
||||||
|
"Out BLE",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"RGB Tog",
|
||||||
|
"BT Prev",
|
||||||
|
"BT next",
|
||||||
|
"BT Clear"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"Ext Pwr Tog",
|
||||||
|
"BT Sel 4",
|
||||||
|
"BT Sel 5",
|
||||||
|
"BT Sel 6"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"a": 5
|
||||||
|
},
|
||||||
|
"Vol Up\nVol Dn\n\n\n\n\nMute",
|
||||||
|
{
|
||||||
|
"a": 7
|
||||||
|
},
|
||||||
|
"BT Sel 1",
|
||||||
|
"BT Sel 2",
|
||||||
|
"BT Sel 3"
|
||||||
|
]
|
||||||
|
]
|
13
keyboards/nullbitsco/tidbit/zmk-config/README.md
Normal file
13
keyboards/nullbitsco/tidbit/zmk-config/README.md
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# ZMK Notes for Tidbit
|
||||||
|
|
||||||
|
## Docker Volume
|
||||||
|
|
||||||
|
Need to have the `zmk-config` directory mounted at `/root/zmk-config` in Docker container
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
``` sh
|
||||||
|
|
||||||
|
west build -p --board nice_nano -d build/tidbit/ -- -DSHIELD=tidbit -DZMK_CONFIG="/root/zmk-config/config"
|
||||||
|
|
||||||
|
```
|
|
@ -12,3 +12,6 @@ CONFIG_WS2812_STRIP=y
|
||||||
|
|
||||||
# Display
|
# Display
|
||||||
CONFIG_ZMK_DISPLAY=y
|
CONFIG_ZMK_DISPLAY=y
|
||||||
|
|
||||||
|
# Number of BT Profiles
|
||||||
|
CONFIG_BT_MAX_CONN=6
|
|
@ -9,6 +9,7 @@
|
||||||
#include <dt-bindings/zmk/outputs.h>
|
#include <dt-bindings/zmk/outputs.h>
|
||||||
#include <dt-bindings/zmk/rgb.h>
|
#include <dt-bindings/zmk/rgb.h>
|
||||||
#include <dt-bindings/zmk/keys.h>
|
#include <dt-bindings/zmk/keys.h>
|
||||||
|
#include <dt-bindings/zmk/ext_power.h>
|
||||||
|
|
||||||
&encoder_4 {
|
&encoder_4 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
@ -26,10 +27,20 @@
|
||||||
|
|
||||||
keymap {
|
keymap {
|
||||||
compatible = "zmk,keymap";
|
compatible = "zmk,keymap";
|
||||||
|
|
||||||
default_layer {
|
default_layer {
|
||||||
bindings = <
|
bindings = <
|
||||||
&tog 1 &kp KP_NUMLOCK &kp KP_SLASH
|
&tog 1 &bootloader &none
|
||||||
|
&none &none &none &kp LC(LA(TAB))
|
||||||
|
&none &none &none &kp LG(DOWN_ARROW)
|
||||||
|
&kp ESCAPE &none &none &none
|
||||||
|
&kp C_MUTE &kp C_VOLUME_DOWN &kp C_VOLUME_UP &none
|
||||||
|
>;
|
||||||
|
|
||||||
|
sensor-bindings = <&inc_dec_kp C_VOLUME_UP C_VOLUME_DOWN>;
|
||||||
|
};
|
||||||
|
num_pad_layer {
|
||||||
|
bindings = <
|
||||||
|
&tog 2 &kp KP_NUMLOCK &kp KP_SLASH
|
||||||
&kp KP_NUMBER_7 &kp KP_NUMBER_8 &kp KP_NUMBER_9 &kp KP_ASTERISK
|
&kp KP_NUMBER_7 &kp KP_NUMBER_8 &kp KP_NUMBER_9 &kp KP_ASTERISK
|
||||||
&kp KP_NUMBER_4 &kp KP_NUMBER_5 &kp KP_NUMBER_6 &kp KP_MINUS
|
&kp KP_NUMBER_4 &kp KP_NUMBER_5 &kp KP_NUMBER_6 &kp KP_MINUS
|
||||||
&kp KP_NUMBER_1 &kp KP_NUMBER_2 &kp KP_NUMBER_3 &kp KP_PLUS
|
&kp KP_NUMBER_1 &kp KP_NUMBER_2 &kp KP_NUMBER_3 &kp KP_PLUS
|
|
@ -1,64 +0,0 @@
|
||||||
on: [push, pull_request, workflow_dispatch]
|
|
||||||
|
|
||||||
name: Build
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: Build Test
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Cache west modules
|
|
||||||
uses: actions/cache@v2
|
|
||||||
env:
|
|
||||||
cache-name: cache-zephyr-modules
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
modules/
|
|
||||||
tools/
|
|
||||||
zephyr/
|
|
||||||
bootloader/
|
|
||||||
zmk/
|
|
||||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('manifest-dir/west.yml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
${{ runner.os }}-build-
|
|
||||||
${{ runner.os }}-
|
|
||||||
- name: West Init
|
|
||||||
uses: 'docker://zmkfirmware/zephyr-west-action-arm:latest'
|
|
||||||
id: west-init
|
|
||||||
with:
|
|
||||||
args: 'init "-l config"'
|
|
||||||
- name: West Update
|
|
||||||
uses: 'docker://zmkfirmware/zephyr-west-action-arm:latest'
|
|
||||||
id: west-update
|
|
||||||
with:
|
|
||||||
args: 'update'
|
|
||||||
- name: West Config Zephyr Base
|
|
||||||
uses: 'docker://zmkfirmware/zephyr-west-action-arm:latest'
|
|
||||||
id: west-config
|
|
||||||
with:
|
|
||||||
args: 'config "--global zephyr.base-prefer configfile"'
|
|
||||||
- name: West Zephyr Export
|
|
||||||
uses: 'docker://zmkfirmware/zephyr-west-action-arm:latest'
|
|
||||||
id: west-zephyr-export
|
|
||||||
with:
|
|
||||||
args: 'zephyr-export'
|
|
||||||
- name: West Build (Tidbit - 19 keys)
|
|
||||||
uses: 'docker://zmkfirmware/zephyr-west-action-arm:latest'
|
|
||||||
id: west-build-tidbit_19key
|
|
||||||
with:
|
|
||||||
args: 'build "-s zmk/app -b nice_nano -- -DSHIELD=tidbit_19key -DZMK_CONFIG=/github/workspace/config"'
|
|
||||||
- name: Tidbit - 19 keys DTS File
|
|
||||||
if: ${{ always() }}
|
|
||||||
run: cat -n build/zephyr/nice_nano.dts.pre.tmp
|
|
||||||
- name: Tidbit - 19 keys Kconfig file
|
|
||||||
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$"
|
|
||||||
- name: Rename zmk.uf2
|
|
||||||
run: cp build/zephyr/zmk.uf2 tidbit_19key_nice_nano.uf2
|
|
||||||
- name: Archive (Tidbit - 19 keys)
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: firmware
|
|
||||||
path: tidbit_19key_nice_nano.uf2
|
|
|
@ -1,3 +0,0 @@
|
||||||
|
|
||||||
|
|
||||||
west build -p --board nice_nano -d build/tidbit/19_key -- -DSHIELD=tidbit_19key
|
|
Loading…
Reference in a new issue