From 74bd8314d20f1db7ddfe6b1c2394bea2fcb374b5 Mon Sep 17 00:00:00 2001 From: diffrentGuesser Date: Sat, 21 Dec 2024 21:52:56 +0100 Subject: [PATCH 01/11] Add ZeroPad handwired keyboard --- keyboards/handwired/zeropad/config.h | 2 + keyboards/handwired/zeropad/keyboard.json | 41 +++++++++++++++++++ .../zeropad/keymaps/default/keymap.c | 13 ++++++ keyboards/handwired/zeropad/readme.md | 27 ++++++++++++ keyboards/handwired/zeropad/rules.mk | 1 + 5 files changed, 84 insertions(+) create mode 100644 keyboards/handwired/zeropad/config.h create mode 100644 keyboards/handwired/zeropad/keyboard.json create mode 100644 keyboards/handwired/zeropad/keymaps/default/keymap.c create mode 100644 keyboards/handwired/zeropad/readme.md create mode 100644 keyboards/handwired/zeropad/rules.mk diff --git a/keyboards/handwired/zeropad/config.h b/keyboards/handwired/zeropad/config.h new file mode 100644 index 000000000000..7a382b148bbc --- /dev/null +++ b/keyboards/handwired/zeropad/config.h @@ -0,0 +1,2 @@ +#define ENCODER_RESOLUTION 4 +#define ENCODER_DIRECTION_FLIP diff --git a/keyboards/handwired/zeropad/keyboard.json b/keyboards/handwired/zeropad/keyboard.json new file mode 100644 index 000000000000..dba0b2c816e5 --- /dev/null +++ b/keyboards/handwired/zeropad/keyboard.json @@ -0,0 +1,41 @@ +{ + "manufacturer": "Leon Sieber", + "keyboard_name": "ZeroPad", + "maintainer": "diffrentGuesser", + "development_board": "promicro", + "diode_direction": "COL2ROW", + "features": { + "bootmagic": true, + "command": false, + "console": false, + "extrakey": true, + "mousekey": true, + "nkro": true + }, + "matrix_pins": { + "cols": ["D1", "D0", "D4"], + "rows": ["C6", "D7", "E6"], + "encoder": ["D3", "D2", "D5"] + }, + "url": "", + "usb": { + "device_version": "1.0.0", + "pid": "0x0000", + "vid": "0x5A50" + }, + "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": [1, 0], "x": 0, "y": 1}, + {"matrix": [1, 1], "x": 1, "y": 1}, + {"matrix": [1, 2], "x": 2, "y": 1}, + {"matrix": [2, 0], "x": 0, "y": 2}, + {"matrix": [2, 1], "x": 1, "y": 2}, + {"matrix": [2, 2], "x": 2, "y": 2} + ] + } + } +} diff --git a/keyboards/handwired/zeropad/keymaps/default/keymap.c b/keyboards/handwired/zeropad/keymaps/default/keymap.c new file mode 100644 index 000000000000..32a44feeafa9 --- /dev/null +++ b/keyboards/handwired/zeropad/keymaps/default/keymap.c @@ -0,0 +1,13 @@ +// Copyright 2023 QMK +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + [0] = LAYOUT( + KC_1, KC_2, KC_3, + KC_4, KC_5, KC_6, + KC_7, KC_8, KC_9 + ) +}; diff --git a/keyboards/handwired/zeropad/readme.md b/keyboards/handwired/zeropad/readme.md new file mode 100644 index 000000000000..04f8f9d67416 --- /dev/null +++ b/keyboards/handwired/zeropad/readme.md @@ -0,0 +1,27 @@ +# handwired/zeropad + +![handwired/zeropad](imgur.com image replace me!) + +*A short description of the keyboard/project* + +* Keyboard Maintainer: [Leon Sieber](https://github.com/diffrentGuesser) +* Hardware Supported: *The PCBs, controllers supported* +* Hardware Availability: *Links to where you can find this hardware* + +Make example for this keyboard (after setting up your build environment): + + make handwired/zeropad:default + +Flashing example for this keyboard: + + make handwired/zeropad: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 diff --git a/keyboards/handwired/zeropad/rules.mk b/keyboards/handwired/zeropad/rules.mk new file mode 100644 index 000000000000..1e5b99807cb7 --- /dev/null +++ b/keyboards/handwired/zeropad/rules.mk @@ -0,0 +1 @@ +VIA_ENABLE = yes From 67bd07b288108bd47ba9b427cfb91fa303cc7956 Mon Sep 17 00:00:00 2001 From: diffrentGuesser Date: Sat, 21 Dec 2024 22:01:22 +0100 Subject: [PATCH 02/11] Add ZeroPad handwired keyboard --- .../handwired/zeropad/keymaps/via/keymap.c | 37 +++++++++++++++++++ .../handwired/zeropad/keymaps/via/rules.mk | 1 + keyboards/handwired/zeropad/via.json | 17 +++++++++ 3 files changed, 55 insertions(+) create mode 100644 keyboards/handwired/zeropad/keymaps/via/keymap.c create mode 100644 keyboards/handwired/zeropad/keymaps/via/rules.mk create mode 100644 keyboards/handwired/zeropad/via.json diff --git a/keyboards/handwired/zeropad/keymaps/via/keymap.c b/keyboards/handwired/zeropad/keymaps/via/keymap.c new file mode 100644 index 000000000000..faa90ff6ee1f --- /dev/null +++ b/keyboards/handwired/zeropad/keymaps/via/keymap.c @@ -0,0 +1,37 @@ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT( + KC_1, KC_2, KC_3, + KC_4, KC_5, KC_6, + KC_7, KC_8, KC_9 + ), + + [1] = LAYOUT( + _______, _______, _______, + _______, _______, _______, + _______, _______, _______ + ), + + [2] = LAYOUT( + _______, _______, _______, + _______, _______, _______, + _______, _______, _______ + ), + + [3] = LAYOUT( + _______, _______, _______, + _______, _______, _______, + _______, _______, _______ + ) +}; + +void encoder_update_user(uint8_t index, bool clockwise) { + if (index == 0) { + if (clockwise) { + tap_code(KC_VOLU); + } else { + tap_code(KC_VOLD); + } + } +} diff --git a/keyboards/handwired/zeropad/keymaps/via/rules.mk b/keyboards/handwired/zeropad/keymaps/via/rules.mk new file mode 100644 index 000000000000..1e5b99807cb7 --- /dev/null +++ b/keyboards/handwired/zeropad/keymaps/via/rules.mk @@ -0,0 +1 @@ +VIA_ENABLE = yes diff --git a/keyboards/handwired/zeropad/via.json b/keyboards/handwired/zeropad/via.json new file mode 100644 index 000000000000..c75f8af8a4aa --- /dev/null +++ b/keyboards/handwired/zeropad/via.json @@ -0,0 +1,17 @@ +{ + "name":"ZeroPad", + "vendorId": "0x5A50", + "productId": "0x0000", + "matrix": { + "rows": 3, + "cols": 3 + }, + "layouts": { + "keymap": [ + ["0,0", "0,1", "0,2"], + ["1,0", "1,1", "1,2"], + ["2,0", "2,1", "2,2"] + ] + + } +} From 093b13e57a244cfeef3444e5111c9c6627a8589b Mon Sep 17 00:00:00 2001 From: Infos <136488157+diffrentGuesser@users.noreply.github.com> Date: Sun, 22 Dec 2024 00:03:11 +0100 Subject: [PATCH 03/11] Update keyboard.json --- keyboards/handwired/zeropad/keyboard.json | 1 - 1 file changed, 1 deletion(-) diff --git a/keyboards/handwired/zeropad/keyboard.json b/keyboards/handwired/zeropad/keyboard.json index dba0b2c816e5..ee4aaf198c7b 100644 --- a/keyboards/handwired/zeropad/keyboard.json +++ b/keyboards/handwired/zeropad/keyboard.json @@ -15,7 +15,6 @@ "matrix_pins": { "cols": ["D1", "D0", "D4"], "rows": ["C6", "D7", "E6"], - "encoder": ["D3", "D2", "D5"] }, "url": "", "usb": { From c517be3042323d9ced4115b0600a1ce20fb57c20 Mon Sep 17 00:00:00 2001 From: Infos <136488157+diffrentGuesser@users.noreply.github.com> Date: Sun, 22 Dec 2024 00:04:05 +0100 Subject: [PATCH 04/11] Update keymap.c --- keyboards/handwired/zeropad/keymaps/via/keymap.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/keyboards/handwired/zeropad/keymaps/via/keymap.c b/keyboards/handwired/zeropad/keymaps/via/keymap.c index faa90ff6ee1f..e031ee9f35df 100644 --- a/keyboards/handwired/zeropad/keymaps/via/keymap.c +++ b/keyboards/handwired/zeropad/keymaps/via/keymap.c @@ -25,13 +25,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { _______, _______, _______ ) }; - -void encoder_update_user(uint8_t index, bool clockwise) { - if (index == 0) { - if (clockwise) { - tap_code(KC_VOLU); - } else { - tap_code(KC_VOLD); - } - } -} From 61a2e6331f700fffcbbb1ef884acdd745f70afc6 Mon Sep 17 00:00:00 2001 From: diffrentGuesser Date: Sun, 22 Dec 2024 11:43:17 +0100 Subject: [PATCH 05/11] via related files into via folder + deleting unecessery/duplicate files --- keyboards/handwired/zeropad/config.h | 2 -- keyboards/handwired/zeropad/rules.mk | 1 - keyboards/handwired/zeropad/via.json | 17 ----------------- 3 files changed, 20 deletions(-) delete mode 100644 keyboards/handwired/zeropad/config.h delete mode 100644 keyboards/handwired/zeropad/rules.mk delete mode 100644 keyboards/handwired/zeropad/via.json diff --git a/keyboards/handwired/zeropad/config.h b/keyboards/handwired/zeropad/config.h deleted file mode 100644 index 7a382b148bbc..000000000000 --- a/keyboards/handwired/zeropad/config.h +++ /dev/null @@ -1,2 +0,0 @@ -#define ENCODER_RESOLUTION 4 -#define ENCODER_DIRECTION_FLIP diff --git a/keyboards/handwired/zeropad/rules.mk b/keyboards/handwired/zeropad/rules.mk deleted file mode 100644 index 1e5b99807cb7..000000000000 --- a/keyboards/handwired/zeropad/rules.mk +++ /dev/null @@ -1 +0,0 @@ -VIA_ENABLE = yes diff --git a/keyboards/handwired/zeropad/via.json b/keyboards/handwired/zeropad/via.json deleted file mode 100644 index c75f8af8a4aa..000000000000 --- a/keyboards/handwired/zeropad/via.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name":"ZeroPad", - "vendorId": "0x5A50", - "productId": "0x0000", - "matrix": { - "rows": 3, - "cols": 3 - }, - "layouts": { - "keymap": [ - ["0,0", "0,1", "0,2"], - ["1,0", "1,1", "1,2"], - ["2,0", "2,1", "2,2"] - ] - - } -} From 116d751be5a0f25dda31dfe19791ef7b13ef28c0 Mon Sep 17 00:00:00 2001 From: diffrentGuesser Date: Sun, 22 Dec 2024 11:45:23 +0100 Subject: [PATCH 06/11] fixing merge issues From 8aeab8790b946ac7841b9ff542d20245eb182c33 Mon Sep 17 00:00:00 2001 From: diffrentGuesser Date: Sun, 22 Dec 2024 11:49:44 +0100 Subject: [PATCH 07/11] commiting the via.json fiel --- .../handwired/zeropad/keymaps/via/via.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 keyboards/handwired/zeropad/keymaps/via/via.json diff --git a/keyboards/handwired/zeropad/keymaps/via/via.json b/keyboards/handwired/zeropad/keymaps/via/via.json new file mode 100644 index 000000000000..c75f8af8a4aa --- /dev/null +++ b/keyboards/handwired/zeropad/keymaps/via/via.json @@ -0,0 +1,17 @@ +{ + "name":"ZeroPad", + "vendorId": "0x5A50", + "productId": "0x0000", + "matrix": { + "rows": 3, + "cols": 3 + }, + "layouts": { + "keymap": [ + ["0,0", "0,1", "0,2"], + ["1,0", "1,1", "1,2"], + ["2,0", "2,1", "2,2"] + ] + + } +} From 9a378b9689d1454f05fc7d602274add7d56c87e6 Mon Sep 17 00:00:00 2001 From: diffrentGuesser Date: Mon, 23 Dec 2024 10:18:43 +0100 Subject: [PATCH 08/11] ignore VIA --- .../handwired/zeropad/keymaps/via/keymap.c | 27 ------------------- .../handwired/zeropad/keymaps/via/rules.mk | 1 - .../handwired/zeropad/keymaps/via/via.json | 17 ------------ 3 files changed, 45 deletions(-) delete mode 100644 keyboards/handwired/zeropad/keymaps/via/keymap.c delete mode 100644 keyboards/handwired/zeropad/keymaps/via/rules.mk delete mode 100644 keyboards/handwired/zeropad/keymaps/via/via.json diff --git a/keyboards/handwired/zeropad/keymaps/via/keymap.c b/keyboards/handwired/zeropad/keymaps/via/keymap.c deleted file mode 100644 index e031ee9f35df..000000000000 --- a/keyboards/handwired/zeropad/keymaps/via/keymap.c +++ /dev/null @@ -1,27 +0,0 @@ -#include QMK_KEYBOARD_H - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [0] = LAYOUT( - KC_1, KC_2, KC_3, - KC_4, KC_5, KC_6, - KC_7, KC_8, KC_9 - ), - - [1] = LAYOUT( - _______, _______, _______, - _______, _______, _______, - _______, _______, _______ - ), - - [2] = LAYOUT( - _______, _______, _______, - _______, _______, _______, - _______, _______, _______ - ), - - [3] = LAYOUT( - _______, _______, _______, - _______, _______, _______, - _______, _______, _______ - ) -}; diff --git a/keyboards/handwired/zeropad/keymaps/via/rules.mk b/keyboards/handwired/zeropad/keymaps/via/rules.mk deleted file mode 100644 index 1e5b99807cb7..000000000000 --- a/keyboards/handwired/zeropad/keymaps/via/rules.mk +++ /dev/null @@ -1 +0,0 @@ -VIA_ENABLE = yes diff --git a/keyboards/handwired/zeropad/keymaps/via/via.json b/keyboards/handwired/zeropad/keymaps/via/via.json deleted file mode 100644 index c75f8af8a4aa..000000000000 --- a/keyboards/handwired/zeropad/keymaps/via/via.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name":"ZeroPad", - "vendorId": "0x5A50", - "productId": "0x0000", - "matrix": { - "rows": 3, - "cols": 3 - }, - "layouts": { - "keymap": [ - ["0,0", "0,1", "0,2"], - ["1,0", "1,1", "1,2"], - ["2,0", "2,1", "2,2"] - ] - - } -} From 3c6f8784c03b57f0a37fb3b516509dbbe149109e Mon Sep 17 00:00:00 2001 From: Infos <136488157+diffrentGuesser@users.noreply.github.com> Date: Mon, 23 Dec 2024 15:51:46 +0100 Subject: [PATCH 09/11] Update readme.md --- keyboards/handwired/zeropad/readme.md | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/keyboards/handwired/zeropad/readme.md b/keyboards/handwired/zeropad/readme.md index 04f8f9d67416..f11d12c3f4d6 100644 --- a/keyboards/handwired/zeropad/readme.md +++ b/keyboards/handwired/zeropad/readme.md @@ -1,27 +1,7 @@ # handwired/zeropad -![handwired/zeropad](imgur.com image replace me!) +ZeroPad -*A short description of the keyboard/project* +*I made this keyboard inspired by the scotto9 from joe scotto.* -* Keyboard Maintainer: [Leon Sieber](https://github.com/diffrentGuesser) -* Hardware Supported: *The PCBs, controllers supported* -* Hardware Availability: *Links to where you can find this hardware* - -Make example for this keyboard (after setting up your build environment): - - make handwired/zeropad:default - -Flashing example for this keyboard: - - make handwired/zeropad: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 +Keyboard Maintainer: [Leon Sieber](https://github.com/diffrentGuesser) From 98db4f640d45b784cd30a79f82dec8d3d2709130 Mon Sep 17 00:00:00 2001 From: Infos <136488157+diffrentGuesser@users.noreply.github.com> Date: Mon, 23 Dec 2024 16:15:52 +0100 Subject: [PATCH 10/11] Update readme.md --- keyboards/handwired/zeropad/readme.md | 29 +++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/keyboards/handwired/zeropad/readme.md b/keyboards/handwired/zeropad/readme.md index f11d12c3f4d6..ed27e5bdd567 100644 --- a/keyboards/handwired/zeropad/readme.md +++ b/keyboards/handwired/zeropad/readme.md @@ -1,7 +1,28 @@ -# handwired/zeropad +#ZeroPad -ZeroPad +ZeroPad: +![ZeroPad](https://github.com/user-attachments/assets/224aa55a-045b-4bb9-b6e9-34f092ced5c4) -*I made this keyboard inspired by the scotto9 from joe scotto.* -Keyboard Maintainer: [Leon Sieber](https://github.com/diffrentGuesser) +*This keyboard is inspired by the scotto9 from Joe Scotto. This keyboard is compatible with via and has 4 layers of keybinds (24 keybinds - 4x8 + 1 per layer for changing the layer).* +* Keyboard Maintainer: [Leons Sieber](https://github.com/diffrentGuesser) +* Hardware Supported: *The PCBs, controllers supported* +* Hardware Availability: *Links to where you can find this hardware* + +Make example for this keyboard (after setting up your build environment): + + make %KEYBOARD%:default + +Flashing example for this keyboard: + + make %KEYBOARD%: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 From b5e9331a832644441623cb61120535e0097d768b Mon Sep 17 00:00:00 2001 From: Infos <136488157+diffrentGuesser@users.noreply.github.com> Date: Mon, 23 Dec 2024 17:03:13 +0100 Subject: [PATCH 11/11] Update readme.md --- keyboards/handwired/zeropad/readme.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/keyboards/handwired/zeropad/readme.md b/keyboards/handwired/zeropad/readme.md index ed27e5bdd567..d8cc9e169cd7 100644 --- a/keyboards/handwired/zeropad/readme.md +++ b/keyboards/handwired/zeropad/readme.md @@ -1,28 +1,30 @@ -#ZeroPad +# ZeroPad ZeroPad: ![ZeroPad](https://github.com/user-attachments/assets/224aa55a-045b-4bb9-b6e9-34f092ced5c4) *This keyboard is inspired by the scotto9 from Joe Scotto. This keyboard is compatible with via and has 4 layers of keybinds (24 keybinds - 4x8 + 1 per layer for changing the layer).* -* Keyboard Maintainer: [Leons Sieber](https://github.com/diffrentGuesser) -* Hardware Supported: *The PCBs, controllers supported* -* Hardware Availability: *Links to where you can find this hardware* +* Keyboard Maintainer: [Leon Sieber](https://github.com/diffrentGuesser) +* Hardware Supported: Pro Micro, 3 pin switches +* Hardware Availability: [Pro Micro](https://de.aliexpress.com/item/32846843498.html?spm=a2g0o.cart.0.0.146d4ae4kCjqDY&mp=1&gatewayAdapt=glo2deu), [switches](https://de.aliexpress.com/item/1005007135709029.html?spm=a2g0o.cart.0.0.146d4ae4kCjqDY&mp=1&gatewayAdapt=glo2deu) Make example for this keyboard (after setting up your build environment): - make %KEYBOARD%:default + make handwired/zeropad:default + Flashing example for this keyboard: - make %KEYBOARD%:default:flash + make handwired/zeropad: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: +Enter the bootloader: -* **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 +* **Physical short**: Short the GND and the RST pins to flash the keyboard new. + * This will put the board into bootloader mode, allowing you to flash a new firmware. + * Make sure you disconnect and reconnect the cable after shorting the pins.