···1+/* Copyright 2025 Pablo Jiménez Mateo (@pablojimenezmateo)
2+ *
3+ * This program is free software: you can redistribute it and/or modify
4+ * it under the terms of the GNU General Public License as published by
5+ * the Free Software Foundation, either version 2 of the License, or
6+ * (at your option) any later version.
7+ *
8+ * This program is distributed in the hope that it will be useful,
9+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
10+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+ * GNU General Public License for more details.
12+ *
13+ * You should have received a copy of the GNU General Public License
14+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
15+ */
16+#pragma once
17+18+#define EE_HANDS
19+20+#define MK_KINETIC_SPEED
21+#define MOUSEKEY_INITIAL_SPEED 200
22+#define MOUSEKEY_WHEEL_INITIAL_MOVEMENTS 2
23+#define MOUSEKEY_WHEEL_BASE_MOVEMENTS 16
···1+/* Copyright 2025 Pablo Jiménez Mateo (@pablojimenezmateo)
2+ *
3+ * This program is free software: you can redistribute it and/or modify
4+ * it under the terms of the GNU General Public License as published by
5+ * the Free Software Foundation, either version 2 of the License, or
6+ * (at your option) any later version.
7+ *
8+ * This program is distributed in the hope that it will be useful,
9+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
10+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+ * GNU General Public License for more details.
12+ *
13+ * You should have received a copy of the GNU General Public License
14+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
15+ */
16+17+ #include QMK_KEYBOARD_H
18+19+enum layer_names {
20+ _MAIN,
21+ _NUMBERS,
22+ _SYMBOLS,
23+ _NAVIGATION
24+};
25+26+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
27+ [_MAIN] = LAYOUT(
28+ KC_NO, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_NO,
29+ KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
30+ KC_ESCAPE, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_NO,
31+ 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)
32+ ),
33+ [_NUMBERS] = LAYOUT(
34+ KC_NO, KC_F1, KC_F2, KC_F3, KC_F4, KC_NO, KC_NO, KC_7, KC_8, KC_9, KC_NO, KC_NO,
35+ KC_NO, KC_F5, KC_F6, KC_F7, KC_F8, KC_NO, KC_NO, KC_4, KC_5, KC_6, KC_NO, KC_NO,
36+ KC_NO, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_NO, KC_1, KC_2, KC_3, KC_NO, KC_NO,
37+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_0, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
38+ ),
39+ [_SYMBOLS] = LAYOUT(
40+ KC_NO, KC_PIPE, KC_AT, KC_LCBR, KC_RCBR, KC_CIRC, KC_QUOT, KC_DQUO, KC_EQL, KC_AMPR, KC_ASTR, KC_GRV,
41+ KC_NO, KC_EXLM, KC_EXLM, KC_LPRN, KC_RPRN, KC_DLR, KC_EXLM, KC_QUES, KC_SLSH, KC_COLN, KC_SCLN, KC_PLUS,
42+ KC_NO, KC_HASH, KC_PERC, KC_LBRC, KC_RBRC, KC_TILD, KC_LT, KC_GT, KC_MINS, KC_UNDS, KC_BSLS, KC_PSCR,
43+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_BSPC, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, QK_BOOT
44+ ),
45+ [_NAVIGATION] = LAYOUT(
46+ 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,
47+ 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,
48+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_NO, KC_BRIU,
49+ 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
50+ ),
51+};
52+53+layer_state_t layer_state_set_user(layer_state_t state) {
54+ switch (get_highest_layer(state)) {
55+ case _MAIN:
56+ /* Yellow */
57+ rgb_matrix_sethsv_noeeprom(50, 255, 255); break;
58+ case _NUMBERS:
59+ /* Cyan */
60+ rgb_matrix_sethsv_noeeprom(170, 255, 255); break;
61+ case _SYMBOLS:
62+ /* Purple */
63+ rgb_matrix_sethsv_noeeprom(200, 255, 255); break;
64+ case _NAVIGATION:
65+ /* Green */
66+ rgb_matrix_sethsv_noeeprom(85, 255, 255); break;
67+ default:
68+ /* Off */
69+ rgb_matrix_sethsv_noeeprom(0, 0, 0); break;
70+ }
71+ return state;
72+}
+28
keyboards/pablojimenezmateo/classic48/readme.md
···0000000000000000000000000000
···1+# pablojimenezmateo/classic48
2+3+
4+5+A custom split keyboard with 48 keys and addressable LEDs.
6+7+* Keyboard Maintainer: [Pablo Jimenez Mateo](https://github.com/pablojimenezmateo)
8+* Hardware Supported: RP2040 Pro Micro
9+* Hardware Availability: https://github.com/pablojimenezmateo/classic48
10+11+Make example for this keyboard (after setting up your build environment):
12+13+ make pablojimenezmateo/classic48:default
14+15+Flashing example for this keyboard:
16+17+ qmk flash -kb pablojimenezmateo/classic48 -km default -bl uf2-split-left
18+ qmk flash -kb pablojimenezmateo/classic48 -km default -bl uf2-split-right
19+20+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).
21+22+## Bootloader
23+24+Enter the bootloader in 3 ways:
25+26+* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
27+* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
28+* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available