diff options
| author | Félix <59839401+v3lmx@users.noreply.github.com> | 2025-10-30 21:11:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-30 20:11:40 +0000 |
| commit | 62d87fa4464d601746343ca750de2ffa8cf4650e (patch) | |
| tree | 78e028896d348594f2457a15e1b13170359927c3 /keyboards | |
| parent | 8e5550dbb219591eee97f533568ba9a6271f5d84 (diff) | |
[Keyboard] Add Cornifi keyboard (#25753)
Diffstat (limited to 'keyboards')
| -rw-r--r-- | keyboards/cornifi/config.h | 14 | ||||
| -rw-r--r-- | keyboards/cornifi/keyboard.json | 96 | ||||
| -rw-r--r-- | keyboards/cornifi/keymaps/default/keymap.c | 27 | ||||
| -rw-r--r-- | keyboards/cornifi/readme.md | 32 |
4 files changed, 169 insertions, 0 deletions
diff --git a/keyboards/cornifi/config.h b/keyboards/cornifi/config.h new file mode 100644 index 0000000000..36750714de --- /dev/null +++ b/keyboards/cornifi/config.h | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | // Copyright 2024-2025 QMK | ||
| 2 | // SPDX-License-Identifier: GPL-3.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | #define SERIAL_USART_FULL_DUPLEX | ||
| 7 | #define SERIAL_USART_TX_PIN GP12 | ||
| 8 | #define SERIAL_USART_RX_PIN GP13 | ||
| 9 | #define USB_VBUS_PIN GP24 | ||
| 10 | |||
| 11 | /* RP2040- and hardware-specific config */ | ||
| 12 | #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET | ||
| 13 | #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U | ||
| 14 | #define PICO_XOSC_STARTUP_DELAY_MULTIPLIER 64 | ||
diff --git a/keyboards/cornifi/keyboard.json b/keyboards/cornifi/keyboard.json new file mode 100644 index 0000000000..68e062ad33 --- /dev/null +++ b/keyboards/cornifi/keyboard.json | |||
| @@ -0,0 +1,96 @@ | |||
| 1 | { | ||
| 2 | "manufacturer": "v3lmx", | ||
| 3 | "keyboard_name": "cornifi", | ||
| 4 | "maintainer": "v3lmx", | ||
| 5 | "bootloader": "rp2040", | ||
| 6 | "diode_direction": "COL2ROW", | ||
| 7 | "features": { | ||
| 8 | "bootmagic": true, | ||
| 9 | "extrakey": true, | ||
| 10 | "mousekey": true, | ||
| 11 | "nkro": true | ||
| 12 | }, | ||
| 13 | "matrix_pins": { | ||
| 14 | "direct": [ | ||
| 15 | ["GP21", "GP25", "GP26", "GP28", "GP29", "GP5"], | ||
| 16 | ["GP20", "GP22", "GP27", "GP2", "GP3", "GP8"], | ||
| 17 | ["GP19", "GP23", "GP1", "GP0", "GP4", null], | ||
| 18 | [null, null, "GP16", "GP17", "GP18", null] | ||
| 19 | ] | ||
| 20 | }, | ||
| 21 | "processor": "RP2040", | ||
| 22 | "split": { | ||
| 23 | "bootmagic": { | ||
| 24 | "matrix": [4, 0] | ||
| 25 | }, | ||
| 26 | "enabled": true, | ||
| 27 | "matrix_pins": { | ||
| 28 | "right": { | ||
| 29 | "direct": [ | ||
| 30 | ["GP9", "GP8", "GP4", "GP3", "GP2", "GP25"], | ||
| 31 | ["GP10", "GP6", "GP1", "GP28", "GP27", "GP21"], | ||
| 32 | ["GP11", "GP5", "GP0", "GP29", "GP26", null], | ||
| 33 | [null, null, "GP16", "GP17", "GP18", null] | ||
| 34 | ] | ||
| 35 | } | ||
| 36 | }, | ||
| 37 | "serial": { | ||
| 38 | "driver": "vendor" | ||
| 39 | } | ||
| 40 | }, | ||
| 41 | "url": "https://github.com/v3lmx/cornifi", | ||
| 42 | "usb": { | ||
| 43 | "device_version": "1.0.0", | ||
| 44 | "pid": "0x0000", | ||
| 45 | "vid": "0xFEED" | ||
| 46 | }, | ||
| 47 | "layout_aliases": { | ||
| 48 | "LAYOUT": "LAYOUT_split_3x5_3_ex2" | ||
| 49 | }, | ||
| 50 | "layouts": { | ||
| 51 | "LAYOUT_split_3x5_3_ex2": { | ||
| 52 | "layout": [ | ||
| 53 | {"matrix": [0, 0], "x": 0, "y": 0.9}, | ||
| 54 | {"matrix": [0, 1], "x": 1, "y": 0.3}, | ||
| 55 | {"matrix": [0, 2], "x": 2, "y": 0}, | ||
| 56 | {"matrix": [0, 3], "x": 3, "y": 0.35}, | ||
| 57 | {"matrix": [0, 4], "x": 4, "y": 0.45}, | ||
| 58 | {"matrix": [0, 5], "x": 5, "y": 0.7}, | ||
| 59 | {"matrix": [4, 5], "x": 8, "y": 0.7}, | ||
| 60 | {"matrix": [4, 4], "x": 9, "y": 0.45}, | ||
| 61 | {"matrix": [4, 3], "x": 10, "y": 0.35}, | ||
| 62 | {"matrix": [4, 2], "x": 11, "y": 0}, | ||
| 63 | {"matrix": [4, 1], "x": 12, "y": 0.3}, | ||
| 64 | {"matrix": [4, 0], "x": 13, "y": 0.9}, | ||
| 65 | {"matrix": [1, 0], "x": 0, "y": 1.9}, | ||
| 66 | {"matrix": [1, 1], "x": 1, "y": 1.3}, | ||
| 67 | {"matrix": [1, 2], "x": 2, "y": 1}, | ||
| 68 | {"matrix": [1, 3], "x": 3, "y": 1.35}, | ||
| 69 | {"matrix": [1, 4], "x": 4, "y": 1.45}, | ||
| 70 | {"matrix": [1, 5], "x": 5, "y": 1.7}, | ||
| 71 | {"matrix": [5, 5], "x": 8, "y": 1.7}, | ||
| 72 | {"matrix": [5, 4], "x": 9, "y": 1.45}, | ||
| 73 | {"matrix": [5, 3], "x": 10, "y": 1.35}, | ||
| 74 | {"matrix": [5, 2], "x": 11, "y": 1}, | ||
| 75 | {"matrix": [5, 1], "x": 12, "y": 1.3}, | ||
| 76 | {"matrix": [5, 0], "x": 13, "y": 1.9}, | ||
| 77 | {"matrix": [2, 0], "x": 0, "y": 2.9}, | ||
| 78 | {"matrix": [2, 1], "x": 1, "y": 2.3}, | ||
| 79 | {"matrix": [2, 2], "x": 2, "y": 2}, | ||
| 80 | {"matrix": [2, 3], "x": 3, "y": 2.35}, | ||
| 81 | {"matrix": [2, 4], "x": 4, "y": 2.45}, | ||
| 82 | {"matrix": [6, 4], "x": 9, "y": 2.45}, | ||
| 83 | {"matrix": [6, 3], "x": 10, "y": 2.35}, | ||
| 84 | {"matrix": [6, 2], "x": 11, "y": 2}, | ||
| 85 | {"matrix": [6, 1], "x": 12, "y": 2.3}, | ||
| 86 | {"matrix": [6, 0], "x": 13, "y": 2.9}, | ||
| 87 | {"matrix": [3, 2], "x": 3, "y": 3.7}, | ||
| 88 | {"matrix": [3, 3], "x": 4, "y": 3.7}, | ||
| 89 | {"matrix": [3, 4], "x": 5, "y": 3.2, "h": 1.5}, | ||
| 90 | {"matrix": [7, 4], "x": 8, "y": 3.2, "h": 1.5}, | ||
| 91 | {"matrix": [7, 3], "x": 9, "y": 3.7}, | ||
| 92 | {"matrix": [7, 2], "x": 10, "y": 3.7} | ||
| 93 | ] | ||
| 94 | } | ||
| 95 | } | ||
| 96 | } | ||
diff --git a/keyboards/cornifi/keymaps/default/keymap.c b/keyboards/cornifi/keymaps/default/keymap.c new file mode 100644 index 0000000000..207db11738 --- /dev/null +++ b/keyboards/cornifi/keymaps/default/keymap.c | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | // Copyright 2025 @v3lmx | ||
| 2 | // SPDX-License-Identifier: GPL-3.0-or-later | ||
| 3 | |||
| 4 | #include QMK_KEYBOARD_H | ||
| 5 | |||
| 6 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 7 | // clang-format off | ||
| 8 | [0] = LAYOUT_split_3x5_3_ex2( | ||
| 9 | KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, | ||
| 10 | KC_A, KC_S, KC_D, KC_F, KC_G, XXXXXXX, XXXXXXX, KC_H, KC_J, KC_K, KC_L, KC_SCLN, | ||
| 11 | KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, | ||
| 12 | KC_ESC, MO(1), KC_TAB, KC_ENT, MO(2), KC_BSPC | ||
| 13 | ), | ||
| 14 | [1] = LAYOUT_split_3x5_3_ex2( | ||
| 15 | KC_1, KC_2, KC_3, KC_4, KC_5, _______, _______, KC_6, KC_7, KC_8, KC_9, KC_0, | ||
| 16 | XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,_______, _______, KC_LEFT,KC_DOWN,KC_UP, KC_RIGHT,XXXXXXX, | ||
| 17 | XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX, XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX, | ||
| 18 | KC_LGUI,_______,KC_SPC, KC_ENT, XXXXXXX, KC_RALT | ||
| 19 | ), | ||
| 20 | [2] = LAYOUT_split_3x5_3_ex2( | ||
| 21 | KC_EXLM, KC_AT,KC_HASH, KC_DLR, KC_PERC,_______, _______, KC_CIRC,KC_AMPR,KC_ASTR,KC_LPRN,KC_RPRN, | ||
| 22 | XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,_______, _______, KC_MINS,KC_EQL, KC_LBRC,KC_RBRC,KC_BSLS, | ||
| 23 | XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX, KC_UNDS,KC_PLUS,KC_LCBR,KC_RCBR,KC_PIPE, | ||
| 24 | KC_LGUI,XXXXXXX, KC_SPC, KC_ENT, _______,KC_RALT | ||
| 25 | ) | ||
| 26 | // clang-format on | ||
| 27 | }; | ||
diff --git a/keyboards/cornifi/readme.md b/keyboards/cornifi/readme.md new file mode 100644 index 0000000000..3c4022e5ac --- /dev/null +++ b/keyboards/cornifi/readme.md | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | # cornifi | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | The cornifi keyboard is a split keyboard based on the [corne](https://github.com/foostan/crkbd) with the physical layout of the [fifi](https://github.com/raychengy/fifi_split_keeb). | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [v3lmx (github)](https://github.com/v3lmx) | ||
| 8 | * Hardware Availability: [v3lmx/cornifi (github)](https://github.com/v3lmx/cornifi) | ||
| 9 | |||
| 10 | Make example for this keyboard (after setting up your build environment): | ||
| 11 | |||
| 12 | make cornifi:default | ||
| 13 | |||
| 14 | Flashing example for this keyboard: | ||
| 15 | |||
| 16 | make cornifi:default:flash | ||
| 17 | |||
| 18 | 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). | ||
| 19 | |||
| 20 | ## Bootloader | ||
| 21 | |||
| 22 | Enter the bootloader in 3 ways: | ||
| 23 | |||
| 24 | * **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard | ||
| 25 | * **Physical reset button**: Hold down the `boot` button and press the `reset` button | ||
| 26 | * **Keycode in layout**: Press the key mapped to `TD_BOOT` twice if it is available | ||
| 27 | |||
| 28 | ## Keymap | ||
| 29 | |||
| 30 | It is recommended to make your own keymap using the [external userspace feature(https://docs.qmk.fm/newbs_external_userspace). | ||
| 31 | |||
| 32 | You can find an example here: [v3lmx qmk userspace](https://github.com/v3lmx/qmk_userspace) | ||
