forked from mirror/qmk_firmware
Compare commits
20 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a0b15d08bc | ||
|
|
3d591a2000 | ||
|
|
1e683923e1 | ||
|
|
3194862502 | ||
|
|
8c035c2116 | ||
|
|
91a9f9e492 | ||
|
|
ddeaa26fef | ||
|
|
f3a16ef21d | ||
|
|
99b5b9ab7f | ||
|
|
6a5610a8be | ||
|
|
acbeec29da | ||
|
|
7e35cdda8a | ||
|
|
dba60e2e65 | ||
|
|
c68281b353 | ||
|
|
84d44e6188 | ||
|
|
54e8fad959 | ||
|
|
2c847b0350 | ||
|
|
e1c869b8da | ||
|
|
9e0118172f | ||
|
|
4f9582da26 |
2
.github/workflows/auto_approve.yml
vendored
2
.github/workflows/auto_approve.yml
vendored
@@ -4,7 +4,7 @@ permissions: {}
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "*/5 * * * *"
|
||||
- cron: "*/30 * * * *"
|
||||
|
||||
jobs:
|
||||
automatic_approve:
|
||||
|
||||
50
.github/workflows/bootstrap_testing.yml
vendored
50
.github/workflows/bootstrap_testing.yml
vendored
@@ -4,20 +4,41 @@ on:
|
||||
push:
|
||||
branches: [master, develop, xap]
|
||||
paths:
|
||||
- "util/env-bootstrap.sh"
|
||||
- ".github/workflows/bootstrap_testing.yml"
|
||||
- 'util/env-bootstrap.sh'
|
||||
- '.github/workflows/bootstrap_testing.yml'
|
||||
pull_request:
|
||||
paths:
|
||||
- "util/env-bootstrap.sh"
|
||||
- ".github/workflows/bootstrap_testing.yml"
|
||||
- 'util/env-bootstrap.sh'
|
||||
- '.github/workflows/bootstrap_testing.yml'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
prep:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
outputs:
|
||||
any_changed: ${{ steps.file_changes.outputs.any_changed }}
|
||||
|
||||
steps:
|
||||
- name: Get changed files
|
||||
id: file_changes
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
uses: tj-actions/changed-files@v47
|
||||
with:
|
||||
use_rest_api: true
|
||||
files: |
|
||||
util/env-bootstrap.sh
|
||||
.github/workflows/bootstrap_testing.yml
|
||||
|
||||
bootstrap-test-linux:
|
||||
name: Bootstrap (Linux)
|
||||
|
||||
needs: prep
|
||||
if: ${{ github.event_name != 'pull_request' || needs.prep.outputs.any_changed == 'true' }}
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
@@ -141,6 +162,12 @@ jobs:
|
||||
bash /home/testuser/qmk_firmware/util/env-bootstrap.sh
|
||||
"
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo -u testuser bash -c "
|
||||
/home/testuser/.local/share/uv/tools/qmk/bin/python -m pip install -r /home/testuser/qmk_firmware/requirements.txt
|
||||
"
|
||||
|
||||
- name: Test QMK CLI
|
||||
run: |
|
||||
sudo -u testuser bash -c "
|
||||
@@ -157,6 +184,10 @@ jobs:
|
||||
|
||||
bootstrap-test-macos:
|
||||
name: Bootstrap (macOS)
|
||||
|
||||
needs: prep
|
||||
if: ${{ github.event_name != 'pull_request' || needs.prep.outputs.any_changed == 'true' }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -185,6 +216,10 @@ jobs:
|
||||
export CONFIRM=1
|
||||
sh ./util/env-bootstrap.sh
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
$HOME/.local/share/uv/tools/qmk/bin/python -m pip install -r requirements.txt
|
||||
|
||||
- name: Test QMK CLI
|
||||
run: |
|
||||
# Add QMK CLI to PATH (bootstrap script installs it to ~/.local/bin on macOS)
|
||||
@@ -198,6 +233,9 @@ jobs:
|
||||
bootstrap-test-windows:
|
||||
name: Bootstrap (Windows)
|
||||
|
||||
needs: prep
|
||||
if: ${{ github.event_name != 'pull_request' || needs.prep.outputs.any_changed == 'true' }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -235,6 +273,10 @@ jobs:
|
||||
export CONFIRM=1
|
||||
sh ./util/env-bootstrap.sh
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
/opt/uv/tools/qmk/Scripts/python -m pip install -r requirements.txt
|
||||
|
||||
- name: Test QMK CLI
|
||||
run: |
|
||||
# Add QMK CLI to PATH (bootstrap script installs it to /opt/uv/tools/bin on Windows MSYS2)
|
||||
|
||||
10
.github/workflows/ci_build_major_branch.yml
vendored
10
.github/workflows/ci_build_major_branch.yml
vendored
@@ -35,11 +35,6 @@ jobs:
|
||||
slice_length: ${{ steps.generate_slice_length.outputs.slice_length }}
|
||||
|
||||
steps:
|
||||
- name: Install prerequisites
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y jq
|
||||
|
||||
- name: Disable safe.directory check
|
||||
run: |
|
||||
git config --global --add safe.directory '*'
|
||||
@@ -47,6 +42,9 @@ jobs:
|
||||
- name: Checkout QMK Firmware
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip3 install -r requirements-dev.txt
|
||||
|
||||
- name: Determine concurrency
|
||||
id: generate_slice_length
|
||||
run: |
|
||||
@@ -87,7 +85,7 @@ jobs:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Download firmwares
|
||||
uses: actions/download-artifact@v6
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
pattern: firmware-*
|
||||
path: .
|
||||
|
||||
@@ -27,11 +27,6 @@ jobs:
|
||||
targets: ${{ steps.generate_targets.outputs.targets }}
|
||||
|
||||
steps:
|
||||
- name: Install prerequisites
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y jq
|
||||
|
||||
- name: Disable safe.directory check
|
||||
run: |
|
||||
git config --global --add safe.directory '*'
|
||||
@@ -39,6 +34,9 @@ jobs:
|
||||
- name: Checkout QMK Firmware
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip3 install -r requirements-dev.txt
|
||||
|
||||
- name: Generate build targets
|
||||
id: generate_targets
|
||||
run: |
|
||||
@@ -62,7 +60,7 @@ jobs:
|
||||
echo "targets=$(jq -c 'keys' targets.json)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Upload targets json
|
||||
uses: actions/upload-artifact@v5
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: targets-${{ inputs.keymap }}
|
||||
path: targets.json
|
||||
@@ -79,11 +77,6 @@ jobs:
|
||||
target: ${{ fromJson(needs.generate_targets.outputs.targets) }}
|
||||
|
||||
steps:
|
||||
- name: Install prerequisites
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y jq
|
||||
|
||||
- name: Disable safe.directory check
|
||||
run: |
|
||||
git config --global --add safe.directory '*'
|
||||
@@ -91,8 +84,11 @@ jobs:
|
||||
- name: Checkout QMK Firmware
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip3 install -r requirements-dev.txt
|
||||
|
||||
- name: Get target definitions
|
||||
uses: actions/download-artifact@v6
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
name: targets-${{ inputs.keymap }}
|
||||
path: .
|
||||
@@ -109,10 +105,15 @@ jobs:
|
||||
continue-on-error: true
|
||||
run: |
|
||||
export NCPUS=$(( $(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null) -1 ))
|
||||
qmk mass-compile -t -j $NCPUS -e DUMP_CI_METADATA=yes $(jq -r '.["${{ matrix.target }}"].targets' targets.json) || touch .failed
|
||||
targets=$(jq -r '.["${{ matrix.target }}"].targets' targets.json | tr ' ' '\n' | sort)
|
||||
if [ -z "${targets}" ]; then
|
||||
echo "Zero build targets detected"
|
||||
exit 0
|
||||
fi
|
||||
qmk mass-compile -t -j $NCPUS -e DUMP_CI_METADATA=yes $targets || touch .failed
|
||||
|
||||
- name: Upload binaries
|
||||
uses: actions/upload-artifact@v5
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: firmware-${{ inputs.keymap }}-${{ matrix.target }}
|
||||
if-no-files-found: ignore
|
||||
@@ -139,14 +140,14 @@ jobs:
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Download firmwares
|
||||
uses: actions/download-artifact@v6
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
pattern: firmware-${{ inputs.keymap }}-*
|
||||
path: .
|
||||
merge-multiple: true
|
||||
|
||||
- name: Upload all firmwares
|
||||
uses: actions/upload-artifact@v5
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: firmware-${{ inputs.keymap }}
|
||||
if-no-files-found: ignore
|
||||
|
||||
1
.github/workflows/cli.yml
vendored
1
.github/workflows/cli.yml
vendored
@@ -30,5 +30,6 @@ jobs:
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip3 install -r requirements-dev.txt
|
||||
|
||||
- name: Run tests
|
||||
run: qmk pytest
|
||||
|
||||
5
.github/workflows/docs.yml
vendored
5
.github/workflows/docs.yml
vendored
@@ -35,9 +35,10 @@ jobs:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip3 install -r requirements-dev.txt
|
||||
|
||||
- name: Install nvm
|
||||
run: |
|
||||
apt-get update && apt-get install -y rsync doxygen
|
||||
# install nvm
|
||||
touch $HOME/.bashrc
|
||||
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
||||
|
||||
|
||||
3
.github/workflows/regen.yml
vendored
3
.github/workflows/regen.yml
vendored
@@ -21,6 +21,9 @@ jobs:
|
||||
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip3 install -r requirements-dev.txt
|
||||
|
||||
- name: Run qmk generators
|
||||
run: |
|
||||
util/regen.sh
|
||||
|
||||
3
.github/workflows/regen_push.yml
vendored
3
.github/workflows/regen_push.yml
vendored
@@ -21,6 +21,9 @@ jobs:
|
||||
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip3 install -r requirements-dev.txt
|
||||
|
||||
- name: Run qmk generators
|
||||
run: |
|
||||
util/regen.sh
|
||||
|
||||
2
.github/workflows/unit_test.yml
vendored
2
.github/workflows/unit_test.yml
vendored
@@ -29,7 +29,9 @@ jobs:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip3 install -r requirements-dev.txt
|
||||
|
||||
- name: Run tests
|
||||
run: qmk test-c
|
||||
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -65,6 +65,8 @@ cmake-build-debug
|
||||
CMakeLists.txt
|
||||
*.pdf
|
||||
*.zip
|
||||
.env
|
||||
.envrc
|
||||
|
||||
# Let these ones be user specific, since we have so many different configurations
|
||||
*.code-workspace
|
||||
|
||||
@@ -292,7 +292,7 @@ Set the color of a single LED. This function does not immediately update the LED
|
||||
|
||||
---
|
||||
|
||||
### `void ws812_set_color_all(uint8_t red, uint8_t green, uint8_t blue)` {#api-ws2812-set-color-all}
|
||||
### `void ws2812_set_color_all(uint8_t red, uint8_t green, uint8_t blue)` {#api-ws2812-set-color-all}
|
||||
|
||||
Set the color of all LEDs.
|
||||
|
||||
|
||||
@@ -604,6 +604,20 @@ Or if the two keys are on opposite hands and the `PERMISSIVE_HOLD` option is
|
||||
enabled, this will produce `C` with `SFT_T(KC_A)` settled as held when that
|
||||
`KC_C` is released.
|
||||
|
||||
As an exception to the opposite hands rule, Chordal Hold supports combining
|
||||
multiple same-side modifiers within the tapping term. This is useful for
|
||||
multi-mod hotkeys like Ctrl + Shift + V. For instance with Chordal Hold together
|
||||
with either Permissive Hold or Hold On Other Key Press, the following input
|
||||
results in Ctrl + Shift + V being sent, supposing `J` and `K` are on the right
|
||||
hand side and `V` is on the left hand side:
|
||||
|
||||
- `SFT_T(KC_J)` Down
|
||||
- `CTL_T(KC_K)` Down
|
||||
- `KC_V` Down
|
||||
- `KC_V` Up
|
||||
- `SFT_T(KC_J)` Up
|
||||
- `CTL_T(KC_K)` Up
|
||||
|
||||
### Chordal Hold Handedness
|
||||
|
||||
Determining whether keys are on the same or opposite hands involves defining the
|
||||
@@ -779,7 +793,7 @@ Do not use `MOD_xxx` constants like `MOD_LSFT` or `MOD_RALT`, since they're 5-bi
|
||||
|
||||
[Auto Shift](features/auto_shift) has its own version of `retro tapping` called `retro shift`. It is extremely similar to `retro tapping`, but holding the key past `AUTO_SHIFT_TIMEOUT` results in the value it sends being shifted. Other configurations also affect it differently; see [here](features/auto_shift#retro-shift) for more information.
|
||||
|
||||
### Speculative Hold
|
||||
## Speculative Hold
|
||||
|
||||
Speculative Hold makes mod-tap keys more responsive by applying the modifier instantly on keydown, before the tap-hold decision is made. This is especially useful for actions like Shift+Click with a mouse, which can feel laggy with standard mod-taps.
|
||||
|
||||
@@ -820,4 +834,4 @@ Well, it's simple really: customization. But specifically, it depends on how you
|
||||
|
||||
## Why are there no `*_kb` or `*_user` functions?!
|
||||
|
||||
Unlike many of the other functions here, there isn't a need (or even reason) to have a quantum- or keyboard-level function. Only user-level functions are useful here, so there is no need to mark them as such.
|
||||
Unlike many of the other functions here, there isn't a need (or even reason) to have a quantum- or keyboard-level function. Only user-level functions are useful here, so there is no need to mark them as such.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||

|
||||
|
||||
A split keyboard with 5x7 including a thumbcluster, encoders on each side, per key RGB, and 2x I2C headers per side, supporiting 1.3"/.96" 128x64 OLEDs (the 1.3" is an SSH1106 OLED, refer to QMK documentation for limitations), .91" 128x32 OLEDs.
|
||||
A split keyboard with 5x7 including a thumbcluster, encoders on each side, per key RGB, and 2x I2C headers per side, supporting 1.3"/.96" 128x64 OLEDs (the 1.3" is an SH1106 OLED, refer to QMK documentation for limitations) and .91" 128x32 OLEDs.
|
||||
|
||||
* Keyboard Maintainer: [Aleblazer](https://github.com/Aleblazer/), [Discord Link](https://discord.gg/BCSbXwskVt)
|
||||
* Hardware Supported: Pro Micro and derivatives
|
||||
|
||||
@@ -32,9 +32,9 @@
|
||||
"rows": ["B6", "E6", "D4", "D7", "B4", "B5"]
|
||||
}
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [4, 1]
|
||||
}
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [4, 1]
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["F5", "F6", "F7", "B1", "B3", "B2", "B6", null],
|
||||
@@ -43,7 +43,7 @@
|
||||
"usb": {
|
||||
"device_version": "1.0.0",
|
||||
"pid": "0x0000",
|
||||
"vid": "0xFEED"
|
||||
"vid": "0x5347"
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
|
||||
@@ -13,18 +13,20 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(
|
||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_END, KC_INSERT, KC_DELETE, KC_KB_MUTE,
|
||||
KC_GRAVE, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS, KC_EQUAL, KC_BACKSPACE,
|
||||
LT(1, KC_TAB), KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LEFT_BRACKET, KC_RIGHT_BRACKET, KC_ENTER,
|
||||
KC_LEFT_CTRL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SEMICOLON, KC_QUOTE, KC_BACKSLASH,
|
||||
KC_LEFT_SHIFT, KC_LEFT_ANGLE_BRACKET, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMMA, KC_DOT, KC_SLASH, KC_RIGHT_SHIFT,
|
||||
CW_TOGG, KC_LWIN, KC_LEFT_ALT, KC_BACKSPACE, KC_LEFT_ALT, KC_SPACE, KC_RIGHT_ALT, KC_RIGHT_CTRL, KC_NO, KC_NO
|
||||
),
|
||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_END, KC_INSERT, KC_DELETE, KC_KB_MUTE,
|
||||
KC_GRAVE, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS, KC_EQUAL, KC_BACKSPACE,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LEFT_BRACKET, KC_RIGHT_BRACKET, KC_ENTER,
|
||||
OSM(MOD_LCTL), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SEMICOLON, KC_QUOTE, KC_BACKSLASH,
|
||||
OSM(MOD_LSFT), KC_LEFT_ANGLE_BRACKET, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMMA, KC_DOT, KC_SLASH, OSM(MOD_RSFT),
|
||||
CW_TOGG, OSM(MOD_LGUI), KC_LEFT_ALT, MO(1), OSM(MOD_LALT), KC_SPACE, OSM(MOD_RALT), KC_RIGHT_CTRL, KC_NO, KC_NO
|
||||
),
|
||||
|
||||
[1] = LAYOUT(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, KC_DEL, _______, _______, _______, _______, _______, _______
|
||||
)};
|
||||
QK_REBOOT, _______, _______, _______, _______, KC_PSCR, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
KC_TAB, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, KC_PGDN, _______, _______, _______, _______
|
||||
)
|
||||
};
|
||||
|
||||
17
keyboards/keebio/foldkb/rev2_1/config.h
Normal file
17
keyboards/keebio/foldkb/rev2_1/config.h
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright 2025 Keebio (@keebio)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
/* Defines for the split keyboard setup */
|
||||
#define SERIAL_USART_TX_PIN A9
|
||||
#define SERIAL_USART_RX_PIN A10
|
||||
#define SERIAL_USART_FULL_DUPLEX
|
||||
#define SERIAL_USART_PIN_SWAP
|
||||
|
||||
#define USB_VBUS_PIN A7
|
||||
|
||||
/* Defines for the RGB matrix */
|
||||
#define WS2812_PWM_DRIVER PWMD3
|
||||
#define WS2812_PWM_CHANNEL 3
|
||||
#define WS2812_DMAMUX_ID STM32_DMAMUX1_TIM3_UP
|
||||
10
keyboards/keebio/foldkb/rev2_1/halconf.h
Normal file
10
keyboards/keebio/foldkb/rev2_1/halconf.h
Normal file
@@ -0,0 +1,10 @@
|
||||
// Copyright 2025 Keebio (@keebio)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#define HAL_USE_SERIAL TRUE
|
||||
|
||||
#define HAL_USE_PWM TRUE
|
||||
|
||||
#include_next <halconf.h>
|
||||
279
keyboards/keebio/foldkb/rev2_1/keyboard.json
Normal file
279
keyboards/keebio/foldkb/rev2_1/keyboard.json
Normal file
@@ -0,0 +1,279 @@
|
||||
{
|
||||
"keyboard_name": "FoldKB Rev. 2.1",
|
||||
"bootloader": "stm32-dfu",
|
||||
"diode_direction": "COL2ROW",
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "A4", "pin_b": "A3"}
|
||||
]
|
||||
},
|
||||
"features": {
|
||||
"bootmagic": true,
|
||||
"encoder": true,
|
||||
"extrakey": true,
|
||||
"mousekey": true,
|
||||
"rgb_matrix": true
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["A6", "A15", "B3", "B4", "B5", "B6", "B7", "F0"],
|
||||
"rows": ["A5", "A0", "A1", "A2", "F1"]
|
||||
},
|
||||
"processor": "STM32G431",
|
||||
"rgb_matrix": {
|
||||
"animations": {
|
||||
"alphas_mods": true,
|
||||
"band_pinwheel_sat": true,
|
||||
"band_pinwheel_val": true,
|
||||
"band_sat": true,
|
||||
"band_spiral_sat": true,
|
||||
"band_spiral_val": true,
|
||||
"band_val": true,
|
||||
"breathing": true,
|
||||
"cycle_all": true,
|
||||
"cycle_left_right": true,
|
||||
"cycle_out_in": true,
|
||||
"cycle_out_in_dual": true,
|
||||
"cycle_pinwheel": true,
|
||||
"cycle_spiral": true,
|
||||
"cycle_up_down": true,
|
||||
"digital_rain": true,
|
||||
"dual_beacon": true,
|
||||
"flower_blooming": true,
|
||||
"gradient_left_right": true,
|
||||
"gradient_up_down": true,
|
||||
"hue_breathing": true,
|
||||
"hue_pendulum": true,
|
||||
"hue_wave": true,
|
||||
"jellybean_raindrops": true,
|
||||
"multisplash": true,
|
||||
"pixel_flow": true,
|
||||
"pixel_fractal": true,
|
||||
"pixel_rain": true,
|
||||
"rainbow_beacon": true,
|
||||
"rainbow_moving_chevron": true,
|
||||
"rainbow_pinwheels": true,
|
||||
"raindrops": true,
|
||||
"riverflow": true,
|
||||
"solid_multisplash": true,
|
||||
"solid_reactive": true,
|
||||
"solid_reactive_cross": true,
|
||||
"solid_reactive_multicross": true,
|
||||
"solid_reactive_multinexus": true,
|
||||
"solid_reactive_multiwide": true,
|
||||
"solid_reactive_nexus": true,
|
||||
"solid_reactive_simple": true,
|
||||
"solid_reactive_wide": true,
|
||||
"solid_splash": true,
|
||||
"splash": true,
|
||||
"starlight": true,
|
||||
"starlight_dual_hue": true,
|
||||
"starlight_dual_sat": true,
|
||||
"starlight_smooth": true,
|
||||
"typing_heatmap": true
|
||||
},
|
||||
"driver": "ws2812",
|
||||
"layout": [
|
||||
{"matrix": [0, 1], "x": 17, "y": 0, "flags": 4},
|
||||
{"matrix": [0, 2], "x": 31, "y": 0, "flags": 4},
|
||||
{"matrix": [0, 3], "x": 45, "y": 0, "flags": 4},
|
||||
{"matrix": [0, 4], "x": 59, "y": 0, "flags": 4},
|
||||
{"matrix": [0, 5], "x": 72, "y": 0, "flags": 4},
|
||||
{"matrix": [0, 6], "x": 86, "y": 0, "flags": 4},
|
||||
{"matrix": [0, 7], "x": 100, "y": 0, "flags": 4},
|
||||
{"matrix": [1, 7], "x": 100, "y": 16, "flags": 4},
|
||||
{"matrix": [1, 6], "x": 86, "y": 16, "flags": 4},
|
||||
{"matrix": [1, 5], "x": 72, "y": 16, "flags": 4},
|
||||
{"matrix": [1, 4], "x": 59, "y": 16, "flags": 4},
|
||||
{"matrix": [1, 3], "x": 45, "y": 16, "flags": 4},
|
||||
{"matrix": [1, 2], "x": 28, "y": 16, "flags": 4},
|
||||
{"matrix": [2, 2], "x": 26, "y": 32, "flags": 4},
|
||||
{"matrix": [2, 3], "x": 45, "y": 32, "flags": 4},
|
||||
{"matrix": [2, 4], "x": 59, "y": 32, "flags": 4},
|
||||
{"matrix": [2, 5], "x": 72, "y": 32, "flags": 4},
|
||||
{"matrix": [2, 6], "x": 86, "y": 32, "flags": 4},
|
||||
{"matrix": [2, 7], "x": 100, "y": 32, "flags": 4},
|
||||
{"matrix": [3, 7], "x": 100, "y": 48, "flags": 4},
|
||||
{"matrix": [3, 6], "x": 86, "y": 48, "flags": 4},
|
||||
{"matrix": [3, 5], "x": 72, "y": 48, "flags": 4},
|
||||
{"matrix": [3, 4], "x": 59, "y": 48, "flags": 4},
|
||||
{"matrix": [3, 3], "x": 45, "y": 48, "flags": 4},
|
||||
{"matrix": [3, 2], "x": 22, "y": 48, "flags": 4},
|
||||
{"matrix": [0, 0], "x": 0, "y": 0, "flags": 4},
|
||||
{"matrix": [1, 0], "x": 0, "y": 16, "flags": 4},
|
||||
{"matrix": [2, 0], "x": 0, "y": 32, "flags": 4},
|
||||
{"matrix": [3, 0], "x": 0, "y": 48, "flags": 4},
|
||||
{"matrix": [4, 0], "x": 0, "y": 64, "flags": 4},
|
||||
{"matrix": [4, 2], "x": 22, "y": 64, "flags": 4},
|
||||
{"matrix": [4, 3], "x": 40, "y": 64, "flags": 4},
|
||||
{"matrix": [4, 4], "x": 57, "y": 64, "flags": 4},
|
||||
{"matrix": [4, 5], "x": 72, "y": 64, "flags": 4},
|
||||
{"matrix": [4, 6], "x": 86, "y": 64, "flags": 4},
|
||||
{"matrix": [4, 7], "x": 100, "y": 64, "flags": 4},
|
||||
{"x": 93, "y": 48, "flags": 2},
|
||||
{"x": 65, "y": 64, "flags": 2},
|
||||
{"x": 31, "y": 64, "flags": 2},
|
||||
{"x": 10, "y": 64, "flags": 2},
|
||||
{"x": 0, "y": 24, "flags": 2},
|
||||
{"x": 24, "y": 0, "flags": 2},
|
||||
{"x": 65, "y": 0, "flags": 2},
|
||||
{"x": 90, "y": 8, "flags": 2},
|
||||
{"matrix": [5, 7], "x": 221, "y": 0, "flags": 4},
|
||||
{"matrix": [5, 6], "x": 207, "y": 0, "flags": 4},
|
||||
{"matrix": [5, 5], "x": 193, "y": 0, "flags": 4},
|
||||
{"matrix": [5, 4], "x": 179, "y": 0, "flags": 4},
|
||||
{"matrix": [5, 3], "x": 165, "y": 0, "flags": 4},
|
||||
{"matrix": [5, 2], "x": 152, "y": 0, "flags": 4},
|
||||
{"matrix": [5, 1], "x": 138, "y": 0, "flags": 4},
|
||||
{"matrix": [5, 0], "x": 124, "y": 0, "flags": 4},
|
||||
{"matrix": [6, 0], "x": 124, "y": 16, "flags": 4},
|
||||
{"matrix": [6, 1], "x": 138, "y": 16, "flags": 4},
|
||||
{"matrix": [6, 2], "x": 152, "y": 16, "flags": 4},
|
||||
{"matrix": [6, 3], "x": 165, "y": 16, "flags": 4},
|
||||
{"matrix": [6, 4], "x": 179, "y": 16, "flags": 4},
|
||||
{"matrix": [6, 5], "x": 193, "y": 16, "flags": 4},
|
||||
{"matrix": [6, 6], "x": 207, "y": 16, "flags": 4},
|
||||
{"matrix": [6, 7], "x": 224, "y": 16, "flags": 4},
|
||||
{"matrix": [7, 7], "x": 215, "y": 32, "flags": 4},
|
||||
{"matrix": [7, 5], "x": 193, "y": 32, "flags": 4},
|
||||
{"matrix": [7, 4], "x": 179, "y": 32, "flags": 4},
|
||||
{"matrix": [7, 3], "x": 165, "y": 32, "flags": 4},
|
||||
{"matrix": [7, 2], "x": 152, "y": 32, "flags": 4},
|
||||
{"matrix": [7, 1], "x": 138, "y": 32, "flags": 4},
|
||||
{"matrix": [7, 0], "x": 124, "y": 32, "flags": 4},
|
||||
{"matrix": [8, 0], "x": 124, "y": 48, "flags": 4},
|
||||
{"matrix": [8, 1], "x": 138, "y": 48, "flags": 4},
|
||||
{"matrix": [8, 2], "x": 152, "y": 48, "flags": 4},
|
||||
{"matrix": [8, 3], "x": 165, "y": 48, "flags": 4},
|
||||
{"matrix": [8, 4], "x": 179, "y": 48, "flags": 4},
|
||||
{"matrix": [8, 5], "x": 198, "y": 48, "flags": 4},
|
||||
{"matrix": [8, 7], "x": 217, "y": 48, "flags": 4},
|
||||
{"matrix": [9, 7], "x": 215, "y": 64, "flags": 4},
|
||||
{"matrix": [9, 5], "x": 198, "y": 64, "flags": 4},
|
||||
{"matrix": [9, 4], "x": 181, "y": 64, "flags": 4},
|
||||
{"matrix": [9, 3], "x": 164, "y": 64, "flags": 4},
|
||||
{"matrix": [9, 1], "x": 145, "y": 64, "flags": 4},
|
||||
{"matrix": [9, 0], "x": 136, "y": 64, "flags": 4},
|
||||
{"matrix": [9, 0], "x": 126, "y": 64, "flags": 4},
|
||||
{"x": 121, "y": 56, "flags": 2},
|
||||
{"x": 152, "y": 64, "flags": 2},
|
||||
{"x": 207, "y": 64, "flags": 2},
|
||||
{"x": 224, "y": 52, "flags": 2},
|
||||
{"x": 224, "y": 12, "flags": 2},
|
||||
{"x": 196, "y": 0, "flags": 2},
|
||||
{"x": 159, "y": 0, "flags": 2},
|
||||
{"x": 124, "y": 8, "flags": 2}
|
||||
],
|
||||
"max_brightness": 120,
|
||||
"sleep": true,
|
||||
"split_count": [44, 45]
|
||||
},
|
||||
"split": {
|
||||
"bootmagic": {
|
||||
"matrix": [5, 7]
|
||||
},
|
||||
"enabled": true,
|
||||
"handedness": {
|
||||
"pin": "A8"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"right": {
|
||||
"cols": ["A6", "A5", "A4", "A3", "A2", "B5", "B6", "B7"],
|
||||
"rows": ["A15", "B3", "B4", "A0", "A1"]
|
||||
}
|
||||
},
|
||||
"serial": {
|
||||
"driver": "usart"
|
||||
},
|
||||
"transport": {
|
||||
"sync": {
|
||||
"matrix_state": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"usb": {
|
||||
"device_version": "2.0.0",
|
||||
"pid": "0x2358"
|
||||
},
|
||||
"ws2812": {
|
||||
"driver": "pwm",
|
||||
"pin": "B0"
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
{"matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"matrix": [0, 1], "x": 1.25, "y": 0},
|
||||
{"matrix": [0, 2], "x": 2.25, "y": 0},
|
||||
{"matrix": [0, 3], "x": 3.25, "y": 0},
|
||||
{"matrix": [0, 4], "x": 4.25, "y": 0},
|
||||
{"matrix": [0, 5], "x": 5.25, "y": 0},
|
||||
{"matrix": [0, 6], "x": 6.25, "y": 0},
|
||||
{"matrix": [0, 7], "x": 7.25, "y": 0},
|
||||
{"matrix": [5, 0], "x": 9, "y": 0},
|
||||
{"matrix": [5, 1], "x": 10, "y": 0},
|
||||
{"matrix": [5, 2], "x": 11, "y": 0},
|
||||
{"matrix": [5, 3], "x": 12, "y": 0},
|
||||
{"matrix": [5, 4], "x": 13, "y": 0},
|
||||
{"matrix": [5, 5], "x": 14, "y": 0},
|
||||
{"matrix": [5, 6], "x": 15, "y": 0},
|
||||
{"matrix": [5, 7], "x": 16, "y": 0},
|
||||
{"matrix": [1, 0], "x": 0, "y": 1},
|
||||
{"matrix": [1, 2], "x": 1.75, "y": 1, "w": 1.5},
|
||||
{"matrix": [1, 3], "x": 3.25, "y": 1},
|
||||
{"matrix": [1, 4], "x": 4.25, "y": 1},
|
||||
{"matrix": [1, 5], "x": 5.25, "y": 1},
|
||||
{"matrix": [1, 6], "x": 6.25, "y": 1},
|
||||
{"matrix": [1, 7], "x": 7.25, "y": 1},
|
||||
{"matrix": [6, 0], "x": 9, "y": 1},
|
||||
{"matrix": [6, 1], "x": 10, "y": 1},
|
||||
{"matrix": [6, 2], "x": 11, "y": 1},
|
||||
{"matrix": [6, 3], "x": 12, "y": 1},
|
||||
{"matrix": [6, 4], "x": 13, "y": 1},
|
||||
{"matrix": [6, 5], "x": 14, "y": 1},
|
||||
{"matrix": [6, 6], "x": 15, "y": 1},
|
||||
{"matrix": [6, 7], "x": 16, "y": 1, "w": 1.5},
|
||||
{"matrix": [2, 0], "x": 0, "y": 2},
|
||||
{"matrix": [2, 2], "x": 1.5, "y": 2, "w": 1.75},
|
||||
{"matrix": [2, 3], "x": 3.25, "y": 2},
|
||||
{"matrix": [2, 4], "x": 4.25, "y": 2},
|
||||
{"matrix": [2, 5], "x": 5.25, "y": 2},
|
||||
{"matrix": [2, 6], "x": 6.25, "y": 2},
|
||||
{"matrix": [2, 7], "x": 7.25, "y": 2},
|
||||
{"matrix": [7, 0], "x": 9, "y": 2},
|
||||
{"matrix": [7, 1], "x": 10, "y": 2},
|
||||
{"matrix": [7, 2], "x": 11, "y": 2},
|
||||
{"matrix": [7, 3], "x": 12, "y": 2},
|
||||
{"matrix": [7, 4], "x": 13, "y": 2},
|
||||
{"matrix": [7, 5], "x": 14, "y": 2},
|
||||
{"matrix": [7, 7], "x": 15, "y": 2, "w": 2.25},
|
||||
{"matrix": [3, 0], "x": 0, "y": 3},
|
||||
{"matrix": [3, 2], "x": 1, "y": 3, "w": 2.25},
|
||||
{"matrix": [3, 3], "x": 3.25, "y": 3},
|
||||
{"matrix": [3, 4], "x": 4.25, "y": 3},
|
||||
{"matrix": [3, 5], "x": 5.25, "y": 3},
|
||||
{"matrix": [3, 6], "x": 6.25, "y": 3},
|
||||
{"matrix": [3, 7], "x": 7.25, "y": 3},
|
||||
{"matrix": [8, 0], "x": 9, "y": 3},
|
||||
{"matrix": [8, 1], "x": 10, "y": 3},
|
||||
{"matrix": [8, 2], "x": 11, "y": 3},
|
||||
{"matrix": [8, 3], "x": 12, "y": 3},
|
||||
{"matrix": [8, 4], "x": 13, "y": 3},
|
||||
{"matrix": [8, 5], "x": 14, "y": 3, "w": 1.75},
|
||||
{"matrix": [8, 7], "x": 15.75, "y": 3},
|
||||
{"matrix": [4, 0], "x": 0, "y": 4},
|
||||
{"matrix": [4, 2], "x": 1.5, "y": 4, "w": 1.25},
|
||||
{"matrix": [4, 3], "x": 2.75, "y": 4, "w": 1.25},
|
||||
{"matrix": [4, 4], "x": 4, "y": 4, "w": 1.25},
|
||||
{"matrix": [4, 5], "x": 5.25, "y": 4},
|
||||
{"matrix": [4, 6], "x": 6.25, "y": 4},
|
||||
{"matrix": [4, 7], "x": 7.25, "y": 4},
|
||||
{"matrix": [9, 0], "x": 9, "y": 4, "w": 1.25},
|
||||
{"matrix": [9, 1], "x": 10.25, "y": 4, "w": 1.5},
|
||||
{"matrix": [9, 3], "x": 11.75, "y": 4, "w": 1.25},
|
||||
{"matrix": [9, 4], "x": 13, "y": 4, "w": 1.25},
|
||||
{"matrix": [9, 5], "x": 14.25, "y": 4, "w": 1.25},
|
||||
{"matrix": [9, 7], "x": 15.5, "y": 4, "w": 1.25}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
21
keyboards/keebio/foldkb/rev2_1/keymaps/default/keymap.c
Normal file
21
keyboards/keebio/foldkb/rev2_1/keymaps/default/keymap.c
Normal file
@@ -0,0 +1,21 @@
|
||||
// Copyright 2025 Keebio (@keebio)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(
|
||||
KC_MUTE, KC_ESC, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC,
|
||||
KC_HOME, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS,
|
||||
KC_END, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
KC_PGUP, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1),
|
||||
KC_PGDN, KC_LCTL, KC_LGUI, KC_LALT, MO(1), KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_RGUI, KC_MENU, KC_RCTL
|
||||
),
|
||||
[1] = LAYOUT(
|
||||
KC_MUTE, QK_BOOT, KC_F12, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, _______, KC_DEL,
|
||||
RM_TOGG, _______, RM_SATD, RM_SATU, _______, _______, _______, _______, KC_7, KC_8, KC_9, _______, _______, _______, _______,
|
||||
RM_NEXT, _______, RM_VALD, RM_VALU, _______, _______, _______, _______, KC_4, KC_5, KC_6, _______, _______, _______,
|
||||
KC_VOLU, _______, RM_HUED, RM_HUEU, _______, _______, _______, _______, KC_1, KC_2, KC_3, _______, _______, _______,
|
||||
KC_VOLD, _______, RM_SPDD, RM_SPDU, _______, _______, _______, _______, KC_0, _______, _______, _______, _______
|
||||
),
|
||||
};
|
||||
14
keyboards/keebio/foldkb/rev2_1/mcuconf.h
Normal file
14
keyboards/keebio/foldkb/rev2_1/mcuconf.h
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright 2025 Keebio (@keebio)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include_next <mcuconf.h>
|
||||
|
||||
/* enable USART1, used for split comms */
|
||||
#undef STM32_SERIAL_USE_USART1
|
||||
#define STM32_SERIAL_USE_USART1 TRUE
|
||||
|
||||
/* enable TIM3, used for RGB LED PWM driver */
|
||||
#undef STM32_PWM_USE_TIM3
|
||||
#define STM32_PWM_USE_TIM3 TRUE
|
||||
29
keyboards/keebio/foldkb/rev2_1/rev2_1.c
Normal file
29
keyboards/keebio/foldkb/rev2_1/rev2_1.c
Normal file
@@ -0,0 +1,29 @@
|
||||
// Copyright 2025 Keebio (@keebio)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
void keyboard_pre_init_kb(void) {
|
||||
// Disable the PD peripheral in pre-init because its pins are being used in the matrix:
|
||||
PWR->CR3 |= PWR_CR3_UCPD_DBDIS;
|
||||
// Call the corresponding _user() function (see https://docs.qmk.fm/#/custom_quantum_functions)
|
||||
keyboard_pre_init_user();
|
||||
}
|
||||
|
||||
bool encoder_update_kb(uint8_t index, bool clockwise) {
|
||||
if (!encoder_update_user(index, clockwise)) { return false; }
|
||||
if (index == 0) {
|
||||
if (clockwise) {
|
||||
tap_code(KC_VOLU);
|
||||
} else {
|
||||
tap_code(KC_VOLD);
|
||||
}
|
||||
} else if (index == 1) {
|
||||
if (clockwise) {
|
||||
tap_code(KC_PGDN);
|
||||
} else {
|
||||
tap_code(KC_PGUP);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -87,7 +87,7 @@ def check_udev_rules():
|
||||
line = line.strip()
|
||||
if not line.startswith("#") and len(line):
|
||||
current_rules.add(line)
|
||||
except PermissionError:
|
||||
except (PermissionError, FileNotFoundError):
|
||||
cli.log.debug("Failed to read: %s", rule_file)
|
||||
|
||||
# Check if the desired rules are among the currently present rules
|
||||
|
||||
@@ -60,7 +60,7 @@ static void default_layer_state_set(layer_state_t state) {
|
||||
* Print out the hex value of the 32-bit default layer state, as well as the value of the highest bit.
|
||||
*/
|
||||
void default_layer_debug(void) {
|
||||
ac_dprintf("%08hX(%u)", default_layer_state, get_highest_layer(default_layer_state));
|
||||
ac_dprintf("%08lX(%u)", (uint32_t)default_layer_state, get_highest_layer(default_layer_state));
|
||||
}
|
||||
|
||||
/** \brief Default Layer Set
|
||||
@@ -231,7 +231,7 @@ void layer_xor(layer_state_t state) {
|
||||
* Print out the hex value of the 32-bit layer state, as well as the value of the highest bit.
|
||||
*/
|
||||
void layer_debug(void) {
|
||||
ac_dprintf("%08hX(%u)", layer_state, get_highest_layer(layer_state));
|
||||
ac_dprintf("%08lX(%u)", (uint32_t)layer_state, get_highest_layer(layer_state));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -32,7 +32,7 @@ void process_rgb_matrix_typing_heatmap(uint8_t row, uint8_t col) {
|
||||
if (i_row == row && i_col == col) {
|
||||
g_rgb_frame_buffer[row][col] = qadd8(g_rgb_frame_buffer[row][col], RGB_MATRIX_TYPING_HEATMAP_INCREASE_STEP);
|
||||
} else {
|
||||
# define LED_DISTANCE(led_a, led_b) sqrt16(((int16_t)(led_a.x - led_b.x) * (int16_t)(led_a.x - led_b.x)) + ((int16_t)(led_a.y - led_b.y) * (int16_t)(led_a.y - led_b.y)))
|
||||
# define LED_DISTANCE(led_a, led_b) sqrt16(((int32_t)(led_a.x - led_b.x) * (int32_t)(led_a.x - led_b.x)) + ((int32_t)(led_a.y - led_b.y) * (int32_t)(led_a.y - led_b.y)))
|
||||
uint8_t distance = LED_DISTANCE(g_led_config.point[g_led_config.matrix_co[row][col]], g_led_config.point[g_led_config.matrix_co[i_row][i_col]]);
|
||||
# undef LED_DISTANCE
|
||||
if (distance <= RGB_MATRIX_TYPING_HEATMAP_SPREAD) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2025 QMK
|
||||
// Copyright 2026 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -281,6 +281,10 @@ void send_nibble(uint8_t number) {
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(__AVR_ATmega32U4__)
|
||||
# include <avr/io.h>
|
||||
#endif
|
||||
|
||||
void tap_random_base64(void) {
|
||||
#if defined(__AVR_ATmega32U4__)
|
||||
uint8_t key = (TCNT0 + TCNT1 + TCNT3 + TCNT4) % 64;
|
||||
|
||||
@@ -230,7 +230,7 @@ __EOT__
|
||||
*debian* | *ubuntu*) echo "zstd build-essential clang-format diffutils wget unzip zip libhidapi-hidraw0 dos2unix git" ;;
|
||||
*fedora*) echo "zstd clang diffutils which gcc git wget unzip zip hidapi dos2unix libusb-devel libusb1-devel libusb-compat-0.1-devel libusb0-devel git epel-release" ;;
|
||||
*suse*) echo "zstd clang diffutils wget unzip zip libhidapi-hidraw0 dos2unix git libusb-1_0-devel gzip which" ;;
|
||||
*gentoo*) echo "zstd diffutils wget unzip zip dev-libs/hidapi dos2unix dev-vcs/git dev-libs/libusb app-arch/gzip which" ;;
|
||||
*gentoo*) echo "zstd sys-apps/diffutils wget unzip zip dev-libs/hidapi dos2unix dev-vcs/git dev-libs/libusb app-arch/gzip which" ;;
|
||||
*)
|
||||
echo >&2
|
||||
echo "Sorry, we don't recognize your distribution." >&2
|
||||
|
||||
Reference in New Issue
Block a user