diff options
| author | Paul James <paul@peej.co.uk> | 2022-01-15 08:28:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-14 23:28:03 -0800 |
| commit | 922e29f16c660133ae1d25ab64b91d388fdd17d0 (patch) | |
| tree | 003d5728fb2591336ef561eb15673bd70267856d | |
| parent | b2ea12aaa50a47e3a142fc334018873f2a05b8b2 (diff) | |
| download | qmk_firmware-922e29f16c660133ae1d25ab64b91d388fdd17d0.tar.gz qmk_firmware-922e29f16c660133ae1d25ab64b91d388fdd17d0.zip | |
[Keyboard] Add Rosaline (#15595)
| -rw-r--r-- | keyboards/peej/rosaline/config.h | 41 | ||||
| -rw-r--r-- | keyboards/peej/rosaline/info.json | 126 | ||||
| -rw-r--r-- | keyboards/peej/rosaline/keymaps/default/keymap.c | 64 | ||||
| -rw-r--r-- | keyboards/peej/rosaline/keymaps/ortho/keymap.c | 64 | ||||
| -rw-r--r-- | keyboards/peej/rosaline/keymaps/via-ortho/keymap.c | 46 | ||||
| -rw-r--r-- | keyboards/peej/rosaline/keymaps/via-ortho/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/peej/rosaline/keymaps/via/keymap.c | 46 | ||||
| -rw-r--r-- | keyboards/peej/rosaline/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/peej/rosaline/readme.md | 18 | ||||
| -rw-r--r-- | keyboards/peej/rosaline/rosaline.c | 29 | ||||
| -rw-r--r-- | keyboards/peej/rosaline/rosaline.h | 58 | ||||
| -rw-r--r-- | keyboards/peej/rosaline/rules.mk | 18 |
12 files changed, 512 insertions, 0 deletions
diff --git a/keyboards/peej/rosaline/config.h b/keyboards/peej/rosaline/config.h new file mode 100644 index 000000000..603cad792 --- /dev/null +++ b/keyboards/peej/rosaline/config.h | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* Copyright 2021 Paul James | ||
| 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 | #pragma once | ||
| 18 | |||
| 19 | #include "config_common.h" | ||
| 20 | |||
| 21 | /* USB Device descriptor parameter */ | ||
| 22 | #define VENDOR_ID 0x706A | ||
| 23 | #define PRODUCT_ID 0x0003 | ||
| 24 | #define DEVICE_VER 0x0001 | ||
| 25 | #define MANUFACTURER Peej | ||
| 26 | #define PRODUCT Rosaline | ||
| 27 | |||
| 28 | /* key matrix size */ | ||
| 29 | #define MATRIX_ROWS 8 | ||
| 30 | #define MATRIX_COLS 8 | ||
| 31 | #define MATRIX_ROW_PINS { C0, B5, B4, B3, B2, B1, C3, D5 } | ||
| 32 | #define MATRIX_COL_PINS { B0, D7, D6, C2, D4, D1, D0, C1 } | ||
| 33 | #define UNUSED_PINS | ||
| 34 | |||
| 35 | /* COL2ROW, ROW2COL*/ | ||
| 36 | #define DIODE_DIRECTION COL2ROW | ||
| 37 | |||
| 38 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
| 39 | |||
| 40 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 41 | #define DEBOUNCE 5 | ||
diff --git a/keyboards/peej/rosaline/info.json b/keyboards/peej/rosaline/info.json new file mode 100644 index 000000000..8a6f71aae --- /dev/null +++ b/keyboards/peej/rosaline/info.json | |||
| @@ -0,0 +1,126 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Rosaline", | ||
| 3 | "url": "https://github.com/peej/rosaline-keyboard", | ||
| 4 | "maintainer": "Peej", | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT_staggered_40": { | ||
| 7 | "layout": [ | ||
| 8 | { "x": 0, "y": 0, "w": 1.5 }, | ||
| 9 | { "x": 1, "y": 0 }, | ||
| 10 | { "x": 2, "y": 0 }, | ||
| 11 | { "x": 3, "y": 0 }, | ||
| 12 | { "x": 4, "y": 0 }, | ||
| 13 | { "x": 5, "y": 0 }, | ||
| 14 | { "x": 6, "y": 0 }, | ||
| 15 | { "x": 7, "y": 0 }, | ||
| 16 | { "x": 8, "y": 0 }, | ||
| 17 | { "x": 9, "y": 0 }, | ||
| 18 | { "x": 10, "y": 0 }, | ||
| 19 | { "x": 11, "y": 0 }, | ||
| 20 | { "x": 12, "y": 0 }, | ||
| 21 | { "x": 13, "y": 0, "w": 1.5 }, | ||
| 22 | { "x": 0, "y": 1, "w": 1.75 }, | ||
| 23 | { "x": 1, "y": 1 }, | ||
| 24 | { "x": 2, "y": 1 }, | ||
| 25 | { "x": 3, "y": 1 }, | ||
| 26 | { "x": 4, "y": 1 }, | ||
| 27 | { "x": 5, "y": 1 }, | ||
| 28 | { "x": 6, "y": 1 }, | ||
| 29 | { "x": 7, "y": 1 }, | ||
| 30 | { "x": 8, "y": 1 }, | ||
| 31 | { "x": 9, "y": 1 }, | ||
| 32 | { "x": 10, "y": 1 }, | ||
| 33 | { "x": 11, "y": 1 }, | ||
| 34 | { "x": 12, "y": 1, "w": 2.25 }, | ||
| 35 | { "x": 0, "y": 2, "w": 2.25 }, | ||
| 36 | { "x": 1, "y": 2 }, | ||
| 37 | { "x": 2, "y": 2 }, | ||
| 38 | { "x": 3, "y": 2 }, | ||
| 39 | { "x": 4, "y": 2 }, | ||
| 40 | { "x": 5, "y": 2 }, | ||
| 41 | { "x": 6, "y": 2 }, | ||
| 42 | { "x": 7, "y": 2 }, | ||
| 43 | { "x": 8, "y": 2 }, | ||
| 44 | { "x": 9, "y": 2 }, | ||
| 45 | { "x": 10, "y": 2 }, | ||
| 46 | { "x": 11, "y": 2, "w": 1.75 }, | ||
| 47 | { "x": 12, "y": 2 }, | ||
| 48 | { "x": 0, "y": 3, "w": 1.5 }, | ||
| 49 | { "x": 1, "y": 3, "w": 1.5 }, | ||
| 50 | { "x": 2, "y": 3, "w": 1.5 }, | ||
| 51 | { "x": 3, "y": 3, "w": 2.75 }, | ||
| 52 | { "x": 4, "y": 3 }, | ||
| 53 | { "x": 5, "y": 3, "w": 2.25 }, | ||
| 54 | { "x": 6, "y": 3 }, | ||
| 55 | { "x": 7, "y": 3 }, | ||
| 56 | { "x": 8, "y": 3 }, | ||
| 57 | { "x": 9, "y": 3 }, | ||
| 58 | { "x": 10, "y": 3 } | ||
| 59 | ] | ||
| 60 | }, | ||
| 61 | "LAYOUT_ortho_4x15": { | ||
| 62 | "layout": [ | ||
| 63 | { "x": 0, "y": 0 }, | ||
| 64 | { "x": 1, "y": 0 }, | ||
| 65 | { "x": 2, "y": 0 }, | ||
| 66 | { "x": 3, "y": 0 }, | ||
| 67 | { "x": 4, "y": 0 }, | ||
| 68 | { "x": 5, "y": 0 }, | ||
| 69 | { "x": 6, "y": 0 }, | ||
| 70 | { "x": 7, "y": 0 }, | ||
| 71 | { "x": 8, "y": 0 }, | ||
| 72 | { "x": 9, "y": 0 }, | ||
| 73 | { "x": 10, "y": 0 }, | ||
| 74 | { "x": 11, "y": 0 }, | ||
| 75 | { "x": 12, "y": 0 }, | ||
| 76 | { "x": 13, "y": 0 }, | ||
| 77 | { "x": 14, "y": 0 }, | ||
| 78 | { "x": 0, "y": 1 }, | ||
| 79 | { "x": 1, "y": 1 }, | ||
| 80 | { "x": 2, "y": 1 }, | ||
| 81 | { "x": 3, "y": 1 }, | ||
| 82 | { "x": 4, "y": 1 }, | ||
| 83 | { "x": 5, "y": 1 }, | ||
| 84 | { "x": 6, "y": 1 }, | ||
| 85 | { "x": 7, "y": 1 }, | ||
| 86 | { "x": 8, "y": 1 }, | ||
| 87 | { "x": 9, "y": 1 }, | ||
| 88 | { "x": 10, "y": 1 }, | ||
| 89 | { "x": 11, "y": 1 }, | ||
| 90 | { "x": 12, "y": 1 }, | ||
| 91 | { "x": 13, "y": 1 }, | ||
| 92 | { "x": 14, "y": 1 }, | ||
| 93 | { "x": 0, "y": 2 }, | ||
| 94 | { "x": 1, "y": 2 }, | ||
| 95 | { "x": 2, "y": 2 }, | ||
| 96 | { "x": 3, "y": 2 }, | ||
| 97 | { "x": 4, "y": 2 }, | ||
| 98 | { "x": 5, "y": 2 }, | ||
| 99 | { "x": 6, "y": 2 }, | ||
| 100 | { "x": 7, "y": 2 }, | ||
| 101 | { "x": 8, "y": 2 }, | ||
| 102 | { "x": 9, "y": 2 }, | ||
| 103 | { "x": 10, "y": 2 }, | ||
| 104 | { "x": 11, "y": 2 }, | ||
| 105 | { "x": 12, "y": 2 }, | ||
| 106 | { "x": 13, "y": 2 }, | ||
| 107 | { "x": 14, "y": 2 }, | ||
| 108 | { "x": 0, "y": 3 }, | ||
| 109 | { "x": 1, "y": 3 }, | ||
| 110 | { "x": 2, "y": 3 }, | ||
| 111 | { "x": 3, "y": 3 }, | ||
| 112 | { "x": 4, "y": 3 }, | ||
| 113 | { "x": 5, "y": 3 }, | ||
| 114 | { "x": 6, "y": 3 }, | ||
| 115 | { "x": 7, "y": 3 }, | ||
| 116 | { "x": 8, "y": 3 }, | ||
| 117 | { "x": 9, "y": 3 }, | ||
| 118 | { "x": 10, "y": 3 }, | ||
| 119 | { "x": 11, "y": 3 }, | ||
| 120 | { "x": 12, "y": 3 }, | ||
| 121 | { "x": 13, "y": 3 }, | ||
| 122 | { "x": 14, "y": 3 } | ||
| 123 | ] | ||
| 124 | } | ||
| 125 | } | ||
| 126 | } | ||
diff --git a/keyboards/peej/rosaline/keymaps/default/keymap.c b/keyboards/peej/rosaline/keymaps/default/keymap.c new file mode 100644 index 000000000..fc659293f --- /dev/null +++ b/keyboards/peej/rosaline/keymaps/default/keymap.c | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | /* Copyright 2021 Paul James | ||
| 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 layers { | ||
| 20 | _QWERTY = 0, | ||
| 21 | _FUNCTION | ||
| 22 | }; | ||
| 23 | |||
| 24 | #define FN MO(_FUNCTION) | ||
| 25 | |||
| 26 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 27 | |||
| 28 | /* Qwerty | ||
| 29 | * ,--------.------.------.------.------.------.------.------.------.------.------.------.------.--------. | ||
| 30 | * | Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | Bksp | | ||
| 31 | * |--------'-.----'-.----'-.----'-.----'-.----'-.----'-.----'-.----'-.----'-.----'-.----'-.----'--------| | ||
| 32 | * | Esc | A | S | D | F | G | H | J | K | L | ; | ' | Enter | | ||
| 33 | * |----------'---.--'---.--'---.--'---.--'---.--'---.--'---.--'---.--'---.--'---.--'---.--'------.------| | ||
| 34 | * | Shft | Z | X | C | V | B | N | M | , | . | / | Shft | Fn | | ||
| 35 | * |--------.-----'.-----'--.---'------'------'---.--'------'--.---'--.---'--.---'--.---'--.------+------| | ||
| 36 | * | Ctrl | Gui | Alt | Space | Space | Alt | Ctrl | Left | Down | Up | Rght | | ||
| 37 | * `--------'------'--------'---------------------'------------'------'------'------'------'------'------' | ||
| 38 | */ | ||
| 39 | [_QWERTY] = LAYOUT_staggered_40( | ||
| 40 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, | ||
| 41 | KC_GESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
| 42 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, FN, | ||
| 43 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 44 | ), | ||
| 45 | |||
| 46 | /* Function | ||
| 47 | * ,--------.------.------.------.------.------.------.------.------.------.------.------.------.--------. | ||
| 48 | * | Tab | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Del | | ||
| 49 | * |--------'-.----'-.----'-.----'-.----'-.----'-.----'-.----'-.----'-.----'-.----'-.----'-.----'--------| | ||
| 50 | * | Esc | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | Enter | | ||
| 51 | * |----------'---.--'---.--'---.--'---.--'---.--'---.--'---.--'---.--'---.--'---.--'---.--'------.------| | ||
| 52 | * | Shft | Z | X | C | V | B | N | M | , | . | / | Shft | Fn | | ||
| 53 | * |--------.-----'.-----'--.---'------'------'---.--'------'--.---'--.---'--.---'--.---'--.------+------| | ||
| 54 | * | Ctrl | Gui | Alt | Space | Space | Alt | Ctrl | Left | Down | Up | Rght | | ||
| 55 | * `--------'------'--------'---------------------'------------'------'------'------'------'------'------' | ||
| 56 | */ | ||
| 57 | [_FUNCTION] = LAYOUT_staggered_40( | ||
| 58 | _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_DEL, | ||
| 59 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, _______, | ||
| 60 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_BSLS, _______, _______, | ||
| 61 | _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END | ||
| 62 | ) | ||
| 63 | |||
| 64 | }; | ||
diff --git a/keyboards/peej/rosaline/keymaps/ortho/keymap.c b/keyboards/peej/rosaline/keymaps/ortho/keymap.c new file mode 100644 index 000000000..e307ecccb --- /dev/null +++ b/keyboards/peej/rosaline/keymaps/ortho/keymap.c | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | /* Copyright 2021 Paul James | ||
| 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 layers { | ||
| 20 | _QWERTY = 0, | ||
| 21 | _FUNCTION | ||
| 22 | }; | ||
| 23 | |||
| 24 | #define FN MO(_FUNCTION) | ||
| 25 | |||
| 26 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 27 | |||
| 28 | /* Qwerty | ||
| 29 | * ,--------------------------------------------------------------------------------------------------------. | ||
| 30 | * | Tab | Q | W | E | R | T | 7 | 8 | 9 | Y | U | I | O | P | Bksp | | ||
| 31 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 32 | * | Esc | A | S | D | F | G | 4 | 5 | 6 | H | J | K | L | ; | ' | | ||
| 33 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 34 | * | Shft | Z | X | C | V | B | 1 | 2 | 3 | N | M | , | . | / | Entr | | ||
| 35 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 36 | * | Ctrl | Fn | Alt | Cmd | Fn | Spac | Spac | 0 | Spac | Spac | Fn | Left | Down | Up | Rght | | ||
| 37 | * `--------------------------------------------------------------------------------------------------------' | ||
| 38 | */ | ||
| 39 | [_QWERTY] = LAYOUT_ortho_4x15( | ||
| 40 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_P7, KC_P8, KC_P9, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 41 | KC_GESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_P4, KC_P5, KC_P6, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 42 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_P1, KC_P2, KC_P3, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | ||
| 43 | KC_LCTL, FN, KC_LALT, KC_LGUI, FN, KC_SPC, KC_SPC, KC_P0, KC_SPC, KC_SPC, FN, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 44 | ), | ||
| 45 | |||
| 46 | /* Function | ||
| 47 | * ,--------------------------------------------------------------------------------------------------------. | ||
| 48 | * | ` | 1 | 2 | 3 | 4 | 5 | F7 | F8 | F9 | 6 | 7 | 8 | 9 | 0 | Del | | ||
| 49 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 50 | * | Del | F1 | F2 | F3 | F4 | F5 | F4 | F5 | F6 | F6 | - | = | [ | ] | \ | | ||
| 51 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 52 | * | | F7 | F8 | F9 | F10 | F11 | F1 | F2 | F3 | F12 |ISO # |ISO / | | | | | ||
| 53 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 54 | * | | | | | | | | F10 | | | | Next | Vol- | Vol+ | Play | | ||
| 55 | * `--------------------------------------------------------------------------------------------------------' | ||
| 56 | */ | ||
| 57 | [_FUNCTION] = LAYOUT_ortho_4x15( | ||
| 58 | _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_F7, KC_F8, KC_F9, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
| 59 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F4, KC_F5, KC_F6, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 60 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F1, KC_F2, KC_F3, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______, | ||
| 61 | _______, _______, _______, _______, _______, _______, _______, KC_F10, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
| 62 | ) | ||
| 63 | |||
| 64 | }; | ||
diff --git a/keyboards/peej/rosaline/keymaps/via-ortho/keymap.c b/keyboards/peej/rosaline/keymaps/via-ortho/keymap.c new file mode 100644 index 000000000..0a6068fa9 --- /dev/null +++ b/keyboards/peej/rosaline/keymaps/via-ortho/keymap.c | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | /* Copyright 2021 Paul James | ||
| 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 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | |||
| 21 | [0] = LAYOUT_ortho_4x15( | ||
| 22 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_P7, KC_P8, KC_P9, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 23 | KC_GESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_P4, KC_P5, KC_P6, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 24 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_P1, KC_P2, KC_P3, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | ||
| 25 | KC_LCTL, MO(1), KC_LALT, KC_LGUI, MO(1), KC_SPC, KC_SPC, KC_P0, KC_SPC, KC_SPC, MO(1), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 26 | ), | ||
| 27 | [1] = LAYOUT_ortho_4x15( | ||
| 28 | _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_F7, KC_F8, KC_F9, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
| 29 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F4, KC_F5, KC_F6, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 30 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F1, KC_F2, KC_F3, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, KC_F10, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
| 32 | ), | ||
| 33 | [2] = LAYOUT_ortho_4x15( | ||
| 34 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 35 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 36 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 37 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 38 | ), | ||
| 39 | [3] = LAYOUT_ortho_4x15( | ||
| 40 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 41 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 42 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 44 | ), | ||
| 45 | |||
| 46 | }; | ||
diff --git a/keyboards/peej/rosaline/keymaps/via-ortho/rules.mk b/keyboards/peej/rosaline/keymaps/via-ortho/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/peej/rosaline/keymaps/via-ortho/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/peej/rosaline/keymaps/via/keymap.c b/keyboards/peej/rosaline/keymaps/via/keymap.c new file mode 100644 index 000000000..1d6ac2ed8 --- /dev/null +++ b/keyboards/peej/rosaline/keymaps/via/keymap.c | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | /* Copyright 2021 Paul James | ||
| 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 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | |||
| 21 | [0] = LAYOUT_staggered_40( | ||
| 22 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, | ||
| 23 | KC_GESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
| 24 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), | ||
| 25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 26 | ), | ||
| 27 | [1] = LAYOUT_staggered_40( | ||
| 28 | _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_DEL, | ||
| 29 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, _______, | ||
| 30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_BSLS, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END | ||
| 32 | ), | ||
| 33 | [2] = LAYOUT_staggered_40( | ||
| 34 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 35 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 36 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 37 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 38 | ), | ||
| 39 | [3] = LAYOUT_staggered_40( | ||
| 40 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 41 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 42 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 44 | ), | ||
| 45 | |||
| 46 | }; | ||
diff --git a/keyboards/peej/rosaline/keymaps/via/rules.mk b/keyboards/peej/rosaline/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/peej/rosaline/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/peej/rosaline/readme.md b/keyboards/peej/rosaline/readme.md new file mode 100644 index 000000000..033faa34f --- /dev/null +++ b/keyboards/peej/rosaline/readme.md | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | # Rosaline | ||
| 2 | |||
| 3 | ## Through-hole 40% keyboard PCB for 60% cases | ||
| 4 | |||
| 5 |  | ||
| 6 | |||
| 7 | 40% staggered or 4x15 ortholinear PCB for 60% tray mount cases with only through hole components. | ||
| 8 | |||
| 9 | * Keyboard Maintainer: [Paul James](https://github.com/peej) | ||
| 10 | * Hardware Supported: ATMEGA328p with vusb [PCB](https://github.com/peej/rosaline-keyboard) | ||
| 11 | |||
| 12 | Make example for this keyboard (after setting up your build environment): | ||
| 13 | |||
| 14 | make peej/rosaline:default | ||
| 15 | |||
| 16 | ## Bootloader | ||
| 17 | |||
| 18 | Use usbasploader in [hsgw's repository](https://github.com/hsgw/USBaspLoader/tree/plaid). | ||
diff --git a/keyboards/peej/rosaline/rosaline.c b/keyboards/peej/rosaline/rosaline.c new file mode 100644 index 000000000..57141e806 --- /dev/null +++ b/keyboards/peej/rosaline/rosaline.c | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | /* Copyright 2021 Paul James | ||
| 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 "rosaline.h" | ||
| 18 | |||
| 19 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
| 20 | writePin(LED1, record->event.pressed); | ||
| 21 | |||
| 22 | return process_record_user(keycode, record); | ||
| 23 | } | ||
| 24 | |||
| 25 | layer_state_t layer_state_set_kb(layer_state_t state) { | ||
| 26 | writePin(LED2, state); | ||
| 27 | |||
| 28 | return layer_state_set_user(state); | ||
| 29 | } | ||
diff --git a/keyboards/peej/rosaline/rosaline.h b/keyboards/peej/rosaline/rosaline.h new file mode 100644 index 000000000..1e41a2e95 --- /dev/null +++ b/keyboards/peej/rosaline/rosaline.h | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | /* Copyright 2021 Paul James | ||
| 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 | #pragma once | ||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | #define XXX KC_NO | ||
| 22 | |||
| 23 | #define LAYOUT_staggered_40( \ | ||
| 24 | k00, k01, k10, k20, k21, k30, k31, k40, k41, k50, k60, k61, k70, k71, \ | ||
| 25 | k02, k11, k12, k22, k23, k32, k33, k42, k51, k52, k62, k63, k72, \ | ||
| 26 | k03, k13, k14, k24, k34, k35, k43, k44, k53, k54, k64, k73, k74, \ | ||
| 27 | k04, k05, k15, k25, k45, k55, k56, k65, k66, k75, k76 \ | ||
| 28 | ) \ | ||
| 29 | { \ | ||
| 30 | { k00, k10, k20, k30, k40, k50, k60, k70 }, \ | ||
| 31 | { k01, k11, k21, k31, k41, k51, k61, k71 }, \ | ||
| 32 | { k02, k12, k22, k32, k42, k52, k62, k72 }, \ | ||
| 33 | { k03, k13, k23, k33, k43, k53, k63, k73 }, \ | ||
| 34 | { k04, k14, k24, k34, k44, k54, k64, k74 }, \ | ||
| 35 | { k05, k15, k25, k35, k45, k55, k65, k75 }, \ | ||
| 36 | { XXX, XXX, XXX, XXX, XXX, k56, k66, k76 }, \ | ||
| 37 | { XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX } \ | ||
| 38 | } | ||
| 39 | |||
| 40 | #define LAYOUT_ortho_4x15( \ | ||
| 41 | k00, k04, k10, k14, k20, k24, k30, k34, k40, k44, k50, k54, k60, k64, k70, \ | ||
| 42 | k01, k05, k11, k15, k21, k25, k31, k35, k41, k45, k51, k55, k61, k65, k71, \ | ||
| 43 | k02, k06, k12, k16, k22, k26, k32, k36, k42, k46, k52, k56, k62, k66, k72, \ | ||
| 44 | k03, k07, k13, k17, k23, k27, k33, k37, k43, k47, k53, k57, k63, k67, k73 \ | ||
| 45 | ) \ | ||
| 46 | { \ | ||
| 47 | { k00, k10, k20, k30, k40, k50, k60, k70 }, \ | ||
| 48 | { k01, k11, k21, k31, k41, k51, k61, k71 }, \ | ||
| 49 | { k02, k12, k22, k32, k42, k52, k62, k72 }, \ | ||
| 50 | { k03, k13, k23, k33, k43, k53, k63, k73 }, \ | ||
| 51 | { k04, k14, k24, k34, k44, k54, k64, XXX }, \ | ||
| 52 | { k05, k15, k25, k35, k45, k55, k65, XXX }, \ | ||
| 53 | { k06, k16, k26, k36, k46, k56, k66, XXX }, \ | ||
| 54 | { k07, k17, k27, k37, k47, k57, k67, XXX } \ | ||
| 55 | } | ||
| 56 | |||
| 57 | #define LED1 C5 | ||
| 58 | #define LED2 C4 | ||
diff --git a/keyboards/peej/rosaline/rules.mk b/keyboards/peej/rosaline/rules.mk new file mode 100644 index 000000000..d8133b74a --- /dev/null +++ b/keyboards/peej/rosaline/rules.mk | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega328p | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = USBasp | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
| 11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 15 | NKRO_ENABLE = no # Enable N-Key Rollover | ||
| 16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 17 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 18 | AUDIO_ENABLE = no # Audio output | ||
