diff options
| author | Luis Garcia <luis@bitjester.com> | 2023-04-05 12:35:34 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-05 12:35:34 -0600 |
| commit | d058091d0b2f98791d37c4a77779a8202592284f (patch) | |
| tree | fb8487c257020233cff14543829f2b349916c46b /keyboards/preonic | |
| parent | 596319c92fb8d61918a89133804ba232158e2323 (diff) | |
Add peterfalken userspace & keymaps (#19897)
Co-authored-by: Peter.Falken <luis.garcia@bitjester.com>
Diffstat (limited to 'keyboards/preonic')
| -rw-r--r-- | keyboards/preonic/keymaps/peterfalken/config.h | 49 | ||||
| -rw-r--r-- | keyboards/preonic/keymaps/peterfalken/keymap.c | 92 | ||||
| -rw-r--r-- | keyboards/preonic/keymaps/peterfalken/readme.md | 14 | ||||
| -rw-r--r-- | keyboards/preonic/keymaps/peterfalken/rules.mk | 8 |
4 files changed, 163 insertions, 0 deletions
diff --git a/keyboards/preonic/keymaps/peterfalken/config.h b/keyboards/preonic/keymaps/peterfalken/config.h new file mode 100644 index 0000000000..797bd2c78d --- /dev/null +++ b/keyboards/preonic/keymaps/peterfalken/config.h | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | /* Copyright 2015-2021 Jack Humbert | ||
| 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 | #ifdef AUDIO_ENABLE | ||
| 20 | # define STARTUP_SONG SONG(PREONIC_SOUND) | ||
| 21 | // #define STARTUP_SONG SONG(NO_SOUND) | ||
| 22 | |||
| 23 | # define DEFAULT_LAYER_SONGS \ | ||
| 24 | { SONG(QWERTY_SOUND), SONG(COLEMAK_SOUND), SONG(DVORAK_SOUND) } | ||
| 25 | #endif | ||
| 26 | |||
| 27 | /* | ||
| 28 | * MIDI options | ||
| 29 | */ | ||
| 30 | |||
| 31 | /* enable basic MIDI features: | ||
| 32 | - MIDI notes can be sent when in Music mode is on | ||
| 33 | */ | ||
| 34 | |||
| 35 | #define MIDI_BASIC | ||
| 36 | |||
| 37 | /* enable advanced MIDI features: | ||
| 38 | - MIDI notes can be added to the keymap | ||
| 39 | - Octave shift and transpose | ||
| 40 | - Virtual sustain, portamento, and modulation wheel | ||
| 41 | - etc. | ||
| 42 | */ | ||
| 43 | //#define MIDI_ADVANCED | ||
| 44 | |||
| 45 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
| 46 | //#define MIDI_TONE_KEYCODE_OCTAVES 2 | ||
| 47 | |||
| 48 | // Most tactile encoders have detents every 4 stages | ||
| 49 | #define ENCODER_RESOLUTION 4 | ||
diff --git a/keyboards/preonic/keymaps/peterfalken/keymap.c b/keyboards/preonic/keymaps/peterfalken/keymap.c new file mode 100644 index 0000000000..7123ba7669 --- /dev/null +++ b/keyboards/preonic/keymaps/peterfalken/keymap.c | |||
| @@ -0,0 +1,92 @@ | |||
| 1 | // Copyright 2023 Peter.Falken (@PeterFalken) | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #include "muse.h" | ||
| 5 | #include "peterfalken.h" | ||
| 6 | |||
| 7 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 8 | /* Qwerty | ||
| 9 | * ,-----------------------------------------------------------------------------------. | ||
| 10 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del | | ||
| 11 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 12 | * | Esc | Q | W | E | R | T | Y | U | I | O | P | Bksp | | ||
| 13 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 14 | * | Tab | A | S | D | F | G | H | J | K | L | ; | " | | ||
| 15 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 16 | * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | | ||
| 17 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 18 | * | ▽ | Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | | ||
| 19 | * `-----------------------------------------------------------------------------------' | ||
| 20 | */ | ||
| 21 | [_QWERTY] = LAYOUT_preonic_grid( | ||
| 22 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
| 23 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 24 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 25 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | ||
| 26 | _______, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 27 | ), | ||
| 28 | |||
| 29 | /* Lower | ||
| 30 | * ,-----------------------------------------------------------------------------------. | ||
| 31 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del | | ||
| 32 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 33 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | | ||
| 34 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 35 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | | ||
| 36 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 37 | * | ▽ | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | Home | End | ▽ | | ||
| 38 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 39 | * | ▽ | ▽ | ▽ | ▽ | ▽ | ▽ ▽ | ▽ | Next | Vol- | Vol+ | Play | | ||
| 40 | * `-----------------------------------------------------------------------------------' | ||
| 41 | */ | ||
| 42 | [_LOWER] = LAYOUT_preonic_grid( | ||
| 43 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, | ||
| 44 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, | ||
| 45 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
| 46 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),KC_HOME, KC_END, _______, | ||
| 47 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
| 48 | ), | ||
| 49 | |||
| 50 | /* Raise | ||
| 51 | * ,-----------------------------------------------------------------------------------. | ||
| 52 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del | | ||
| 53 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 54 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 55 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 56 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
| 57 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 58 | * | ▽ | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | Pg Up| Pg Dn| ▽ | | ||
| 59 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 60 | * | ▽ | ▽ | ▽ | ▽ | ▽ | ▽ ▽ | ▽ | Next | Vol- | Vol+ | Play | | ||
| 61 | * `-----------------------------------------------------------------------------------' | ||
| 62 | */ | ||
| 63 | [_RAISE] = LAYOUT_preonic_grid( | ||
| 64 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
| 65 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 66 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 67 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______, | ||
| 68 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
| 69 | ), | ||
| 70 | |||
| 71 | /* Adjust (Lower + Raise) | ||
| 72 | * ,-----------------------------------------------------------------------------------. | ||
| 73 | * | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | | ||
| 74 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 75 | * | RSET | ▽ | M.AP | M.AL | LPAD | ▽ | ▽ | ▽ | ▽ | ▽ | ▽ | Bksp | | ||
| 76 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 77 | * | ▽ | ▽ | ▽ | ▽ | ▽ | ▽ | ▽ | ▽ | ▽ | ▽ | ▽ | SLEP | | ||
| 78 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 79 | * | CPWD | UN | CU | CO | PA | MV | ▽ | ▽ | ▽ | ▽ | ▽ | ▽ | | ||
| 80 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 81 | * | ▽ | ▽ | ▽ | ▽ | ▽ | ▽ ▽ | ▽ | ▽ | ▽ | ▽ | ▽ | | ||
| 82 | * `-----------------------------------------------------------------------------------' | ||
| 83 | */ | ||
| 84 | [_ADJUST] = LAYOUT_preonic_grid( | ||
| 85 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
| 86 | QK_BOOT, _______, CK_M1, KC_MCTL, KC_LPAD, _______, _______, _______, _______, _______, _______, KC_BSPC, | ||
| 87 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, CK_SLP, | ||
| 88 | CK_CW, _______, CK_CU, CK_CO, CK_PA, CK_MV, _______, _______, _______, _______, _______, _______, | ||
| 89 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 90 | ) | ||
| 91 | |||
| 92 | }; | ||
diff --git a/keyboards/preonic/keymaps/peterfalken/readme.md b/keyboards/preonic/keymaps/peterfalken/readme.md new file mode 100644 index 0000000000..f64d682a51 --- /dev/null +++ b/keyboards/preonic/keymaps/peterfalken/readme.md | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Copyright 2023 LEG <ucaboys@gmail.com> @PeterFalken | ||
| 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/>. | ||
diff --git a/keyboards/preonic/keymaps/peterfalken/rules.mk b/keyboards/preonic/keymaps/peterfalken/rules.mk new file mode 100644 index 0000000000..a33c6c1ddb --- /dev/null +++ b/keyboards/preonic/keymaps/peterfalken/rules.mk | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | # Setup keymap QMK features | ||
| 2 | # TODO: Check for space optimizations | ||
| 3 | AUDIO_ENABLE = yes # Enable Audio Output | ||
| 4 | ENCODER_ENABLE = no # Disable encoder | ||
| 5 | |||
| 6 | ifeq ($(strip $(AUDIO_ENABLE)), yes) | ||
| 7 | SRC += muse.c | ||
| 8 | endif | ||
