1 / 7
Macropad Gamepad — image 1
1 / 7

Macropad Gamepad

Order a print of this model

We calculate the final price from your selected file. You review and accept it before payment.

Saved on this device.

Model information

Category
Computers
License
Creative Commons — Attribution — Noncommercial — Share Alike

Gamepad on a Pro Micro board with the QMK system. The board is attached with hot glue. The keys are connected via a 1N 4148 diode. A microswitch is located on the board for easy software modification. The housing is assembled with 8mm M3 screws. The housing features heated M3 inserts. I used Black Linear keys. The keycap is MX Relegendable Keycap Shell Protection.

I'm attaching my QMK codes:

  • file keymap.c

#include QMK_KEYBOARD_H

// Układ z pustymi miejscami (KC_NO) zdefiniowanymi w info.json. // Wpisujemy tu po kolei 25 fizycznych klawiszy. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [0] = LAYOUT( // Wiersz 1 (6 klawiszy) KC_R, KC_I, KC_M, KC_VOLU, KC_VOLD, KC_1,

    // Wiersz 2 (6 klawiszy)
    KC_Q,    KC_E,    KC_F,    KC_Y,    KC_DEL,    KC_2,
    
    // Wiersz 3 (4 klawisze - kolumny 2, 4, 5, 6)
    KC_W,    KC_C,    KC_X,    KC_3,
    
    // Wiersz 4 (6 klawiszy)
    KC_A,    KC_S,    KC_D,    KC_LCTL,    KC_TAB,    KC_4,
    
    // Wiersz 5 (3 klawisze - kolumny 4, 5, 6)
    KC_LSFT,    KC_SPC,    KC_ESC
)

};

  • file keybord.json

{
    "keyboard_name": "Nowy Macropad 25",
    "url": "",
    "maintainer": "qmk",
    "width": 6,
    "height": 5,
    "processor": "atmega32u4",
    "bootloader": "caterina",
    "diode_direction": "COL2ROW",
    "manufacturer": "DIY",
    "usb": {
        "vid": "0xFEED",
        "pid": "0x0002",
        "device_version": "1.0.0"
    },
    "matrix_pins": {
        "cols": ["B3", "B2", "B6", "B5", "B4", "E6"],
        "rows": ["D7", "C6", "D4", "D0", "D1"]
    },
    "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": [0, 4], "x": 4, "y": 0}, {"matrix": [0, 5], "x": 5, "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": [1, 4], "x": 4, "y": 1}, {"matrix": [1, 5], "x": 5, "y": 1},
                                                     {"matrix": [2, 1], "x": 1, "y": 2},                                                    {"matrix": [2, 3], "x": 3, "y": 2}, {"matrix": [2, 4], "x": 4, "y": 2}, {"matrix": [2, 5], "x": 5, "y": 2},
                {"matrix": [3, 0], "x": 0, "y": 3}, {"matrix": [3, 1], "x": 1, "y": 3}, {"matrix": [3, 2], "x": 2, "y": 3}, {"matrix": [3, 3], "x": 3, "y": 3}, {"matrix": [3, 4], "x": 4, "y": 3}, {"matrix": [3, 5], "x": 5, "y": 3},
                                                                                                                            {"matrix": [4, 3], "x": 3, "y": 4}, {"matrix": [4, 4], "x": 4, "y": 4}, {"matrix": [4, 5], "x": 5, "y": 4}
            ]
        }
    }
}
  • rules.mk

MCU = atmega32u4
BOOTLOADER = caterina

BOOTMAGIC_ENABLE = yes MOUSEKEY_ENABLE = no EXTRAKEY_ENABLE = yes CONSOLE_ENABLE = no COMMAND_ENABLE = no BACKLIGHT_ENABLE = no RGBLIGHT_ENABLE = no NKRO_ENABLE = yes

Tags