···11+/* Copyright 2025 Pablo Jiménez Mateo (@pablojimenezmateo)
22+ *
33+ * This program is free software: you can redistribute it and/or modify
44+ * it under the terms of the GNU General Public License as published by
55+ * the Free Software Foundation, either version 2 of the License, or
66+ * (at your option) any later version.
77+ *
88+ * This program is distributed in the hope that it will be useful,
99+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
1010+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1111+ * GNU General Public License for more details.
1212+ *
1313+ * You should have received a copy of the GNU General Public License
1414+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
1515+ */
1616+#pragma once
1717+1818+#define EE_HANDS
1919+2020+#define MK_KINETIC_SPEED
2121+#define MOUSEKEY_INITIAL_SPEED 200
2222+#define MOUSEKEY_WHEEL_INITIAL_MOVEMENTS 2
2323+#define MOUSEKEY_WHEEL_BASE_MOVEMENTS 16
···11+/* Copyright 2025 Pablo Jiménez Mateo (@pablojimenezmateo)
22+ *
33+ * This program is free software: you can redistribute it and/or modify
44+ * it under the terms of the GNU General Public License as published by
55+ * the Free Software Foundation, either version 2 of the License, or
66+ * (at your option) any later version.
77+ *
88+ * This program is distributed in the hope that it will be useful,
99+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
1010+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1111+ * GNU General Public License for more details.
1212+ *
1313+ * You should have received a copy of the GNU General Public License
1414+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
1515+ */
1616+1717+ #include QMK_KEYBOARD_H
1818+1919+enum layer_names {
2020+ _MAIN,
2121+ _NUMBERS,
2222+ _SYMBOLS,
2323+ _NAVIGATION
2424+};
2525+2626+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
2727+ [_MAIN] = LAYOUT(
2828+ KC_NO, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_NO,
2929+ KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
3030+ KC_ESCAPE, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_NO,
3131+ 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)
3232+ ),
3333+ [_NUMBERS] = LAYOUT(
3434+ KC_NO, KC_F1, KC_F2, KC_F3, KC_F4, KC_NO, KC_NO, KC_7, KC_8, KC_9, KC_NO, KC_NO,
3535+ KC_NO, KC_F5, KC_F6, KC_F7, KC_F8, KC_NO, KC_NO, KC_4, KC_5, KC_6, KC_NO, KC_NO,
3636+ KC_NO, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_NO, KC_1, KC_2, KC_3, KC_NO, KC_NO,
3737+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_0, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
3838+ ),
3939+ [_SYMBOLS] = LAYOUT(
4040+ KC_NO, KC_PIPE, KC_AT, KC_LCBR, KC_RCBR, KC_CIRC, KC_QUOT, KC_DQUO, KC_EQL, KC_AMPR, KC_ASTR, KC_GRV,
4141+ KC_NO, KC_EXLM, KC_EXLM, KC_LPRN, KC_RPRN, KC_DLR, KC_EXLM, KC_QUES, KC_SLSH, KC_COLN, KC_SCLN, KC_PLUS,
4242+ KC_NO, KC_HASH, KC_PERC, KC_LBRC, KC_RBRC, KC_TILD, KC_LT, KC_GT, KC_MINS, KC_UNDS, KC_BSLS, KC_PSCR,
4343+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_BSPC, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, QK_BOOT
4444+ ),
4545+ [_NAVIGATION] = LAYOUT(
4646+ 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,
4747+ 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,
4848+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_NO, KC_BRIU,
4949+ 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
5050+ ),
5151+};
5252+5353+layer_state_t layer_state_set_user(layer_state_t state) {
5454+ switch (get_highest_layer(state)) {
5555+ case _MAIN:
5656+ /* Yellow */
5757+ rgb_matrix_sethsv_noeeprom(50, 255, 255); break;
5858+ case _NUMBERS:
5959+ /* Cyan */
6060+ rgb_matrix_sethsv_noeeprom(170, 255, 255); break;
6161+ case _SYMBOLS:
6262+ /* Purple */
6363+ rgb_matrix_sethsv_noeeprom(200, 255, 255); break;
6464+ case _NAVIGATION:
6565+ /* Green */
6666+ rgb_matrix_sethsv_noeeprom(85, 255, 255); break;
6767+ default:
6868+ /* Off */
6969+ rgb_matrix_sethsv_noeeprom(0, 0, 0); break;
7070+ }
7171+ return state;
7272+}
+28
keyboards/pablojimenezmateo/classic48/readme.md
···11+# pablojimenezmateo/classic48
22+33+
44+55+A custom split keyboard with 48 keys and addressable LEDs.
66+77+* Keyboard Maintainer: [Pablo Jimenez Mateo](https://github.com/pablojimenezmateo)
88+* Hardware Supported: RP2040 Pro Micro
99+* Hardware Availability: https://github.com/pablojimenezmateo/classic48
1010+1111+Make example for this keyboard (after setting up your build environment):
1212+1313+ make pablojimenezmateo/classic48:default
1414+1515+Flashing example for this keyboard:
1616+1717+ qmk flash -kb pablojimenezmateo/classic48 -km default -bl uf2-split-left
1818+ qmk flash -kb pablojimenezmateo/classic48 -km default -bl uf2-split-right
1919+2020+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).
2121+2222+## Bootloader
2323+2424+Enter the bootloader in 3 ways:
2525+2626+* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
2727+* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
2828+* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available