forked from kofal.net/zmk
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c62da0e166 | ||
|
|
327cbb587b | ||
|
|
bab8eb06c1 | ||
|
|
ed9626d8d1 | ||
|
|
3e64a5dccd |
8
.github/workflows/ble-test.yml
vendored
8
.github/workflows/ble-test.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
- name: Find test directories
|
- name: Find test directories
|
||||||
id: test-dirs
|
id: test-dirs
|
||||||
run: |
|
run: |
|
||||||
@@ -38,9 +38,9 @@ jobs:
|
|||||||
image: docker.io/zmkfirmware/zmk-build-arm:4.1
|
image: docker.io/zmkfirmware/zmk-build-arm:4.1
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
- name: Cache west modules
|
- name: Cache west modules
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: cache-zephyr-modules
|
cache-name: cache-zephyr-modules
|
||||||
with:
|
with:
|
||||||
@@ -72,7 +72,7 @@ jobs:
|
|||||||
run: BSIM_COMPONENTS_PATH="${GITHUB_WORKSPACE}/tools/bsim/components" BSIM_OUT_PATH="${GITHUB_WORKSPACE}/tools/bsim" ./run-ble-test.sh tests/ble/${{ matrix.test }}
|
run: BSIM_COMPONENTS_PATH="${GITHUB_WORKSPACE}/tools/bsim/components" BSIM_OUT_PATH="${GITHUB_WORKSPACE}/tools/bsim" ./run-ble-test.sh tests/ble/${{ matrix.test }}
|
||||||
- name: Archive artifacts
|
- name: Archive artifacts
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: "${{ matrix.test }}-log-files"
|
name: "${{ matrix.test }}-log-files"
|
||||||
path: app/build/**/*.log
|
path: app/build/**/*.log
|
||||||
|
|||||||
10
.github/workflows/build-user-config.yml
vendored
10
.github/workflows/build-user-config.yml
vendored
@@ -33,7 +33,7 @@ jobs:
|
|||||||
has_valid_build_matrix: ${{ steps.fetch.outputs.has_valid_build_matrix }}
|
has_valid_build_matrix: ${{ steps.fetch.outputs.has_valid_build_matrix }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Fetch Build Matrix
|
- name: Fetch Build Matrix
|
||||||
id: fetch
|
id: fetch
|
||||||
@@ -67,7 +67,7 @@ jobs:
|
|||||||
curl -fsSL https://deb.nodesource.com/setup_22.x | bash && apt install -y nodejs
|
curl -fsSL https://deb.nodesource.com/setup_22.x | bash && apt install -y nodejs
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Create build directory
|
- name: Create build directory
|
||||||
run: |
|
run: |
|
||||||
@@ -108,7 +108,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Cache west modules
|
- name: Cache west modules
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
env:
|
env:
|
||||||
cache_name: cache-zephyr-${{ env.zephyr_version }}-modules
|
cache_name: cache-zephyr-${{ env.zephyr_version }}-modules
|
||||||
@@ -217,7 +217,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Archive (${{ env.display_name }})
|
- name: Archive (${{ env.display_name }})
|
||||||
uses: actions/upload-artifact@v6
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: artifact-${{ env.artifact_name }}
|
name: artifact-${{ env.artifact_name }}
|
||||||
path: ${{ env.build_dir }}/artifacts
|
path: ${{ env.build_dir }}/artifacts
|
||||||
@@ -229,7 +229,7 @@ jobs:
|
|||||||
name: Merge Output Artifacts
|
name: Merge Output Artifacts
|
||||||
steps:
|
steps:
|
||||||
- name: Merge Artifacts
|
- name: Merge Artifacts
|
||||||
uses: actions/upload-artifact/merge@v4
|
uses: actions/upload-artifact/merge@v7
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.archive_name }}
|
name: ${{ inputs.archive_name }}
|
||||||
pattern: artifact-*
|
pattern: artifact-*
|
||||||
|
|||||||
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@@ -30,11 +30,11 @@ jobs:
|
|||||||
include: ${{ fromJSON(needs.compile-matrix.outputs.include-list) }}
|
include: ${{ fromJSON(needs.compile-matrix.outputs.include-list) }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Cache west modules
|
- name: Cache west modules
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: cache-zephyr-modules
|
cache-name: cache-zephyr-modules
|
||||||
with:
|
with:
|
||||||
@@ -57,7 +57,7 @@ jobs:
|
|||||||
- name: Export Zephyr CMake package (west zephyr-export)
|
- name: Export Zephyr CMake package (west zephyr-export)
|
||||||
run: west zephyr-export
|
run: west zephyr-export
|
||||||
- name: Use Node.js
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: "14.x"
|
node-version: "14.x"
|
||||||
- name: Install @actions/artifact
|
- name: Install @actions/artifact
|
||||||
@@ -187,11 +187,11 @@ jobs:
|
|||||||
core-include: ${{ steps.core-list.outputs.result }}
|
core-include: ${{ steps.core-list.outputs.result }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Use Node.js
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: "14.x"
|
node-version: "14.x"
|
||||||
- name: Install js-yaml
|
- name: Install js-yaml
|
||||||
@@ -218,9 +218,9 @@ jobs:
|
|||||||
boards-include: ${{ steps.boards-list.outputs.result }}
|
boards-include: ${{ steps.boards-list.outputs.result }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
- name: Use Node.js
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: "14.x"
|
node-version: "14.x"
|
||||||
- name: Install js-yaml
|
- name: Install js-yaml
|
||||||
@@ -346,11 +346,11 @@ jobs:
|
|||||||
organized-metadata: ${{ steps.organize-metadata.outputs.result }}
|
organized-metadata: ${{ steps.organize-metadata.outputs.result }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Use Node.js
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: "14.x"
|
node-version: "14.x"
|
||||||
- name: Install js-yaml
|
- name: Install js-yaml
|
||||||
@@ -428,7 +428,7 @@ jobs:
|
|||||||
core-changes: ${{ steps.core-changes.outputs.result }}
|
core-changes: ${{ steps.core-changes.outputs.result }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- uses: tj-actions/changed-files@9200e69727eb73eb060652b19946b8a2fdfb654b # pin to v45.0.8 due to https://github.com/tj-actions/changed-files/issues/2463 https://www.stepsecurity.io/blog/harden-runner-detection-tj-actions-changed-files-action-is-compromised
|
- uses: tj-actions/changed-files@9200e69727eb73eb060652b19946b8a2fdfb654b # pin to v45.0.8 due to https://github.com/tj-actions/changed-files/issues/2463 https://www.stepsecurity.io/blog/harden-runner-detection-tj-actions-changed-files-action-is-compromised
|
||||||
|
|||||||
4
.github/workflows/doc-checks.yml
vendored
4
.github/workflows/doc-checks.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
|||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
- uses: bahmutov/npm-install@v1
|
- uses: bahmutov/npm-install@v1
|
||||||
with:
|
with:
|
||||||
working-directory: docs
|
working-directory: docs
|
||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
typecheck:
|
typecheck:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
- uses: bahmutov/npm-install@v1
|
- uses: bahmutov/npm-install@v1
|
||||||
with:
|
with:
|
||||||
working-directory: docs
|
working-directory: docs
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: docker.io/zmkfirmware/zmk-dev-arm:4.1
|
image: docker.io/zmkfirmware/zmk-dev-arm:4.1
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pip install --break-system-packages -r app/scripts/requirements.txt
|
run: pip install --break-system-packages -r app/scripts/requirements.txt
|
||||||
- name: West init
|
- name: West init
|
||||||
|
|||||||
2
.github/workflows/pre-commit.yml
vendored
2
.github/workflows/pre-commit.yml
vendored
@@ -8,7 +8,7 @@ jobs:
|
|||||||
pre-commit:
|
pre-commit:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
- uses: actions/setup-python@v6
|
- uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
|
|||||||
2
.github/workflows/release-please.yml
vendored
2
.github/workflows/release-please.yml
vendored
@@ -35,7 +35,7 @@ jobs:
|
|||||||
ZMK_RELEASE_PLEASE_TOKEN: ${{ secrets.ZMK_RELEASE_PLEASE_TOKEN }}
|
ZMK_RELEASE_PLEASE_TOKEN: ${{ secrets.ZMK_RELEASE_PLEASE_TOKEN }}
|
||||||
VERSION: v${{ needs.handle-commit.outputs.major }}.${{ needs.handle-commit.outputs.minor }}
|
VERSION: v${{ needs.handle-commit.outputs.major }}.${{ needs.handle-commit.outputs.minor }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Create major.minor branch
|
- name: Create major.minor branch
|
||||||
if: ${{ needs.handle-commit.outputs.patch == '0' }}
|
if: ${{ needs.handle-commit.outputs.patch == '0' }}
|
||||||
|
|||||||
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
- name: Find test directories
|
- name: Find test directories
|
||||||
id: test-dirs
|
id: test-dirs
|
||||||
run: |
|
run: |
|
||||||
@@ -40,9 +40,9 @@ jobs:
|
|||||||
image: docker.io/zmkfirmware/zmk-build-arm:4.1
|
image: docker.io/zmkfirmware/zmk-build-arm:4.1
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v6
|
||||||
- name: Cache west modules
|
- name: Cache west modules
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: cache-zephyr-modules
|
cache-name: cache-zephyr-modules
|
||||||
with:
|
with:
|
||||||
@@ -69,7 +69,7 @@ jobs:
|
|||||||
run: ZMK_TESTS_VERBOSE=1 west test tests/${{ matrix.test }}
|
run: ZMK_TESTS_VERBOSE=1 west test tests/${{ matrix.test }}
|
||||||
- name: Archive artifacts
|
- name: Archive artifacts
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: "${{ matrix.test }}-log-files"
|
name: "${{ matrix.test }}-log-files"
|
||||||
path: app/build/**/*.log
|
path: app/build/**/*.log
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
# Copyright (c) 2020 Pete Johanson, Richard Jones
|
|
||||||
# SPDX-License-Identifier: MIT
|
|
||||||
|
|
||||||
if SHIELD_JNUMPAD
|
|
||||||
|
|
||||||
config ZMK_KEYBOARD_NAME
|
|
||||||
default "jNumpad Wireless"
|
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
if ZMK_DISPLAY
|
|
||||||
|
|
||||||
config I2C
|
|
||||||
default y
|
|
||||||
|
|
||||||
config SSD1306
|
|
||||||
default y
|
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
|
||||||
|
|
||||||
if LVGL
|
|
||||||
|
|
||||||
config LV_Z_VDB_SIZE
|
|
||||||
default 64
|
|
||||||
|
|
||||||
config LV_Z_DPI
|
|
||||||
default 148
|
|
||||||
|
|
||||||
config LV_Z_BITS_PER_PIXEL
|
|
||||||
default 1
|
|
||||||
|
|
||||||
choice LV_COLOR_DEPTH
|
|
||||||
default LV_COLOR_DEPTH_1
|
|
||||||
endchoice
|
|
||||||
|
|
||||||
endif # LVGL
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# Copyright (c) 2020 Pete Johanson, Richard Jones
|
|
||||||
# SPDX-License-Identifier: MIT
|
|
||||||
|
|
||||||
config SHIELD_JNUMPAD
|
|
||||||
def_bool $(shields_list_contains,jnumpad)
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
CONFIG_ZMK_DISPLAY=y
|
|
||||||
CONFIG_ZMK_DISPLAY_STATUS_SCREEN_BUILT_IN=y
|
|
||||||
CONFIG_ZMK_DISPLAY_WORK_QUEUE_SYSTEM=y
|
|
||||||
CONFIG_ZMK_WIDGET_BATTERY_STATUS=y
|
|
||||||
CONFIG_ZMK_WIDGET_BATTERY_STATUS_SHOW_PERCENTAGE=y
|
|
||||||
CONFIG_ZMK_WIDGET_WPM_STATUS=y
|
|
||||||
CONFIG_ZMK_EXT_POWER=y
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
/ {
|
|
||||||
chosen {
|
|
||||||
zmk,kscan = &kscan0;
|
|
||||||
zephyr,display = &oled;
|
|
||||||
};
|
|
||||||
|
|
||||||
kscan0: kscan {
|
|
||||||
compatible = "zmk,kscan-gpio-matrix";
|
|
||||||
label = "KSCAN";
|
|
||||||
|
|
||||||
diode-direction = "col2row";
|
|
||||||
row-gpios
|
|
||||||
= <&pro_micro 18 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
||||||
, <&pro_micro 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
||||||
, <&pro_micro 14 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
||||||
, <&pro_micro 16 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
||||||
, <&pro_micro 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
||||||
;
|
|
||||||
|
|
||||||
col-gpios
|
|
||||||
= <&pro_micro 9 GPIO_ACTIVE_HIGH>
|
|
||||||
, <&pro_micro 8 GPIO_ACTIVE_HIGH>
|
|
||||||
, <&pro_micro 7 GPIO_ACTIVE_HIGH>
|
|
||||||
, <&pro_micro 6 GPIO_ACTIVE_HIGH>
|
|
||||||
;
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&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>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
@@ -1,73 +0,0 @@
|
|||||||
// numpad.keymap
|
|
||||||
|
|
||||||
#include <behaviors.dtsi>
|
|
||||||
#include <dt-bindings/zmk/keys.h>
|
|
||||||
#include <dt-bindings/zmk/bt.h>
|
|
||||||
#include <dt-bindings/zmk/ext_power.h>
|
|
||||||
|
|
||||||
/ {
|
|
||||||
combos {
|
|
||||||
compatible = "zmk,combos";
|
|
||||||
combo_ext_pwr {
|
|
||||||
timeout-ms = <50>;
|
|
||||||
key-positions = <1 2>;
|
|
||||||
bindings = <&ext_power EP_TOG>;
|
|
||||||
};
|
|
||||||
combo_bt_prv {
|
|
||||||
timeout-ms = <50>;
|
|
||||||
key-positions = <1 3>;
|
|
||||||
bindings = <&bt BT_PRV>;
|
|
||||||
};
|
|
||||||
combo_bt_nxt {
|
|
||||||
timeout-ms = <50>;
|
|
||||||
key-positions = <1 7>;
|
|
||||||
bindings = <&bt BT_NXT>;
|
|
||||||
};
|
|
||||||
combo_reset {
|
|
||||||
timeout-ms = <50>;
|
|
||||||
key-positions = <1 15>;
|
|
||||||
bindings = <&sys_reset>;
|
|
||||||
};
|
|
||||||
combo_btclr {
|
|
||||||
timeout-ms = <50>;
|
|
||||||
key-positions = <1 16>;
|
|
||||||
bindings = <&bt BT_CLR>;
|
|
||||||
};
|
|
||||||
combo_btldr {
|
|
||||||
timeout-ms = <50>;
|
|
||||||
key-positions = <1 18>;
|
|
||||||
bindings = <&bootloader>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
/ {
|
|
||||||
keymap {
|
|
||||||
compatible = "zmk,keymap";
|
|
||||||
|
|
||||||
|
|
||||||
default_layer {
|
|
||||||
// ┌───┬───┬───┬───┐
|
|
||||||
// │NUM│ / │ * │ - │
|
|
||||||
// ├───┼───┼───┼───┤
|
|
||||||
// │ 7 │ 8 │ 9 │ + │
|
|
||||||
// ├───┼───┼───┼─ ─┤
|
|
||||||
// │ 4 │ 5 │ 6 │ │
|
|
||||||
// ├───┼───┼───┼───┤
|
|
||||||
// │ 1 │ 2 │ 3 │RET│
|
|
||||||
// ├───┴───┼───┼─ ─┤
|
|
||||||
// │ 0 │ . │ │
|
|
||||||
// └───────┴───┴───┘
|
|
||||||
bindings = <
|
|
||||||
&kp KP_NUM &kp KP_DIVIDE &kp KP_MULTIPLY &kp KP_MINUS
|
|
||||||
&kp KP_N7 &kp KP_N8 &kp KP_N9 &kp KP_PLUS
|
|
||||||
&kp KP_N4 &kp KP_N5 &kp KP_N6 &trans
|
|
||||||
&kp KP_N1 &kp KP_N2 &kp KP_N3 &kp KP_ENTER
|
|
||||||
&kp KP_N0 &trans &kp KP_DOT &trans
|
|
||||||
>;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2020 Pete Johanson, Richard Jones
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: MIT
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <dt-bindings/zmk/matrix_transform.h>
|
|
||||||
#include "jnumpad.dtsi"
|
|
||||||
/ {
|
|
||||||
chosen {
|
|
||||||
zmk,kscan = &kscan0;
|
|
||||||
zephyr,display = &oled;
|
|
||||||
};
|
|
||||||
|
|
||||||
kscan0: kscan {
|
|
||||||
compatible = "zmk,kscan-gpio-matrix";
|
|
||||||
label = "KSCAN";
|
|
||||||
|
|
||||||
diode-direction = "col2row";
|
|
||||||
row-gpios
|
|
||||||
= <&pro_micro 18 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
||||||
, <&pro_micro 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
||||||
, <&pro_micro 14 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
||||||
, <&pro_micro 16 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
||||||
, <&pro_micro 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
||||||
;
|
|
||||||
|
|
||||||
col-gpios
|
|
||||||
= <&pro_micro 9 GPIO_ACTIVE_HIGH>
|
|
||||||
, <&pro_micro 8 GPIO_ACTIVE_HIGH>
|
|
||||||
, <&pro_micro 7 GPIO_ACTIVE_HIGH>
|
|
||||||
, <&pro_micro 6 GPIO_ACTIVE_HIGH>
|
|
||||||
;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# Copyright (c) 2020 Pete Johanson, Richard Jones
|
|
||||||
# SPDX-License-Identifier: MIT
|
|
||||||
|
|
||||||
if SHIELD_PSLGH
|
|
||||||
|
|
||||||
config ZMK_KEYBOARD_NAME
|
|
||||||
default "PSLGH"
|
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# Copyright (c) 2020 Pete Johanson, Richard Jones
|
|
||||||
# SPDX-License-Identifier: MIT
|
|
||||||
|
|
||||||
config SHIELD_PSLGH
|
|
||||||
def_bool $(shields_list_contains,pslgh)
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2020 Pete Johanson, Richard Jones
|
|
||||||
*
|
|
||||||
* 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 {
|
|
||||||
// -------------------
|
|
||||||
// | | | | | A | S | J | K | L |
|
|
||||||
// | UP |DOWN |ENTER| H | | | | | |
|
|
||||||
// ----------------------
|
|
||||||
bindings = <
|
|
||||||
&trans &trans &trans &trans &kp A &kp S &kp J &kp K &kp L
|
|
||||||
&trans &trans &kp RET &kp H &trans &trans &trans &trans &trans
|
|
||||||
&kp UARW &kp DARW &trans &trans &trans &trans &trans &trans &trans
|
|
||||||
>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2020 Pete Johanson, Richard Jones
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: MIT
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <dt-bindings/zmk/matrix-transform.h>
|
|
||||||
|
|
||||||
/ {
|
|
||||||
chosen {
|
|
||||||
zmk,kscan = &kscan0;
|
|
||||||
};
|
|
||||||
|
|
||||||
kscan0: kscan {
|
|
||||||
compatible = "zmk,kscan-gpio-matrix";
|
|
||||||
label = "KSCAN";
|
|
||||||
|
|
||||||
diode-direction = "col2row";
|
|
||||||
row-gpios
|
|
||||||
= <&pro_micro_d 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
||||||
, <&pro_micro_d 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
||||||
, <&pro_micro_d 16 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
|
||||||
;
|
|
||||||
|
|
||||||
col-gpios
|
|
||||||
= <&pro_micro_a 1 GPIO_ACTIVE_HIGH>
|
|
||||||
, <&pro_micro_a 2 GPIO_ACTIVE_HIGH>
|
|
||||||
, <&pro_micro_a 0 GPIO_ACTIVE_HIGH>
|
|
||||||
, <&pro_micro_d 14 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>
|
|
||||||
;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
bt_unpair_combo: bt_unpair_combo {
|
|
||||||
compatible = "zmk,bt-unpair-combo";
|
|
||||||
key-positions = <0 11>;
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
|
||||||
x x
|
|
||||||
x x
|
|
||||||
r1 x
|
|
||||||
a down
|
|
||||||
k up
|
|
||||||
j enter
|
|
||||||
s r2
|
|
||||||
a h
|
|
||||||
x x
|
|
||||||
x r3
|
|
||||||
*/
|
|
||||||
2957
docs/package-lock.json
generated
2957
docs/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user