-
-
Notifications
You must be signed in to change notification settings - Fork 39.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add cornia keyboard * Update Fire keymap * [Cornia/Doc] Host image on imgur * [Cornia/config] Remove unnecessary defines * [Cornia] Move I2C stuff to keyboard level * [Cornia/config] Remove unnecessary defines & move all callbacks to keymap.c * [Cornia] Use tri-layer in default keymap * [Cornia/makefiles] remove license headers & root makefile * [Cornia] Put common configuration to top keyboard level * [Cornia] Remove unecessary custom keycodes * [Cornia] Fix readme * [Cornia] Fix RGB keycodes * [Cornia] Fix config files * [Cornia] Fix readme * [Cornia] Fix mcuconf.h license
- Loading branch information
Showing
16 changed files
with
937 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* Copyright 2024 Vaarai | ||
* | ||
* 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 <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#pragma once | ||
|
||
/* Select hand configuration */ | ||
// #define MASTER_LEFT | ||
#define MASTER_RIGHT | ||
// #define EE_HANDS | ||
|
||
/* I²C config */ | ||
#define I2C_DRIVER I2CD1 | ||
#define I2C1_SDA_PIN GP10 | ||
#define I2C1_SCL_PIN GP11 | ||
|
||
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET // Activates the double-tap behavior | ||
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 200U // Timeout window in ms in which the double tap can occur. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* Copyright 2024 Vaarai | ||
* | ||
* 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 <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include "cornia.h" | ||
|
||
// 'Cornia', 32x32px | ||
#define OLED_LOGO_CORNIA {\ | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, \ | ||
0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xe0, 0x00, \ | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xf8, 0xff, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xfd, 0xe1, \ | ||
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, \ | ||
0x00, 0x00, 0xc0, 0xf8, 0xff, 0xff, 0xff, 0x3f, 0x07, 0x00, 0x00, 0x00, 0x07, 0x3f, 0xff, 0xff, \ | ||
0xff, 0xf8, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ | ||
0x00, 0x1e, 0x1f, 0x1f, 0x1f, 0x07, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x07, \ | ||
0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x0e, 0x00 \ | ||
} | ||
|
||
void cornia_render_logo(void) { | ||
#ifdef OLED_ENABLE | ||
static const char PROGMEM logo[] = OLED_LOGO_CORNIA; | ||
oled_write_raw_P(logo, sizeof(logo)); | ||
#endif | ||
} | ||
|
||
bool oled_task_kb(void) { | ||
if (!oled_task_user()) { | ||
return false; | ||
} | ||
cornia_render_logo(); | ||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* Copyright 2024 Vaarai | ||
* | ||
* 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 <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "quantum.h" | ||
|
||
void cornia_render_logo(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
{ | ||
"manufacturer": "Vaarai", | ||
"maintainer": "Vaarai", | ||
"url": "https://github.com/Vaarai/Cornia", | ||
"usb": { | ||
"vid": "0xFEED" | ||
}, | ||
"processor": "RP2040", | ||
"bootloader": "rp2040", | ||
"split": { | ||
"enabled": true, | ||
"serial": { | ||
"driver": "vendor", | ||
"pin": "GP1" | ||
}, | ||
"transport": { | ||
"sync": { | ||
"matrix_state": true | ||
} | ||
} | ||
}, | ||
"features": { | ||
"extrakey": true, | ||
"mousekey": true, | ||
"bootmagic": true, | ||
"nkro": true, | ||
"oled": true, | ||
"rgb_matrix": true | ||
}, | ||
"community_layouts": [ "split_3x6_3" ], | ||
"layout_aliases": { | ||
"LAYOUT": "LAYOUT_split_3x6_3" | ||
}, | ||
"layouts": { | ||
"LAYOUT_split_3x6_3": { | ||
"layout": [ | ||
{"matrix": [0, 0], "x": 0, "y": 0.3}, | ||
{"matrix": [0, 1], "x": 1, "y": 0.3}, | ||
{"matrix": [0, 2], "x": 2, "y": 0.1}, | ||
{"matrix": [0, 3], "x": 3, "y": 0}, | ||
{"matrix": [0, 4], "x": 4, "y": 0.1}, | ||
{"matrix": [0, 5], "x": 5, "y": 0.2}, | ||
{"matrix": [4, 5], "x": 9, "y": 0.2}, | ||
{"matrix": [4, 4], "x": 10, "y": 0.1}, | ||
{"matrix": [4, 3], "x": 11, "y": 0}, | ||
{"matrix": [4, 2], "x": 12, "y": 0.1}, | ||
{"matrix": [4, 1], "x": 13, "y": 0.3}, | ||
{"matrix": [4, 0], "x": 14, "y": 0.3}, | ||
{"matrix": [1, 0], "x": 0, "y": 1.3}, | ||
{"matrix": [1, 1], "x": 1, "y": 1.3}, | ||
{"matrix": [1, 2], "x": 2, "y": 1.1}, | ||
{"matrix": [1, 3], "x": 3, "y": 1}, | ||
{"matrix": [1, 4], "x": 4, "y": 1.1}, | ||
{"matrix": [1, 5], "x": 5, "y": 1.2}, | ||
{"matrix": [5, 5], "x": 9, "y": 1.2}, | ||
{"matrix": [5, 4], "x": 10, "y": 1.1}, | ||
{"matrix": [5, 3], "x": 11, "y": 1}, | ||
{"matrix": [5, 2], "x": 12, "y": 1.1}, | ||
{"matrix": [5, 1], "x": 13, "y": 1.3}, | ||
{"matrix": [5, 0], "x": 14, "y": 1.3}, | ||
{"matrix": [2, 0], "x": 0, "y": 2.3}, | ||
{"matrix": [2, 1], "x": 1, "y": 2.3}, | ||
{"matrix": [2, 2], "x": 2, "y": 2.1}, | ||
{"matrix": [2, 3], "x": 3, "y": 2}, | ||
{"matrix": [2, 4], "x": 4, "y": 2.1}, | ||
{"matrix": [2, 5], "x": 5, "y": 2.2}, | ||
{"matrix": [6, 5], "x": 9, "y": 2.2}, | ||
{"matrix": [6, 4], "x": 10, "y": 2.1}, | ||
{"matrix": [6, 3], "x": 11, "y": 2}, | ||
{"matrix": [6, 2], "x": 12, "y": 2.1}, | ||
{"matrix": [6, 1], "x": 13, "y": 2.3}, | ||
{"matrix": [6, 0], "x": 14, "y": 2.3}, | ||
{"matrix": [3, 3], "x": 4, "y": 3.7}, | ||
{"matrix": [3, 4], "x": 5, "y": 3.7}, | ||
{"matrix": [3, 5], "x": 6, "y": 3.2}, | ||
{"matrix": [7, 5], "x": 8, "y": 3.2}, | ||
{"matrix": [7, 4], "x": 9, "y": 3.7}, | ||
{"matrix": [7, 3], "x": 10, "y": 3.7} | ||
] | ||
} | ||
}, | ||
"ws2812": { | ||
"driver": "vendor", | ||
"pin": "GP0" | ||
}, | ||
"rgb_matrix": { | ||
"driver": "ws2812", | ||
"sleep": true, | ||
"split_count": [21, 21], | ||
"animations": { | ||
"static_gradient": true, | ||
"breathing": true | ||
}, | ||
"layout": [ | ||
{"matrix": [3, 5], "x": 95, "y": 63, "flags": 1}, | ||
{"matrix": [2, 5], "x": 85, "y": 39, "flags": 4}, | ||
{"matrix": [1, 5], "x": 85, "y": 21, "flags": 4}, | ||
{"matrix": [0, 5], "x": 85, "y": 4, "flags": 4}, | ||
{"matrix": [0, 4], "x": 68, "y": 2, "flags": 4}, | ||
{"matrix": [1, 4], "x": 68, "y": 19, "flags": 4}, | ||
{"matrix": [2, 4], "x": 68, "y": 37, "flags": 4}, | ||
{"matrix": [3, 4], "x": 80, "y": 58, "flags": 1}, | ||
{"matrix": [3, 3], "x": 60, "y": 55, "flags": 1}, | ||
{"matrix": [2, 3], "x": 50, "y": 35, "flags": 4}, | ||
{"matrix": [1, 3], "x": 50, "y": 13, "flags": 4}, | ||
{"matrix": [0, 3], "x": 50, "y": 0, "flags": 4}, | ||
{"matrix": [0, 2], "x": 33, "y": 3, "flags": 4}, | ||
{"matrix": [1, 2], "x": 33, "y": 20, "flags": 4}, | ||
{"matrix": [2, 2], "x": 33, "y": 37, "flags": 4}, | ||
{"matrix": [2, 1], "x": 16, "y": 42, "flags": 4}, | ||
{"matrix": [1, 1], "x": 16, "y": 24, "flags": 4}, | ||
{"matrix": [0, 1], "x": 16, "y": 7, "flags": 4}, | ||
{"matrix": [0, 0], "x": 0, "y": 7, "flags": 1}, | ||
{"matrix": [1, 0], "x": 0, "y": 24, "flags": 1}, | ||
{"matrix": [2, 0], "x": 0, "y": 41, "flags": 1}, | ||
{"matrix": [7, 5], "x": 129, "y": 63, "flags": 1}, | ||
{"matrix": [6, 5], "x": 139, "y": 39, "flags": 4}, | ||
{"matrix": [5, 5], "x": 139, "y": 21, "flags": 4}, | ||
{"matrix": [4, 5], "x": 139, "y": 4, "flags": 4}, | ||
{"matrix": [4, 4], "x": 156, "y": 2, "flags": 4}, | ||
{"matrix": [5, 4], "x": 156, "y": 19, "flags": 4}, | ||
{"matrix": [6, 4], "x": 156, "y": 37, "flags": 4}, | ||
{"matrix": [7, 4], "x": 144, "y": 58, "flags": 1}, | ||
{"matrix": [7, 3], "x": 164, "y": 55, "flags": 1}, | ||
{"matrix": [6, 3], "x": 174, "y": 35, "flags": 4}, | ||
{"matrix": [5, 3], "x": 174, "y": 13, "flags": 4}, | ||
{"matrix": [4, 3], "x": 174, "y": 0, "flags": 4}, | ||
{"matrix": [4, 2], "x": 191, "y": 3, "flags": 4}, | ||
{"matrix": [5, 2], "x": 191, "y": 20, "flags": 4}, | ||
{"matrix": [6, 2], "x": 191, "y": 37, "flags": 4}, | ||
{"matrix": [6, 1], "x": 208, "y": 42, "flags": 4}, | ||
{"matrix": [5, 1], "x": 208, "y": 24, "flags": 4}, | ||
{"matrix": [4, 1], "x": 208, "y": 7, "flags": 4}, | ||
{"matrix": [4, 0], "x": 224, "y": 7, "flags": 1}, | ||
{"matrix": [5, 0], "x": 224, "y": 24, "flags": 1}, | ||
{"matrix": [6, 0], "x": 224, "y": 41, "flags": 1} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/* Copyright 2024 Vaarai | ||
* | ||
* 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 <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include QMK_KEYBOARD_H | ||
|
||
/* Layers definitions */ | ||
enum layers { | ||
_ALPHA, | ||
_LOWER, | ||
_UPPER, | ||
_ADJUST, | ||
}; | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
[_ALPHA] = LAYOUT_split_3x6_3( | ||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
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_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RCTL, | ||
//|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------| | ||
KC_LSFT, TL_LOWR, KC_SPC, KC_ENT, TL_UPPR, KC_RSFT | ||
//`--------------------------' `--------------------------' | ||
), | ||
|
||
[_LOWER] = LAYOUT_split_3x6_3( | ||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_DEL, | ||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP,KC_RIGHT, XXXXXXX, | ||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
KC_LALT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_RALT, | ||
//|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------| | ||
KC_LGUI, _______, _______, _______, _______, _______ | ||
//`--------------------------' `--------------------------' | ||
), | ||
|
||
[_UPPER] = LAYOUT_split_3x6_3( | ||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
_______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
_______, KC_SLSH, KC_LCBR, KC_LPRN, KC_LBRC, KC_MINS, KC_UNDS, KC_RBRC, KC_RPRN, KC_RCBR, KC_BSLS, _______, | ||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
_______, XXXXXXX, KC_GRV, KC_QUES, KC_EQL, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, | ||
//|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------| | ||
_______, _______, _______, _______, _______, KC_RGUI | ||
//`--------------------------' `--------------------------' | ||
), | ||
|
||
[_ADJUST] = LAYOUT_split_3x6_3( | ||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
QK_BOOT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, | ||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| | ||
XXXXXXX, RM_TOGG, RM_HUEU, RM_VALU, XXXXXXX, XXXXXXX, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
//|--------+--------+--------+--------+--------|--------| |--------+--------+--------+--------+--------+--------| | ||
XXXXXXX, RM_NEXT, RM_HUED, RM_VALD, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
//|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------| | ||
_______, _______, _______, _______, _______, _______ | ||
//`--------------------------' `--------------------------' | ||
), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TRI_LAYER_ENABLE = yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* Copyright 2024 Vaarai | ||
* | ||
* 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 <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#pragma once | ||
|
||
/* Split */ | ||
#define SPLIT_ACTIVITY_ENABLE | ||
#define SPLIT_LAYER_STATE_ENABLE | ||
#define SPLIT_LED_STATE_ENABLE | ||
#define SPLIT_MODS_ENABLE | ||
|
||
/* Trackpad */ | ||
#define SPLIT_POINTING_ENABLE | ||
#define POINTING_DEVICE_RIGHT | ||
#define POINTING_DEVICE_ROTATION_90 | ||
#define CIRQUE_PINNACLE_DIAMETER_MM 40 | ||
#define CIRQUE_PINNACLE_TAP_ENABLE | ||
#define CIRQUE_PINNACLE_CURVED_OVERLAY | ||
#define CIRQUE_PINNACLE_POSITION_MODE CIRQUE_PINNACLE_RELATIVE_MODE | ||
#define CIRQUE_PINNACLE_ATTENUATION EXTREG__TRACK_ADCCONFIG__ADC_ATTENUATE_2X |
Oops, something went wrong.