diff options
| author | QMK Bot <hello@qmk.fm> | 2025-10-06 16:45:06 +0000 |
|---|---|---|
| committer | QMK Bot <hello@qmk.fm> | 2025-10-06 16:45:06 +0000 |
| commit | 5d26dcefa0fdc7e7405c856ff39b13f2b9ed4036 (patch) | |
| tree | abcdfc833e2f2f898da8b77254abd9c1b07e8106 /keyboards | |
| parent | c7ed9038d71275a98b490c3fc1df8217164666fe (diff) | |
| parent | b9078609b649ff40f725233d628d2854977366f2 (diff) | |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards')
| -rw-r--r-- | keyboards/mectechpad/config.h | 11 | ||||
| -rw-r--r-- | keyboards/mectechpad/keyboard.json | 40 | ||||
| -rw-r--r-- | keyboards/mectechpad/keymaps/default/keymap.c | 37 | ||||
| -rw-r--r-- | keyboards/mectechpad/mectechpad.c | 25 | ||||
| -rw-r--r-- | keyboards/mectechpad/readme.md | 25 |
5 files changed, 138 insertions, 0 deletions
diff --git a/keyboards/mectechpad/config.h b/keyboards/mectechpad/config.h new file mode 100644 index 0000000000..283902350e --- /dev/null +++ b/keyboards/mectechpad/config.h | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | // Copyright 2025 Jack Sachinidhs (@jacksaxi) | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | #pragma once | ||
| 4 | /* LED pin definitions */ | ||
| 5 | #define LED_PIN_LAYER_0 GP12 | ||
| 6 | #define LED_PIN_LAYER_1 GP11 | ||
| 7 | #define LED_PIN_LAYER_2 GP10 | ||
| 8 | #define LED_PIN_LAYER_3 GP9 | ||
| 9 | |||
| 10 | /* matrix mask for direct pin switch */ | ||
| 11 | #define MATRIX_MASKED | ||
diff --git a/keyboards/mectechpad/keyboard.json b/keyboards/mectechpad/keyboard.json new file mode 100644 index 0000000000..93c1fbaefc --- /dev/null +++ b/keyboards/mectechpad/keyboard.json | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | { | ||
| 2 | "manufacturer": "Printronics", | ||
| 3 | "keyboard_name": "Mectechpad", | ||
| 4 | "maintainer": "jacksaxi", | ||
| 5 | "bootloader": "rp2040", | ||
| 6 | "debounce": 15, | ||
| 7 | "diode_direction": "ROW2COL", | ||
| 8 | "features": { | ||
| 9 | "bootmagic": true, | ||
| 10 | "extrakey": true, | ||
| 11 | "mousekey": true | ||
| 12 | }, | ||
| 13 | "matrix_pins": { | ||
| 14 | "rows": ["GP13", "GP26", "GP15", "GP14"], | ||
| 15 | "cols": ["GP29", "GP28", "GP27"] | ||
| 16 | }, | ||
| 17 | "processor": "RP2040", | ||
| 18 | "url": "printronics.gr", | ||
| 19 | "usb": { | ||
| 20 | "device_version": "1.0.0", | ||
| 21 | "pid": "0x1A2B", | ||
| 22 | "vid": "0x3C4D" | ||
| 23 | }, | ||
| 24 | "layouts": { | ||
| 25 | "LAYOUT": { | ||
| 26 | "layout": [ | ||
| 27 | {"matrix": [0, 0], "x": 0, "y": 0}, | ||
| 28 | {"matrix": [1, 0], "x": 0, "y": 1}, | ||
| 29 | {"matrix": [1, 1], "x": 1, "y": 1}, | ||
| 30 | {"matrix": [1, 2], "x": 2, "y": 1}, | ||
| 31 | {"matrix": [2, 0], "x": 0, "y": 2}, | ||
| 32 | {"matrix": [2, 1], "x": 1, "y": 2}, | ||
| 33 | {"matrix": [2, 2], "x": 2, "y": 2}, | ||
| 34 | {"matrix": [3, 0], "x": 0, "y": 3}, | ||
| 35 | {"matrix": [3, 1], "x": 1, "y": 3}, | ||
| 36 | {"matrix": [3, 2], "x": 2, "y": 3} | ||
| 37 | ] | ||
| 38 | } | ||
| 39 | } | ||
| 40 | } | ||
diff --git a/keyboards/mectechpad/keymaps/default/keymap.c b/keyboards/mectechpad/keymaps/default/keymap.c new file mode 100644 index 0000000000..7e19ec069f --- /dev/null +++ b/keyboards/mectechpad/keymaps/default/keymap.c | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | // Copyright 2025 Jack Sachinidhs (@jacksaxi) | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | #include QMK_KEYBOARD_H | ||
| 4 | |||
| 5 | enum layers { | ||
| 6 | _LAYER0, | ||
| 7 | _LAYER1, | ||
| 8 | _LAYER2, | ||
| 9 | _LAYER3 | ||
| 10 | }; | ||
| 11 | |||
| 12 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 13 | [_LAYER0] = LAYOUT( | ||
| 14 | TO(_LAYER1), | ||
| 15 | KC_1, KC_2, KC_3, | ||
| 16 | KC_4, KC_5, KC_6, | ||
| 17 | KC_7, KC_8, KC_9 | ||
| 18 | ), | ||
| 19 | [_LAYER1] = LAYOUT( | ||
| 20 | TO(_LAYER2), | ||
| 21 | KC_Q, KC_W, KC_E, | ||
| 22 | KC_R, KC_T, KC_Y, | ||
| 23 | KC_U, KC_I, KC_O | ||
| 24 | ), | ||
| 25 | [_LAYER2] = LAYOUT( | ||
| 26 | TO(_LAYER3), | ||
| 27 | KC_A, KC_S, KC_D, | ||
| 28 | KC_F, KC_G, KC_H, | ||
| 29 | KC_J, KC_K, KC_L | ||
| 30 | ), | ||
| 31 | [_LAYER3] = LAYOUT( | ||
| 32 | TO(_LAYER0), | ||
| 33 | KC_Z, KC_X, KC_C, | ||
| 34 | KC_V, KC_B, KC_N, | ||
| 35 | KC_M, KC_COMM, KC_DOT | ||
| 36 | ) | ||
| 37 | }; | ||
diff --git a/keyboards/mectechpad/mectechpad.c b/keyboards/mectechpad/mectechpad.c new file mode 100644 index 0000000000..0aa520db1a --- /dev/null +++ b/keyboards/mectechpad/mectechpad.c | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | // Copyright 2025 Jack Sachinidhs (@jacksaxi) | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | #include "quantum.h" | ||
| 4 | |||
| 5 | void keyboard_post_init_kb(void) { | ||
| 6 | // Initialize LED pins | ||
| 7 | gpio_set_pin_output(LED_PIN_LAYER_0); | ||
| 8 | gpio_write_pin_low(LED_PIN_LAYER_0); | ||
| 9 | gpio_set_pin_output(LED_PIN_LAYER_1); | ||
| 10 | gpio_write_pin_low(LED_PIN_LAYER_1); | ||
| 11 | gpio_set_pin_output(LED_PIN_LAYER_2); | ||
| 12 | gpio_write_pin_low(LED_PIN_LAYER_2); | ||
| 13 | gpio_set_pin_output(LED_PIN_LAYER_3); | ||
| 14 | gpio_write_pin_low(LED_PIN_LAYER_3); | ||
| 15 | |||
| 16 | keyboard_post_init_user(); | ||
| 17 | } | ||
| 18 | |||
| 19 | // Update LEDs based on the current layer | ||
| 20 | void housekeeping_task_kb(void) { | ||
| 21 | gpio_write_pin(LED_PIN_LAYER_0, (get_highest_layer(layer_state) == 0)); | ||
| 22 | gpio_write_pin(LED_PIN_LAYER_1, (get_highest_layer(layer_state) == 1)); | ||
| 23 | gpio_write_pin(LED_PIN_LAYER_2, (get_highest_layer(layer_state) == 2)); | ||
| 24 | gpio_write_pin(LED_PIN_LAYER_3, (get_highest_layer(layer_state) == 3)); | ||
| 25 | } | ||
diff --git a/keyboards/mectechpad/readme.md b/keyboards/mectechpad/readme.md new file mode 100644 index 0000000000..515326baab --- /dev/null +++ b/keyboards/mectechpad/readme.md | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | # Mectechpad | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [Jack Sachinidhs](https://github.com/jacksaxi) | ||
| 6 | * Hardware Supported: rp2040 | ||
| 7 | * Hardware Availability: [Printronics Website](https://printronics.gr) | ||
| 8 | |||
| 9 | Make example for this keyboard (after setting up your build environment): | ||
| 10 | |||
| 11 | make mectechpad:default | ||
| 12 | |||
| 13 | Flashing example for this keyboard: | ||
| 14 | |||
| 15 | make mectechpad:default:flash | ||
| 16 | |||
| 17 | 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). | ||
| 18 | |||
| 19 | ## Bootloader | ||
| 20 | |||
| 21 | Enter the bootloader in 3 ways: | ||
| 22 | |||
| 23 | * **Bootmagic reset**: Hold down the key at (0,0) in the matrix (the top left key) and plug in the keyboard | ||
| 24 | * **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead | ||
| 25 | * **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available | ||
