From 6ccf3dd3b2a91ef824241faca9dcf9d99c5d1015 Mon Sep 17 00:00:00 2001 From: CJ Pais Date: Mon, 14 Apr 2025 13:46:21 -0700 Subject: [PATCH 1/9] initial footy --- keyboards/handwired/footy/config.h | 36 +++++++++++++++++++ keyboards/handwired/footy/keyboard.json | 35 ++++++++++++++++++ .../handwired/footy/keymaps/default/keymap.c | 7 ++++ .../handwired/footy/keymaps/handy/keymap.c | 7 ++++ .../handwired/footy/keymaps/handy/keymap.json | 7 ++++ .../footy/keymaps/superwhisper/keymap.c | 7 ++++ .../footy/keymaps/superwhisper/keymap.json | 7 ++++ keyboards/handwired/footy/readme.md | 19 ++++++++++ 8 files changed, 125 insertions(+) create mode 100644 keyboards/handwired/footy/config.h create mode 100644 keyboards/handwired/footy/keyboard.json create mode 100644 keyboards/handwired/footy/keymaps/default/keymap.c create mode 100644 keyboards/handwired/footy/keymaps/handy/keymap.c create mode 100644 keyboards/handwired/footy/keymaps/handy/keymap.json create mode 100644 keyboards/handwired/footy/keymaps/superwhisper/keymap.c create mode 100644 keyboards/handwired/footy/keymaps/superwhisper/keymap.json create mode 100644 keyboards/handwired/footy/readme.md diff --git a/keyboards/handwired/footy/config.h b/keyboards/handwired/footy/config.h new file mode 100644 index 000000000000..e3f00a379beb --- /dev/null +++ b/keyboards/handwired/footy/config.h @@ -0,0 +1,36 @@ +/* +Copyright 2015 Jun Wako + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + +#pragma once + +#define PERMISSIVE_HOLD + +#define QMK_WAITING_TEST_BUSY_PIN GP7 +#define QMK_WAITING_TEST_YIELD_PIN GP8 +#define USB_VBUS_PIN GP9 + +#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET +#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED GP25 +#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U + +#define BACKLIGHT_PWM_CHANNEL RP2040_PWM_CHANNEL_B + +#define AUDIO_PIN GP16 +#define AUDIO_PWM_DRIVER PWMD0 +#define AUDIO_PWM_CHANNEL RP2040_PWM_CHANNEL_A + +#define ADC_PIN GP26 \ No newline at end of file diff --git a/keyboards/handwired/footy/keyboard.json b/keyboards/handwired/footy/keyboard.json new file mode 100644 index 000000000000..78d562007c5e --- /dev/null +++ b/keyboards/handwired/footy/keyboard.json @@ -0,0 +1,35 @@ +{ + "keyboard_name": "Footy", + "manufacturer": "CJ Pais", + "url": "", + "maintainer": "cjpais", + "processor": "RP2040", + "bootloader": "rp2040", + "usb": { + "vid": "0x636A", + "pid": "0x0001", + "device_version": "1.0.0" + }, + "diode_direction": "COL2ROW", + "matrix_pins": { + "cols": ["GP11", "GP10", "GP15"], + "rows": ["GP14"] + }, + "features": { + "bootmagic": false, + "mousekey": false, + "extrakey": true, + "console": false, + "command": false, + "nkro": false + }, + "layouts": { + "LAYOUT_1x3": { + "layout": [ + {"x": 0, "y": 0, "matrix": [0, 0]}, + {"x": 0, "y": 1, "matrix": [0, 1]}, + {"x": 0, "y": 2, "matrix": [0, 2]} + ] + } + } +} diff --git a/keyboards/handwired/footy/keymaps/default/keymap.c b/keyboards/handwired/footy/keymaps/default/keymap.c new file mode 100644 index 000000000000..7b1675b0db45 --- /dev/null +++ b/keyboards/handwired/footy/keymaps/default/keymap.c @@ -0,0 +1,7 @@ +// Copyright 2020 QMK +// SPDX-License-Identifier: GPL-2.0-or-later +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + LAYOUT_1x3( KC_A, KC_B, KC_C ) +}; diff --git a/keyboards/handwired/footy/keymaps/handy/keymap.c b/keyboards/handwired/footy/keymaps/handy/keymap.c new file mode 100644 index 000000000000..6d76439bc724 --- /dev/null +++ b/keyboards/handwired/footy/keymaps/handy/keymap.c @@ -0,0 +1,7 @@ +// Copyright 2020 QMK +// SPDX-License-Identifier: GPL-2.0-or-later +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + LAYOUT_1x3( KC_NO, MT(MOD_RCTL | MOD_RGUI , KC_NO), KC_NO ) +}; diff --git a/keyboards/handwired/footy/keymaps/handy/keymap.json b/keyboards/handwired/footy/keymaps/handy/keymap.json new file mode 100644 index 000000000000..a9146eba3fb7 --- /dev/null +++ b/keyboards/handwired/footy/keymaps/handy/keymap.json @@ -0,0 +1,7 @@ +{ + "config": { + "tapping": { + "term": 50 + } + } +} diff --git a/keyboards/handwired/footy/keymaps/superwhisper/keymap.c b/keyboards/handwired/footy/keymaps/superwhisper/keymap.c new file mode 100644 index 000000000000..2fc26039deee --- /dev/null +++ b/keyboards/handwired/footy/keymaps/superwhisper/keymap.c @@ -0,0 +1,7 @@ +// Copyright 2020 QMK +// SPDX-License-Identifier: GPL-2.0-or-later +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + LAYOUT_1x3( KC_NO, MT(LOPT(KC_SPACE ), KC_NO), KC_NO ) +}; diff --git a/keyboards/handwired/footy/keymaps/superwhisper/keymap.json b/keyboards/handwired/footy/keymaps/superwhisper/keymap.json new file mode 100644 index 000000000000..a9146eba3fb7 --- /dev/null +++ b/keyboards/handwired/footy/keymaps/superwhisper/keymap.json @@ -0,0 +1,7 @@ +{ + "config": { + "tapping": { + "term": 50 + } + } +} diff --git a/keyboards/handwired/footy/readme.md b/keyboards/handwired/footy/readme.md new file mode 100644 index 000000000000..8c80a35569a1 --- /dev/null +++ b/keyboards/handwired/footy/readme.md @@ -0,0 +1,19 @@ +# Footy + +Footy is a foot pedal built on top of the [keeb.io Stampy](https://keeb.io/products/stampy-rp2040-usb-c-controller-board-for-handwiring) microcontroller. It is intended to be used with a speech to text application like 'handy' or superwhisper. + +The case can be 3D printed from [here](https://makerworld.com/en/models/1185240-footy). The design is a fork of this [adafruit foot pedal](https://learn.adafruit.com/USB-foot-switch-circuit-python/overview). + +The default keymap is for the letters A, B, and C to help you identify which switches are connected to which pins on the microcontroller. B is the center pin. + +## Keymap + +Right now there are two primary keymaps, one for 'handy' and one for 'superwhisper'. + +Handy's default keymap is for the center switch to be RCTRL + RGUI. + +Superwhisper's default keymap is for the center switch to be LOPT + SPACE. + +## Build FW + +`qmk compile -kb handwired/footy -km handy` \ No newline at end of file From 8135f6e2c98e8eeca86869f7c3e3db490e947a55 Mon Sep 17 00:00:00 2001 From: CJ Pais Date: Mon, 14 Apr 2025 16:28:50 -0700 Subject: [PATCH 2/9] clean up --- keyboards/handwired/footy/config.h | 33 +-------------- keyboards/handwired/footy/keyboard.json | 40 +++++++++---------- .../handwired/footy/keymaps/default/keymap.c | 3 +- .../handwired/footy/keymaps/handy/keymap.c | 3 +- .../footy/keymaps/superwhisper/keymap.c | 3 +- keyboards/handwired/footy/readme.md | 37 ++++++++++++++--- 6 files changed, 56 insertions(+), 63 deletions(-) diff --git a/keyboards/handwired/footy/config.h b/keyboards/handwired/footy/config.h index e3f00a379beb..cea05c507032 100644 --- a/keyboards/handwired/footy/config.h +++ b/keyboards/handwired/footy/config.h @@ -1,36 +1,7 @@ -/* -Copyright 2015 Jun Wako - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ - +// SPDX-License-Identifier: GPL-2.0-or-later #pragma once -#define PERMISSIVE_HOLD - -#define QMK_WAITING_TEST_BUSY_PIN GP7 -#define QMK_WAITING_TEST_YIELD_PIN GP8 #define USB_VBUS_PIN GP9 #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET -#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED GP25 -#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U - -#define BACKLIGHT_PWM_CHANNEL RP2040_PWM_CHANNEL_B - -#define AUDIO_PIN GP16 -#define AUDIO_PWM_DRIVER PWMD0 -#define AUDIO_PWM_CHANNEL RP2040_PWM_CHANNEL_A - -#define ADC_PIN GP26 \ No newline at end of file +#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U \ No newline at end of file diff --git a/keyboards/handwired/footy/keyboard.json b/keyboards/handwired/footy/keyboard.json index 78d562007c5e..ccc9496f890a 100644 --- a/keyboards/handwired/footy/keyboard.json +++ b/keyboards/handwired/footy/keyboard.json @@ -1,35 +1,35 @@ { - "keyboard_name": "Footy", "manufacturer": "CJ Pais", - "url": "", + "keyboard_name": "Footy", "maintainer": "cjpais", - "processor": "RP2040", "bootloader": "rp2040", - "usb": { - "vid": "0x636A", - "pid": "0x0001", - "device_version": "1.0.0" - }, "diode_direction": "COL2ROW", - "matrix_pins": { - "cols": ["GP11", "GP10", "GP15"], - "rows": ["GP14"] - }, "features": { "bootmagic": false, - "mousekey": false, - "extrakey": true, - "console": false, "command": false, + "console": false, + "extrakey": true, + "mousekey": true, "nkro": false }, + "matrix_pins": { + "cols": ["GP11", "GP10", "GP15"], + "rows": ["GP14"] + }, + "processor": "RP2040", + "url": "https://www.dumpster.page/footy", + "usb": { + "device_version": "1.0.0", + "pid": "0x0001", + "vid": "0x636A" + }, "layouts": { - "LAYOUT_1x3": { + "LAYOUT": { "layout": [ - {"x": 0, "y": 0, "matrix": [0, 0]}, - {"x": 0, "y": 1, "matrix": [0, 1]}, - {"x": 0, "y": 2, "matrix": [0, 2]} + {"matrix": [0, 0], "x": 0, "y": 0}, + {"matrix": [0, 1], "x": 1, "y": 0}, + {"matrix": [0, 2], "x": 2, "y": 0} ] } } -} +} \ No newline at end of file diff --git a/keyboards/handwired/footy/keymaps/default/keymap.c b/keyboards/handwired/footy/keymaps/default/keymap.c index 7b1675b0db45..414051eae285 100644 --- a/keyboards/handwired/footy/keymaps/default/keymap.c +++ b/keyboards/handwired/footy/keymaps/default/keymap.c @@ -1,7 +1,6 @@ -// Copyright 2020 QMK // SPDX-License-Identifier: GPL-2.0-or-later #include QMK_KEYBOARD_H const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - LAYOUT_1x3( KC_A, KC_B, KC_C ) + LAYOUT( KC_A, KC_B, KC_C ) }; diff --git a/keyboards/handwired/footy/keymaps/handy/keymap.c b/keyboards/handwired/footy/keymaps/handy/keymap.c index 6d76439bc724..4cff1203b2e9 100644 --- a/keyboards/handwired/footy/keymaps/handy/keymap.c +++ b/keyboards/handwired/footy/keymaps/handy/keymap.c @@ -1,7 +1,6 @@ -// Copyright 2020 QMK // SPDX-License-Identifier: GPL-2.0-or-later #include QMK_KEYBOARD_H const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - LAYOUT_1x3( KC_NO, MT(MOD_RCTL | MOD_RGUI , KC_NO), KC_NO ) + LAYOUT( KC_NO, MT(MOD_RCTL | MOD_RGUI , KC_NO), KC_NO ) }; diff --git a/keyboards/handwired/footy/keymaps/superwhisper/keymap.c b/keyboards/handwired/footy/keymaps/superwhisper/keymap.c index 2fc26039deee..9f0f381bc9cb 100644 --- a/keyboards/handwired/footy/keymaps/superwhisper/keymap.c +++ b/keyboards/handwired/footy/keymaps/superwhisper/keymap.c @@ -1,7 +1,6 @@ -// Copyright 2020 QMK // SPDX-License-Identifier: GPL-2.0-or-later #include QMK_KEYBOARD_H const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - LAYOUT_1x3( KC_NO, MT(LOPT(KC_SPACE ), KC_NO), KC_NO ) + LAYOUT( KC_NO, MT(LOPT(KC_SPACE ), KC_NO), KC_NO ) }; diff --git a/keyboards/handwired/footy/readme.md b/keyboards/handwired/footy/readme.md index 8c80a35569a1..1865a8e761aa 100644 --- a/keyboards/handwired/footy/readme.md +++ b/keyboards/handwired/footy/readme.md @@ -1,12 +1,34 @@ # Footy -Footy is a foot pedal built on top of the [keeb.io Stampy](https://keeb.io/products/stampy-rp2040-usb-c-controller-board-for-handwiring) microcontroller. It is intended to be used with a speech to text application like 'handy' or superwhisper. +![Footy Foot Pedal](https://i.imgur.com/ZdvlgRB.jpeg) -The case can be 3D printed from [here](https://makerworld.com/en/models/1185240-footy). The design is a fork of this [adafruit foot pedal](https://learn.adafruit.com/USB-foot-switch-circuit-python/overview). +*Footy is a foot pedal intended to be used with a speech to text application like 'handy' or superwhisper. Initially developed as an assistive technology device for those with limited typing abilities.* -The default keymap is for the letters A, B, and C to help you identify which switches are connected to which pins on the microcontroller. B is the center pin. +* Keyboard Maintainer: [CJ Pais](https://github.com/cjpais) +* Hardware Supported: [Keebio Stampy](https://keeb.io/products/stampy-rp2040-usb-c-controller-board-for-handwiring) +* Hardware Availability: [3D printed case](https://makerworld.com/en/models/1185240-footy) -## Keymap +Make example for this keyboard (after setting up your build environment): + + make handwired/footy:default + +Flashing example for this keyboard (enter the bootloader first): + + make handwired/footy:default:flash + +or + + Drag and drop .uf2 file on the removable storage + +See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). + +## Bootloader + +Enter the bootloader in 3 ways: + +* **Physical reset button**: Briefly double press the button on the back of the PCB + +## Keymaps Right now there are two primary keymaps, one for 'handy' and one for 'superwhisper'. @@ -14,6 +36,9 @@ Handy's default keymap is for the center switch to be RCTRL + RGUI. Superwhisper's default keymap is for the center switch to be LOPT + SPACE. -## Build FW +You can build either of these firmware images by running the following commands: -`qmk compile -kb handwired/footy -km handy` \ No newline at end of file +``` +make handwired/footy:handy +make handwired/footy:superwhisper +``` \ No newline at end of file From 93f2ecc286d10e5c5c218314253fea1d3a5b997f Mon Sep 17 00:00:00 2001 From: CJ Pais Date: Fri, 18 Apr 2025 12:17:08 -0700 Subject: [PATCH 3/9] Apply suggestions from code review Co-authored-by: jack --- keyboards/handwired/footy/config.h | 2 +- keyboards/handwired/footy/keyboard.json | 7 ++----- keyboards/handwired/footy/readme.md | 4 +--- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/keyboards/handwired/footy/config.h b/keyboards/handwired/footy/config.h index cea05c507032..315fc9cc9159 100644 --- a/keyboards/handwired/footy/config.h +++ b/keyboards/handwired/footy/config.h @@ -4,4 +4,4 @@ #define USB_VBUS_PIN GP9 #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET -#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U \ No newline at end of file +#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U diff --git a/keyboards/handwired/footy/keyboard.json b/keyboards/handwired/footy/keyboard.json index ccc9496f890a..9a51ae04f777 100644 --- a/keyboards/handwired/footy/keyboard.json +++ b/keyboards/handwired/footy/keyboard.json @@ -5,12 +5,9 @@ "bootloader": "rp2040", "diode_direction": "COL2ROW", "features": { - "bootmagic": false, - "command": false, - "console": false, + "bootmagic": true, "extrakey": true, "mousekey": true, - "nkro": false }, "matrix_pins": { "cols": ["GP11", "GP10", "GP15"], @@ -32,4 +29,4 @@ ] } } -} \ No newline at end of file +} diff --git a/keyboards/handwired/footy/readme.md b/keyboards/handwired/footy/readme.md index 1865a8e761aa..fc54b29d58d3 100644 --- a/keyboards/handwired/footy/readme.md +++ b/keyboards/handwired/footy/readme.md @@ -16,9 +16,7 @@ Flashing example for this keyboard (enter the bootloader first): make handwired/footy:default:flash -or - - Drag and drop .uf2 file on the removable storage +or drag and drop .uf2 file on the removable storage See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). From 4e4f3ecffe0c5acc82ddb9cc3cd4b8a739cb14c8 Mon Sep 17 00:00:00 2001 From: CJ Pais Date: Fri, 18 Apr 2025 12:21:24 -0700 Subject: [PATCH 4/9] add bootmagic --- keyboards/handwired/footy/config.h | 3 +++ keyboards/handwired/footy/keyboard.json | 4 ++-- keyboards/handwired/footy/readme.md | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/keyboards/handwired/footy/config.h b/keyboards/handwired/footy/config.h index 315fc9cc9159..4dbb0882e73a 100644 --- a/keyboards/handwired/footy/config.h +++ b/keyboards/handwired/footy/config.h @@ -5,3 +5,6 @@ #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U + +#define BOOTMAGIC_ROW 0 +#define BOOTMAGIC_COL 1 \ No newline at end of file diff --git a/keyboards/handwired/footy/keyboard.json b/keyboards/handwired/footy/keyboard.json index 9a51ae04f777..425344c87275 100644 --- a/keyboards/handwired/footy/keyboard.json +++ b/keyboards/handwired/footy/keyboard.json @@ -7,14 +7,14 @@ "features": { "bootmagic": true, "extrakey": true, - "mousekey": true, + "mousekey": true }, "matrix_pins": { "cols": ["GP11", "GP10", "GP15"], "rows": ["GP14"] }, "processor": "RP2040", - "url": "https://www.dumpster.page/footy", + "url": "https://workshop.cjpais.com/projects/footy", "usb": { "device_version": "1.0.0", "pid": "0x0001", diff --git a/keyboards/handwired/footy/readme.md b/keyboards/handwired/footy/readme.md index fc54b29d58d3..81658df6d03d 100644 --- a/keyboards/handwired/footy/readme.md +++ b/keyboards/handwired/footy/readme.md @@ -22,9 +22,10 @@ See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_to ## Bootloader -Enter the bootloader in 3 ways: +Enter the bootloader in 2 ways: * **Physical reset button**: Briefly double press the button on the back of the PCB +* **Bootmagic**: Hold down the center switch while plugging in the USB cable ## Keymaps From 2a676f35d37a40baedaa84d4c8810fed04fe87f6 Mon Sep 17 00:00:00 2001 From: CJ Pais Date: Fri, 18 Apr 2025 12:22:02 -0700 Subject: [PATCH 5/9] move to json keymap --- keyboards/handwired/footy/keymaps/default/keymap.c | 6 ------ keyboards/handwired/footy/keymaps/default/keymap.json | 10 ++++++++++ keyboards/handwired/footy/keymaps/handy/keymap.c | 6 ------ keyboards/handwired/footy/keymaps/handy/keymap.json | 8 ++++++++ .../handwired/footy/keymaps/superwhisper/keymap.c | 6 ------ .../handwired/footy/keymaps/superwhisper/keymap.json | 8 ++++++++ 6 files changed, 26 insertions(+), 18 deletions(-) delete mode 100644 keyboards/handwired/footy/keymaps/default/keymap.c create mode 100644 keyboards/handwired/footy/keymaps/default/keymap.json delete mode 100644 keyboards/handwired/footy/keymaps/handy/keymap.c delete mode 100644 keyboards/handwired/footy/keymaps/superwhisper/keymap.c diff --git a/keyboards/handwired/footy/keymaps/default/keymap.c b/keyboards/handwired/footy/keymaps/default/keymap.c deleted file mode 100644 index 414051eae285..000000000000 --- a/keyboards/handwired/footy/keymaps/default/keymap.c +++ /dev/null @@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -#include QMK_KEYBOARD_H - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - LAYOUT( KC_A, KC_B, KC_C ) -}; diff --git a/keyboards/handwired/footy/keymaps/default/keymap.json b/keyboards/handwired/footy/keymaps/default/keymap.json new file mode 100644 index 000000000000..bfdc33fca9bc --- /dev/null +++ b/keyboards/handwired/footy/keymaps/default/keymap.json @@ -0,0 +1,10 @@ +{ + "keyboard": "handwired/footy", + "keymap": "default", + "layout": "LAYOUT", + "layers": [ + [ + "KC_A", "KC_B", "KC_C" + ] + ] +} \ No newline at end of file diff --git a/keyboards/handwired/footy/keymaps/handy/keymap.c b/keyboards/handwired/footy/keymaps/handy/keymap.c deleted file mode 100644 index 4cff1203b2e9..000000000000 --- a/keyboards/handwired/footy/keymaps/handy/keymap.c +++ /dev/null @@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -#include QMK_KEYBOARD_H - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - LAYOUT( KC_NO, MT(MOD_RCTL | MOD_RGUI , KC_NO), KC_NO ) -}; diff --git a/keyboards/handwired/footy/keymaps/handy/keymap.json b/keyboards/handwired/footy/keymaps/handy/keymap.json index a9146eba3fb7..e2a2db6d10ba 100644 --- a/keyboards/handwired/footy/keymaps/handy/keymap.json +++ b/keyboards/handwired/footy/keymaps/handy/keymap.json @@ -1,4 +1,12 @@ { + "keyboard": "handwired/footy", + "keymap": "handy", + "layout": "LAYOUT", + "layers": [ + [ + "KC_NO", "MT(MOD_RCTL | MOD_RGUI, KC_NO)", "KC_NO" + ] + ], "config": { "tapping": { "term": 50 diff --git a/keyboards/handwired/footy/keymaps/superwhisper/keymap.c b/keyboards/handwired/footy/keymaps/superwhisper/keymap.c deleted file mode 100644 index 9f0f381bc9cb..000000000000 --- a/keyboards/handwired/footy/keymaps/superwhisper/keymap.c +++ /dev/null @@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -#include QMK_KEYBOARD_H - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - LAYOUT( KC_NO, MT(LOPT(KC_SPACE ), KC_NO), KC_NO ) -}; diff --git a/keyboards/handwired/footy/keymaps/superwhisper/keymap.json b/keyboards/handwired/footy/keymaps/superwhisper/keymap.json index a9146eba3fb7..0cfa41f502ed 100644 --- a/keyboards/handwired/footy/keymaps/superwhisper/keymap.json +++ b/keyboards/handwired/footy/keymaps/superwhisper/keymap.json @@ -1,4 +1,12 @@ { + "keyboard": "handwired/footy", + "keymap": "superwhisper", + "layout": "LAYOUT", + "layers": [ + [ + "KC_NO", "LOPT(KC_SPACE)", "KC_NO" + ] + ], "config": { "tapping": { "term": 50 From 7468fc2e40dbbcfa6290119350dc8983faa1a973 Mon Sep 17 00:00:00 2001 From: CJ Pais Date: Fri, 18 Apr 2025 12:25:31 -0700 Subject: [PATCH 6/9] remove bootmagic breaking build --- keyboards/handwired/footy/config.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/keyboards/handwired/footy/config.h b/keyboards/handwired/footy/config.h index 4dbb0882e73a..cea05c507032 100644 --- a/keyboards/handwired/footy/config.h +++ b/keyboards/handwired/footy/config.h @@ -4,7 +4,4 @@ #define USB_VBUS_PIN GP9 #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET -#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U - -#define BOOTMAGIC_ROW 0 -#define BOOTMAGIC_COL 1 \ No newline at end of file +#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U \ No newline at end of file From 06e593bc99756034174aa77e60e4629fb8200282 Mon Sep 17 00:00:00 2001 From: CJ Pais Date: Fri, 18 Apr 2025 14:58:47 -0700 Subject: [PATCH 7/9] enable bootmagic on proper key --- keyboards/handwired/footy/keyboard.json | 4 ++++ keyboards/handwired/footy/readme.md | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/keyboards/handwired/footy/keyboard.json b/keyboards/handwired/footy/keyboard.json index 425344c87275..78a2314cefc1 100644 --- a/keyboards/handwired/footy/keyboard.json +++ b/keyboards/handwired/footy/keyboard.json @@ -9,6 +9,10 @@ "extrakey": true, "mousekey": true }, + "bootmagic": { + "enabled": true, + "matrix": [0, 1] + }, "matrix_pins": { "cols": ["GP11", "GP10", "GP15"], "rows": ["GP14"] diff --git a/keyboards/handwired/footy/readme.md b/keyboards/handwired/footy/readme.md index 81658df6d03d..6d02fad95ccc 100644 --- a/keyboards/handwired/footy/readme.md +++ b/keyboards/handwired/footy/readme.md @@ -22,10 +22,9 @@ See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_to ## Bootloader -Enter the bootloader in 2 ways: +Enter the bootloader: * **Physical reset button**: Briefly double press the button on the back of the PCB -* **Bootmagic**: Hold down the center switch while plugging in the USB cable ## Keymaps From c7235a2444e094ea7efe21594281fb783524eee7 Mon Sep 17 00:00:00 2001 From: CJ Pais Date: Fri, 18 Apr 2025 14:58:59 -0700 Subject: [PATCH 8/9] remove vbus pin --- keyboards/handwired/footy/config.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/keyboards/handwired/footy/config.h b/keyboards/handwired/footy/config.h index cea05c507032..c828d09e6c27 100644 --- a/keyboards/handwired/footy/config.h +++ b/keyboards/handwired/footy/config.h @@ -1,7 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-or-later #pragma once -#define USB_VBUS_PIN GP9 - #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U \ No newline at end of file From acd90294aca8447309b2480f46064b06a4161cb9 Mon Sep 17 00:00:00 2001 From: CJ Pais Date: Sat, 19 Apr 2025 17:31:41 -0700 Subject: [PATCH 9/9] Apply suggestions from code review Co-authored-by: jack --- keyboards/handwired/footy/config.h | 2 +- keyboards/handwired/footy/keyboard.json | 1 - keyboards/handwired/footy/keymaps/default/keymap.json | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/keyboards/handwired/footy/config.h b/keyboards/handwired/footy/config.h index c828d09e6c27..5a081f79d69a 100644 --- a/keyboards/handwired/footy/config.h +++ b/keyboards/handwired/footy/config.h @@ -2,4 +2,4 @@ #pragma once #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET -#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U \ No newline at end of file +#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U diff --git a/keyboards/handwired/footy/keyboard.json b/keyboards/handwired/footy/keyboard.json index 78a2314cefc1..eef8c2503868 100644 --- a/keyboards/handwired/footy/keyboard.json +++ b/keyboards/handwired/footy/keyboard.json @@ -10,7 +10,6 @@ "mousekey": true }, "bootmagic": { - "enabled": true, "matrix": [0, 1] }, "matrix_pins": { diff --git a/keyboards/handwired/footy/keymaps/default/keymap.json b/keyboards/handwired/footy/keymaps/default/keymap.json index bfdc33fca9bc..99804041d856 100644 --- a/keyboards/handwired/footy/keymaps/default/keymap.json +++ b/keyboards/handwired/footy/keymaps/default/keymap.json @@ -7,4 +7,4 @@ "KC_A", "KC_B", "KC_C" ] ] -} \ No newline at end of file +}