diff --git a/keyboards/pablojimenezmateo/classic48/config.h b/keyboards/pablojimenezmateo/classic48/config.h new file mode 100644 index 00000000000..8716f34b750 --- /dev/null +++ b/keyboards/pablojimenezmateo/classic48/config.h @@ -0,0 +1,23 @@ +/* Copyright 2025 Pablo Jiménez Mateo (@pablojimenezmateo) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +#pragma once + +#define EE_HANDS + +#define MK_KINETIC_SPEED +#define MOUSEKEY_INITIAL_SPEED 200 +#define MOUSEKEY_WHEEL_INITIAL_MOVEMENTS 2 +#define MOUSEKEY_WHEEL_BASE_MOVEMENTS 16 diff --git a/keyboards/pablojimenezmateo/classic48/keyboard.json b/keyboards/pablojimenezmateo/classic48/keyboard.json new file mode 100644 index 00000000000..f315056d0ba --- /dev/null +++ b/keyboards/pablojimenezmateo/classic48/keyboard.json @@ -0,0 +1,167 @@ +{ + "manufacturer": "Pablo Jiménez Mateo", + "keyboard_name": "classic48", + "maintainer": "pablojimenezmateo", + "development_board": "promicro_rp2040", + "diode_direction": "COL2ROW", + "features": { + "bootmagic": true, + "extrakey": true, + "mousekey": true, + "rgb_matrix": true + }, + "matrix_pins": { + "cols": ["GP23", "GP21", "GP16", "GP15", "GP14", "GP13"], + "rows": ["GP27", "GP26", "GP22", "GP20"] + }, + "url": "https://github.com/pablojimenezmateo/classic48", + "usb": { + "device_version": "1.0.0", + "pid": "0x0000", + "vid": "0xFEED" + }, + "split": { + "enabled": true, + "serial": { + "driver": "vendor", + "pin": "GP28" + }, + "transport":{ + "sync": { + "layer_state": true + } + } + }, + "ws2812": { + "pin": "GP29", + "driver": "vendor" + }, + "rgb_matrix": { + "default": { + "hue": 180, + "sat": 100, + "val": 60 + }, + "driver": "ws2812", + "layout": [ + {"flags": 4, "matrix": [0, 0], "x": 0, "y": 0}, + {"flags": 4, "matrix": [0, 1], "x": 20, "y": 0}, + {"flags": 4, "matrix": [0, 2], "x": 40, "y": 0}, + {"flags": 4, "matrix": [0, 3], "x": 60, "y": 0}, + {"flags": 4, "matrix": [0, 4], "x": 80, "y": 0}, + {"flags": 4, "matrix": [0, 5], "x": 100, "y": 0}, + + + {"flags": 4, "matrix": [4, 0], "x": 240, "y": 0}, + {"flags": 4, "matrix": [4, 1], "x": 220, "y": 0}, + {"flags": 4, "matrix": [4, 2], "x": 200, "y": 0}, + {"flags": 4, "matrix": [4, 3], "x": 180, "y": 0}, + {"flags": 4, "matrix": [4, 4], "x": 160, "y": 0}, + {"flags": 4, "matrix": [4, 5], "x": 140, "y": 0}, + + {"flags": 4, "matrix": [1, 0], "x": 0, "y": 20}, + {"flags": 4, "matrix": [1, 1], "x": 20, "y": 20}, + {"flags": 4, "matrix": [1, 2], "x": 40, "y": 20}, + {"flags": 4, "matrix": [1, 3], "x": 60, "y": 20}, + {"flags": 4, "matrix": [1, 4], "x": 80, "y": 20}, + {"flags": 4, "matrix": [1, 5], "x": 100, "y": 20}, + + {"flags": 4, "matrix": [5, 0], "x": 240, "y": 20}, + {"flags": 4, "matrix": [5, 1], "x": 220, "y": 20}, + {"flags": 4, "matrix": [5, 2], "x": 200, "y": 20}, + {"flags": 4, "matrix": [5, 3], "x": 180, "y": 20}, + {"flags": 4, "matrix": [5, 4], "x": 160, "y": 20}, + {"flags": 4, "matrix": [5, 5], "x": 140, "y": 20}, + + {"flags": 4, "matrix": [2, 0], "x": 0, "y": 40}, + {"flags": 4, "matrix": [2, 1], "x": 20, "y": 40}, + {"flags": 4, "matrix": [2, 2], "x": 40, "y": 40}, + {"flags": 4, "matrix": [2, 3], "x": 60, "y": 40}, + {"flags": 4, "matrix": [2, 4], "x": 80, "y": 40}, + {"flags": 4, "matrix": [2, 5], "x": 100, "y": 40}, + + {"flags": 4, "matrix": [6, 0], "x": 240, "y": 40}, + {"flags": 4, "matrix": [6, 1], "x": 220, "y": 40}, + {"flags": 4, "matrix": [6, 2], "x": 200, "y": 40}, + {"flags": 4, "matrix": [6, 3], "x": 180, "y": 40}, + {"flags": 4, "matrix": [6, 4], "x": 160, "y": 40}, + {"flags": 4, "matrix": [6, 5], "x": 140, "y": 40}, + + {"flags": 4, "matrix": [3, 0], "x": 0, "y": 60}, + {"flags": 4, "matrix": [3, 1], "x": 20, "y": 60}, + {"flags": 4, "matrix": [3, 2], "x": 40, "y": 60}, + {"flags": 4, "matrix": [3, 3], "x": 60, "y": 60}, + {"flags": 4, "matrix": [3, 4], "x": 80, "y": 60}, + {"flags": 4, "matrix": [3, 5], "x": 100, "y": 60}, + + {"flags": 4, "matrix": [7, 0], "x": 240, "y": 60}, + {"flags": 4, "matrix": [7, 1], "x": 220, "y": 60}, + {"flags": 4, "matrix": [7, 2], "x": 200, "y": 60}, + {"flags": 4, "matrix": [7, 3], "x": 180, "y": 60}, + {"flags": 4, "matrix": [7, 4], "x": 160, "y": 60}, + {"flags": 4, "matrix": [7, 5], "x": 140, "y": 60} + ], + "max_brightness": 200 + }, + "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": [4, 5], "x": 7, "y": 0}, + {"matrix": [4, 4], "x": 8, "y": 0}, + {"matrix": [4, 3], "x": 9, "y": 0}, + {"matrix": [4, 2], "x": 10, "y": 0}, + {"matrix": [4, 1], "x": 11, "y": 0}, + {"matrix": [4, 0], "x": 12, "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": [5, 5], "x": 7, "y": 1}, + {"matrix": [5, 4], "x": 8, "y": 1}, + {"matrix": [5, 3], "x": 9, "y": 1}, + {"matrix": [5, 2], "x": 10, "y": 1}, + {"matrix": [5, 1], "x": 11, "y": 1}, + {"matrix": [5, 0], "x": 12, "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": [2, 4], "x": 4, "y": 2}, + {"matrix": [2, 5], "x": 5, "y": 2}, + + {"matrix": [6, 5], "x": 7, "y": 2}, + {"matrix": [6, 4], "x": 8, "y": 2}, + {"matrix": [6, 3], "x": 9, "y": 2}, + {"matrix": [6, 2], "x": 10, "y": 2}, + {"matrix": [6, 1], "x": 11, "y": 2}, + {"matrix": [6, 0], "x": 12, "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": [7, 5], "x": 7, "y": 3}, + {"matrix": [7, 4], "x": 8, "y": 3}, + {"matrix": [7, 3], "x": 9, "y": 3}, + {"matrix": [7, 2], "x": 10, "y": 3}, + {"matrix": [7, 1], "x": 11, "y": 3}, + {"matrix": [7, 0], "x": 12, "y": 3} + ] + } + } +} diff --git a/keyboards/pablojimenezmateo/classic48/keymaps/default/keymap.c b/keyboards/pablojimenezmateo/classic48/keymaps/default/keymap.c new file mode 100644 index 00000000000..20dbf6269ee --- /dev/null +++ b/keyboards/pablojimenezmateo/classic48/keymaps/default/keymap.c @@ -0,0 +1,72 @@ +/* Copyright 2025 Pablo Jiménez Mateo (@pablojimenezmateo) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + #include QMK_KEYBOARD_H + +enum layer_names { + _MAIN, + _NUMBERS, + _SYMBOLS, + _NAVIGATION +}; + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [_MAIN] = LAYOUT( + KC_NO, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_NO, + KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, + KC_ESCAPE, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_NO, + LCTL(KC_X), LCTL(KC_C), LCTL(KC_V), KC_NO, MO(_NUMBERS), LT(3, KC_SPC), LT(2, KC_ENTER), KC_LSFT, KC_NO, KC_LGUI, KC_NO, LCTL(KC_F) + ), + [_NUMBERS] = LAYOUT( + KC_NO, KC_F1, KC_F2, KC_F3, KC_F4, KC_NO, KC_NO, KC_7, KC_8, KC_9, KC_NO, KC_NO, + KC_NO, KC_F5, KC_F6, KC_F7, KC_F8, KC_NO, KC_NO, KC_4, KC_5, KC_6, KC_NO, KC_NO, + KC_NO, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_NO, KC_1, KC_2, KC_3, KC_NO, KC_NO, + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_0, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO + ), + [_SYMBOLS] = LAYOUT( + KC_NO, KC_PIPE, KC_AT, KC_LCBR, KC_RCBR, KC_CIRC, KC_QUOT, KC_DQUO, KC_EQL, KC_AMPR, KC_ASTR, KC_GRV, + KC_NO, KC_EXLM, KC_EXLM, KC_LPRN, KC_RPRN, KC_DLR, KC_EXLM, KC_QUES, KC_SLSH, KC_COLN, KC_SCLN, KC_PLUS, + KC_NO, KC_HASH, KC_PERC, KC_LBRC, KC_RBRC, KC_TILD, KC_LT, KC_GT, KC_MINS, KC_UNDS, KC_BSLS, KC_PSCR, + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_BSPC, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, QK_BOOT + ), + [_NAVIGATION] = LAYOUT( + KC_NO, KC_NO, MS_BTN4, MS_UP, MS_BTN5, KC_NO, LSFT(KC_LEFT), LALT(KC_DOWN), LALT(KC_UP), LSFT(KC_RGHT), KC_NO, KC_VOLU, + KC_NO, KC_NO, MS_LEFT, MS_DOWN, MS_RGHT, KC_LEFT_CTRL, KC_HOME, MS_BTN1, MS_BTN3, MS_BTN2, KC_END, KC_VOLD, + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_NO, KC_BRIU, + LCTL(KC_X), LCTL(KC_C), LCTL(KC_V), KC_NO, KC_NO, KC_NO, MS_WHLD, MS_WHLU, KC_NO, KC_NO, KC_NO, KC_BRID + ), +}; + +layer_state_t layer_state_set_user(layer_state_t state) { + switch (get_highest_layer(state)) { + case _MAIN: + /* Yellow */ + rgb_matrix_sethsv_noeeprom(50, 255, 255); break; + case _NUMBERS: + /* Cyan */ + rgb_matrix_sethsv_noeeprom(170, 255, 255); break; + case _SYMBOLS: + /* Purple */ + rgb_matrix_sethsv_noeeprom(200, 255, 255); break; + case _NAVIGATION: + /* Green */ + rgb_matrix_sethsv_noeeprom(85, 255, 255); break; + default: + /* Off */ + rgb_matrix_sethsv_noeeprom(0, 0, 0); break; + } + return state; +} diff --git a/keyboards/pablojimenezmateo/classic48/readme.md b/keyboards/pablojimenezmateo/classic48/readme.md new file mode 100644 index 00000000000..ff3dd072c55 --- /dev/null +++ b/keyboards/pablojimenezmateo/classic48/readme.md @@ -0,0 +1,28 @@ +# pablojimenezmateo/classic48 + +![pablojimenezmateo/classic48](https://i.imgur.com/czFWWhX.jpeg) + +A custom split keyboard with 48 keys and addressable LEDs. + +* Keyboard Maintainer: [Pablo Jimenez Mateo](https://github.com/pablojimenezmateo) +* Hardware Supported: RP2040 Pro Micro +* Hardware Availability: https://github.com/pablojimenezmateo/classic48 + +Make example for this keyboard (after setting up your build environment): + + make pablojimenezmateo/classic48:default + +Flashing example for this keyboard: + + qmk flash -kb pablojimenezmateo/classic48 -km default -bl uf2-split-left + qmk flash -kb pablojimenezmateo/classic48 -km default -bl uf2-split-right + +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