From c9f942e43ce0ef683ef71627447082a9ef46a114 Mon Sep 17 00:00:00 2001 From: Kenneth Fossen Date: Sun, 3 May 2026 19:02:39 +0200 Subject: [PATCH] Add Handwired Bouvet Macropad (#26040) * Bouvet MacroPad v1 * Working macropad and encoders * Fix matrix, and custom keymap * The perfect developer keyboard * Move to handwired * Rev 1.1 * Move to handwired * Turn off debugging * Fix copyright * qmk lint * Update keyboard.json * cleanup * Update image * Move encoder config * Update keyboards/handwired/bouvet/macropad/v1/keyboard.json Co-authored-by: Joel Challis * Cleanup --------- Co-authored-by: Joel Challis --- .../bouvet/macropad/v1/keyboard.json | 51 +++++++++++++++++++ .../macropad/v1/keymaps/default/keymap.c | 19 +++++++ .../handwired/bouvet/macropad/v1/readme.md | 27 ++++++++++ 3 files changed, 97 insertions(+) create mode 100644 keyboards/handwired/bouvet/macropad/v1/keyboard.json create mode 100644 keyboards/handwired/bouvet/macropad/v1/keymaps/default/keymap.c create mode 100644 keyboards/handwired/bouvet/macropad/v1/readme.md diff --git a/keyboards/handwired/bouvet/macropad/v1/keyboard.json b/keyboards/handwired/bouvet/macropad/v1/keyboard.json new file mode 100644 index 0000000000..0492ef6c37 --- /dev/null +++ b/keyboards/handwired/bouvet/macropad/v1/keyboard.json @@ -0,0 +1,51 @@ +{ + "manufacturer": "Kenneth Fossen", + "keyboard_name": "Bouvet Macropad v1", + "maintainer": "spydx", + "development_board": "promicro", + "diode_direction": "COL2ROW", + "features": { + "extrakey": true, + "mousekey": true, + "nkro": true + }, + "matrix_pins": { + "cols": ["D7","E6","B4","B5"], + "rows": ["B1", "B3", "B2", "B6"] + }, + "encoders": { + "rotary": [ + {"pin_a": "C6", "pin_b": "D4"}, + {"pin_a": "F6", "pin_b": "F7"} + ] + }, + "url": "https://kefo.no", + "usb": { + "device_version": "1.0.0", + "pid": "0x0000", + "vid": "0xFEED" + }, + "layouts": { + "LAYOUT": { + "layout": [ + {"matrix": [0, 0], "x": 0, "y": 0}, + {"matrix": [0, 1], "x": 1, "y": 0}, + {"matrix": [0, 2], "x": 2, "y": 0}, + {"matrix": [0, 3], "x": 3, "y": 0}, + + {"matrix": [1, 0], "x": 0, "y": 1}, + {"matrix": [1, 1], "x": 1, "y": 1}, + {"matrix": [1, 2], "x": 2, "y": 1}, + {"matrix": [1, 3], "x": 3, "y": 1}, + + {"matrix": [2, 0], "x": 0, "y": 2}, + {"matrix": [2, 1], "x": 1, "y": 2}, + {"matrix": [2, 2], "x": 2, "y": 2}, + {"matrix": [2, 3], "x": 3, "y": 2}, + + {"matrix": [3, 1], "x": 1, "y": 3}, + {"matrix": [3, 2], "x": 2, "y": 3} + ] + } + } +} diff --git a/keyboards/handwired/bouvet/macropad/v1/keymaps/default/keymap.c b/keyboards/handwired/bouvet/macropad/v1/keymaps/default/keymap.c new file mode 100644 index 0000000000..74f3c9cded --- /dev/null +++ b/keyboards/handwired/bouvet/macropad/v1/keymaps/default/keymap.c @@ -0,0 +1,19 @@ +// Copyright 2026 Kenneth Fossen +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT( + KC_MCTL, LCS(KC_TAB), C(KC_TAB), KC_MPLY, + KC_P4, KC_P5, KC_P6, KC_PAST, + KC_P1, KC_P2, KC_P3, KC_PENT, + LCMD(KC_C), LCMD(KC_V) + ) +}; + +#if defined(ENCODER_MAP_ENABLE) +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { + [0] = { ENCODER_CCW_CW(KC_MPRV, KC_MNXT), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) } +}; +#endif diff --git a/keyboards/handwired/bouvet/macropad/v1/readme.md b/keyboards/handwired/bouvet/macropad/v1/readme.md new file mode 100644 index 0000000000..a913af88ad --- /dev/null +++ b/keyboards/handwired/bouvet/macropad/v1/readme.md @@ -0,0 +1,27 @@ +# bouvet/macropad/v1 + +![bouvet/macropad/v1](https://www.kefo.no/assets/macropad/macropad_v1.png) +Small macropad, with two rotary encoder buttons and 14 keys. +Optional OLED 128x16 screen, small learning and sharing project. + +* Keyboard Maintainer: [Kenneth Fossen](https://github.com/spydx) +* Hardware Supported: Bouvet Macropad +* Hardware Availability: [Shop](https://www.kefo.no/macropad) + +Make example for this keyboard (after setting up your build environment): + + make handwired/bouvet/macropad/v1:default + +Flashing example for this keyboard: + + make handwired/bouvet/macropad/v1:default:flash + +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: + +* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard +* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead +* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available