Compare commits

...

11 Commits

Author SHA1 Message Date
Piervit 6a5610a8be Fix functions layer_debug and default_layer_debug (#25913)
Co-authored-by: Joel Challis <git@zvecr.com>
2026-01-01 00:37:25 -08:00
Joel Challis acbeec29da Reduce frequency of automatic workflow run approval (#25896) 2025-12-25 00:24:50 +00:00
Danny 7e35cdda8a Add FoldKB Rev. 2.1 with added underglow RGB LEDs (#25885) 2025-12-23 00:00:57 +00:00
Joel Challis dba60e2e65 Re-fix building of XAP keymaps on master/develop (#25892) 2025-12-21 15:07:40 +11:00
Joel Challis c68281b353 Handle building of XAP keymaps on master/develop (#25848) 2025-12-21 07:33:58 +11:00
Joel Challis 84d44e6188 Update bootstrap_testing.yml 2025-12-19 02:26:58 +00:00
Joel Challis 54e8fad959 Ignore merge commits on bootstrap testing PRs (#25884) 2025-12-19 02:23:29 +00:00
Joel Challis 2c847b0350 Consistently install branch specific dependencies in CI (#25874) 2025-12-15 00:21:06 +00:00
dependabot[bot] e1c869b8da Bump actions/download-artifact from 6 to 7 (#25873)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 6 to 7.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-12 21:16:52 +00:00
dependabot[bot] 9e0118172f Bump actions/upload-artifact from 5 to 6 (#25872)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-12 20:11:19 +00:00
Joel Challis 4f9582da26 Install branch specific dependencies as part of bootstrap testing (#25871) 2025-12-12 18:30:46 +00:00
17 changed files with 453 additions and 32 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ permissions: {}
on:
schedule:
- cron: "*/5 * * * *"
- cron: "*/30 * * * *"
jobs:
automatic_approve:
+46 -4
View File
@@ -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)
+4 -6
View File
@@ -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
View File
@@ -30,5 +30,6 @@ jobs:
- name: Install dependencies
run: pip3 install -r requirements-dev.txt
- name: Run tests
run: qmk pytest
+3 -2
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
+17
View 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
View 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>
@@ -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}
]
}
}
}
@@ -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
View 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
View 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;
}
+2 -2
View File
@@ -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 -1
View File
@@ -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