diff options
author | Erkki Halinen <erkkihalinen@gmail.com> | 2020-03-09 11:21:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-09 02:21:59 -0700 |
commit | 89ef9de98cc54462aa5b7938ec55bdc089541c74 (patch) | |
tree | 7fcbf4f987c623eb214dd9b801eaf1bd929171e0 /keyboards/handwired/prkl30/keymaps | |
parent | 6c8d815f2eec970a685aaf25a977fb2a04f53b8f (diff) |
[Keyboard] Add PRKL30 keyboard (#8319)
* Add PRKL30 default keymap
* Modify readmes, fix info.json url
* added layer pictures to readme.md
* edited layer pictures
* edited layer pictures
* edited layer pictures
* edited layout pictures
* edited layout pictures
* Modify default keymap
* Add arrows to Raise layer
* Add perkele macro and adjust symbols
* Add PRKL macro and modify keymap comments
* updated layout pictures
* edited layut pictures
* Add correct minus keycode
* Configure Feather config
* Update keyboards/handwired/prkl30/keymaps/default/keymap.c
* Update keyboards/handwired/prkl30/feather/rules.mk
* Update keyboards/handwired/prkl30/feather/config.h
* Update keyboards/handwired/prkl30/feather/config.h
* Update keyboards/handwired/prkl30/promicro/config.h
* Update keyboards/handwired/prkl30/promicro/rules.mk
* Update keyboards/handwired/prkl30/feather/config.h
* Update keyboards/handwired/prkl30/feather/config.h
* Update keyboards/handwired/prkl30/promicro/config.h
* Update keyboards/handwired/prkl30/feather/rules.mk
* Update keyboards/handwired/prkl30/keymaps/default/keymap.c
* Update keyboards/handwired/prkl30/info.json
* Update keyboards/handwired/prkl30/info.json
* Update keyboards/handwired/prkl30/keymaps/default/keymap.c
* Delete unused config
* Apply suggestions from code review
Commit code review changes
* Remove false comments from rules.mk
* Change layout to layout_all
* Apply suggestions from code review
Co-authored-by: Toni Johansson <toni.r.johansson@gmail.com>
Diffstat (limited to 'keyboards/handwired/prkl30/keymaps')
-rw-r--r-- | keyboards/handwired/prkl30/keymaps/default/keymap.c | 102 | ||||
-rw-r--r-- | keyboards/handwired/prkl30/keymaps/default/readme.md | 26 |
2 files changed, 128 insertions, 0 deletions
diff --git a/keyboards/handwired/prkl30/keymaps/default/keymap.c b/keyboards/handwired/prkl30/keymaps/default/keymap.c new file mode 100644 index 0000000000..ce60a41933 --- /dev/null +++ b/keyboards/handwired/prkl30/keymaps/default/keymap.c @@ -0,0 +1,102 @@ +#include QMK_KEYBOARD_H +#include "keymap_nordic.h" +enum layers { + _DEFAULT, + _LOWER, + _RAISE, + _FN +}; + +enum custom_keycodes { + PRKL = SAFE_RANGE, +}; + +#define LOWER MO(_LOWER) +#define RAISE MO(_RAISE) +#define FN MO(_FN) + + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + +/* Default + * ,-----------------------------------------------------------------------------------.------. + * | Esc | Q | W | E | R | T | Y | U | I | O | P | ¨^ | Bksp | + * |------+------+------+------+------+-------------+------+------+------+------+------|------| + * | Tab | A | S | D | F | G | H | J | K | L | Ö | Ä | Entr | + * |------+------+------+------+------+------|------+------+------+------+------+------|------' + * | Shift| Z | X | C | V | Space | B | N | M | , | . | + * |------+------+------+------+------+------+------+------+------+------+------+------' + */ +[_DEFAULT] = LAYOUT_all( + KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, NO_QUOT, KC_BSPC, + KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, NO_AE, NO_OSLH, LT(_FN, KC_ENT), + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, LT(_LOWER, KC_SPC), _______, KC_B, KC_N, KC_M, KC_COMM, LT(_RAISE, KC_DOT) +), + +/* Lower - Numbers and some symbols + * ,------------------------------------------------------------------------------------------. + * | ~ | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | + | DEL | + * |------+------+------+------+------+------+------+------+------+------+------+------|------| + * | | | | | | | | | | | | | | + * |------+------+------+------+------+------+------+------+------+------+------+------|------' + * | | | | | | | | | | - | | + * `------+------+------+------+------+------+------+------+------+------+------+------' + */ +[_LOWER] = LAYOUT_all( + KC_TILD, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, NO_PLUS, KC_DEL, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, NO_MINS, _______ +), + +/* Raise - AltGred Characters and more symbols + * ,------------------------------------------------------------------------------------------. + * | ~ | > | @ | £ | $ | % | & | | | [ | ] | ≈ | ? | { | + * |------+------+------+------+------+------+------+------+------+------+------+------|------| + * | | | | UP | | | | | | | | | } | + * |------+------+------+------+------+------+------+------+------+------+------+------|------' + * | | < | LEFT | DOWN | RIGHT| | | | | | | + * `------+------+------+------+------+------+------+------+------+------+------+------' + */ +[_RAISE] = LAYOUT_all( + NO_TILD, NO_SECT, NO_AT, NO_PND, NO_DLR, KC_PERC, NO_AMPR, NO_LCBR, NO_LBRC, NO_RBRC, NO_RCBR, NO_QUES, LSFT(NO_LBRC), + _______, _______, _______, KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, LSFT(NO_RBRC), + _______, NO_HALF, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, _______ +), + + /* FN + * ,------------------------------------------------------------------------------------------. + * |RESET | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | + * |------+------+------+------+------+------+------+------+------+------+------+------|------| + * | |RGB_P |RGB_HD|RGB_HI| VOL- | PREV | NEXT | VOL+ | | | | PRKL | | + * |------+------+------+------+------+------+------+------+------+------+------+------|------' + * | RGB_M|RGB_VD|RGB_VI|RGB_TG| | PLAY/PAUSE | | | |LCA(DEL)| | + * `------+------+------+------+------+------+------+------+------+------+------+------' + */ +[_FN] = LAYOUT_all( + RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, + _______, RGB_M_P, RGB_HUD, RGB_HUI, KC_VOLD, KC_MPRV, KC_MNXT, KC_VOLU, _______, _______, _______, PRKL, _______, + RGB_MOD, RGB_VAD, RGB_VAI, RGB_TOG, _______, KC_MPLY, _______, _______, _______, _______, LCA(KC_DEL), _______ +), + + +}; + +void encoder_update_user(uint8_t index, bool clockwise) { + if (clockwise) { + tap_code(KC_TAB); + } else { + tap_code(KC_PGUP); + } +} + +bool process_record_user(uint16_t keycode, keyrecord_t *record) { + switch (keycode) { + case PRKL: + if (record->event.pressed) { + //When PRKL is pressed, print out the holy power word of our people + SEND_STRING("PERKELE"); + } + break; + } + return true; +}; diff --git a/keyboards/handwired/prkl30/keymaps/default/readme.md b/keyboards/handwired/prkl30/keymaps/default/readme.md new file mode 100644 index 0000000000..8d2cf9fa06 --- /dev/null +++ b/keyboards/handwired/prkl30/keymaps/default/readme.md @@ -0,0 +1,26 @@ +# The default keymap for PRKL30 + +## Note ! +Due to the main target audience being a small Finnish community, +this board's default layout uses nordic keycodes. +----- + + +![prkl30 default layout image](https://i.imgur.com/tekFaHW.png "default") + +default layout + + +![prkl30 lower layout image](https://i.imgur.com/NzLcXrU.png "lower") + +lower layout + + +![prkl30 raise layout image](https://i.imgur.com/BpC8T6p.png "raise") + +raise layout + + +![prkl30 fn layout image](https://i.imgur.com/gwgIKqj.png "fn") + +fn layout |