-
-
Notifications
You must be signed in to change notification settings - Fork 44.1k
Add handwired/positron/12pad keyboard #26362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
juarendra
wants to merge
4
commits into
qmk:master
Choose a base branch
from
juarendra:add-positron-12pad
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+197
−0
Draft
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| // Copyright 2026 juarendra | ||
| // SPDX-License-Identifier: GPL-2.0-or-later | ||
| #pragma once | ||
|
|
||
| #define MIDI_ADVANCED |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,130 @@ | ||
| { | ||
| "manufacturer": "Positron Electronic", | ||
| "keyboard_name": "12pad", | ||
| "maintainer": "juarendra", | ||
| "development_board": "blackpill_f401", | ||
| "diode_direction": "COL2ROW", | ||
| "dynamic_keymap": { | ||
| "layer_count": 6 | ||
| }, | ||
| "eeprom": { | ||
| "wear_leveling": { | ||
| "backing_size": 8192 | ||
| } | ||
| }, | ||
| "encoder": { | ||
| "rotary": [ | ||
| {"pin_a": "B5", "pin_b": "B6"} | ||
| ] | ||
| }, | ||
| "features": { | ||
| "bootmagic": true, | ||
| "encoder": true, | ||
| "extrakey": true, | ||
| "midi": true, | ||
| "mousekey": true, | ||
|
zvecr marked this conversation as resolved.
|
||
| "nkro": true, | ||
| "rgb_matrix": true | ||
| }, | ||
| "matrix_pins": { | ||
| "cols": ["B14", "B13", "B12", "B0", "A7"], | ||
| "rows": ["B3", "B4", "B9"] | ||
| }, | ||
| "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, | ||
| "gradient_left_right": true, | ||
| "gradient_up_down": true, | ||
| "hue_breathing": true, | ||
| "hue_pendulum": true, | ||
| "hue_wave": true, | ||
| "jellybean_raindrops": true, | ||
| "multisplash": true, | ||
| "pixel_fractal": true, | ||
| "pixel_rain": true, | ||
| "rainbow_beacon": true, | ||
| "rainbow_moving_chevron": true, | ||
| "rainbow_pinwheels": true, | ||
| "raindrops": 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, | ||
| "typing_heatmap": true | ||
| }, | ||
| "default": { | ||
| "animation": "cycle_up_down" | ||
| }, | ||
| "driver": "ws2812", | ||
| "layout": [ | ||
| {"matrix": [0, 0], "x": 0, "y": 0, "flags": 4}, | ||
| {"matrix": [0, 1], "x": 75, "y": 0, "flags": 4}, | ||
| {"matrix": [0, 2], "x": 150, "y": 0, "flags": 4}, | ||
| {"matrix": [0, 3], "x": 224, "y": 0, "flags": 4}, | ||
| {"matrix": [1, 0], "x": 0, "y": 32, "flags": 4}, | ||
| {"matrix": [1, 1], "x": 75, "y": 32, "flags": 4}, | ||
| {"matrix": [1, 2], "x": 150, "y": 32, "flags": 4}, | ||
| {"matrix": [1, 3], "x": 224, "y": 32, "flags": 4}, | ||
| {"matrix": [2, 0], "x": 0, "y": 64, "flags": 4}, | ||
| {"matrix": [2, 1], "x": 75, "y": 64, "flags": 4}, | ||
| {"matrix": [2, 2], "x": 150, "y": 64, "flags": 4}, | ||
| {"matrix": [2, 3], "x": 224, "y": 64, "flags": 4} | ||
| ], | ||
| "max_brightness": 200, | ||
| "sleep": true | ||
| }, | ||
| "url": "https://github.com/juarendra/12pad-QMK-VIA", | ||
| "usb": { | ||
| "device_version": "1.0.0", | ||
| "pid": "0x2012", | ||
| "shared_endpoint": { | ||
| "keyboard": true | ||
| }, | ||
| "vid": "0x1209" | ||
| }, | ||
| "ws2812": { | ||
| "pin": "A10" | ||
| }, | ||
| "layouts": { | ||
| "LAYOUT": { | ||
| "layout": [ | ||
| {"matrix": [0, 4], "x": 0, "y": 0}, | ||
| {"matrix": [0, 0], "x": 3.25, "y": 0}, | ||
| {"matrix": [0, 1], "x": 4.25, "y": 0}, | ||
| {"matrix": [0, 2], "x": 5.25, "y": 0}, | ||
| {"matrix": [0, 3], "x": 6.25, "y": 0}, | ||
| {"matrix": [1, 0], "x": 7.75, "y": 0}, | ||
| {"matrix": [1, 1], "x": 8.75, "y": 0}, | ||
| {"matrix": [1, 2], "x": 9.75, "y": 0}, | ||
| {"matrix": [1, 3], "x": 10.75, "y": 0}, | ||
| {"matrix": [2, 0], "x": 12.25, "y": 0}, | ||
| {"matrix": [2, 1], "x": 13.25, "y": 0}, | ||
| {"matrix": [2, 2], "x": 14.25, "y": 0}, | ||
| {"matrix": [2, 3], "x": 15.25, "y": 0} | ||
| ] | ||
| } | ||
| } | ||
| } | ||
36 changes: 36 additions & 0 deletions
36
keyboards/handwired/positron/12pad/keymaps/default/keymap.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| // Copyright 2026 juarendra | ||
| // SPDX-License-Identifier: GPL-2.0-or-later | ||
|
|
||
| #include QMK_KEYBOARD_H | ||
|
|
||
| enum layer_names { _LAY0, _LAY1, _LAY2, _LAY3, _LAY4, _LAY5 }; | ||
|
|
||
| // clang-format off | ||
| const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| [_LAY0] = LAYOUT( | ||
| TO(1), KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12), | ||
| [_LAY1] = LAYOUT( | ||
| TO(2), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| [_LAY2] = LAYOUT( | ||
| TO(3), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| [_LAY3] = LAYOUT( | ||
| TO(4), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| [_LAY4] = LAYOUT( | ||
| TO(5), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| [_LAY5] = LAYOUT( | ||
| TO(0), RM_TOGG, RM_NEXT, RM_SPDU, RM_SPDD, RM_SATU, RM_SATD, RM_HUEU, RM_HUED, RM_VALU, RM_VALD, KC_TRNS, KC_TRNS) | ||
| }; | ||
| // clang-format on | ||
|
|
||
| #ifdef ENCODER_MAP_ENABLE | ||
| // clang-format off | ||
| const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { | ||
| [_LAY0] = { ENCODER_CCW_CW(KC_PGUP, KC_PGDN) }, | ||
| [_LAY1] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, | ||
| [_LAY2] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, | ||
| [_LAY3] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, | ||
| [_LAY4] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, | ||
| [_LAY5] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, | ||
| }; | ||
| // clang-format on | ||
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ENCODER_MAP_ENABLE = yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # 12pad | ||
|
|
||
| 12-key hotswap macropad with a rotary encoder, by Positron Electronic. | ||
|
|
||
| * Keyboard Maintainer: [juarendra](https://github.com/juarendra) | ||
| * Hardware Supported: WeAct Blackpill STM32F401 (USB Type-C) | ||
| * Hardware Availability: [Positron Electronic](https://github.com/juarendra/12pad-QMK-VIA) | ||
|
|
||
| Make example for this keyboard (after setting up your build environment): | ||
|
|
||
| qmk compile -kb handwired/positron/12pad -km default | ||
|
|
||
| Flashing: | ||
|
|
||
| qmk flash -kb handwired/positron/12pad -km default | ||
|
|
||
| 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 encoder knob (top-left key) and plug in the keyboard | ||
| * **Physical reset**: Hold the `BOOT0` button on the Blackpill, tap `NRST` (or plug in USB), then release `BOOT0` | ||
| * **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.