diff options
| author | Ryan MacLean <ryan@ryanmaclean.com> | 2017-04-22 20:49:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-22 20:49:34 -0700 |
| commit | 2e62ff9807e3a5bd0a0ff77045673d74ce16ddba (patch) | |
| tree | 3d4dabf842d28c2f8353df5d6452fcd913d39566 | |
| parent | 187c78f3cb725cca4200a03e96cbadf9cd560cdd (diff) | |
| download | qmk_firmware-2e62ff9807e3a5bd0a0ff77045673d74ce16ddba.tar.gz qmk_firmware-2e62ff9807e3a5bd0a0ff77045673d74ce16ddba.zip | |
Initial Ortho Commit (LEFT SIDE)
Using only one layer, and activating it with two keys at the moment.
As with previous comments, this isn't final, but is a good starting point for a one-handed keyboard, half a Planck-like ortholinear keyboard, or a sample to show a layout with a function layer.
| -rw-r--r-- | keyboards/amjpad/keymaps/ortho_left/keymap.c | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/keyboards/amjpad/keymaps/ortho_left/keymap.c b/keyboards/amjpad/keymaps/ortho_left/keymap.c new file mode 100644 index 000000000..d3e4d9944 --- /dev/null +++ b/keyboards/amjpad/keymaps/ortho_left/keymap.c | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | #include "amjpad.h" | ||
| 2 | |||
| 3 | #ifdef RGBLIGHT_ENABLE | ||
| 4 | #include "rgblight.h" | ||
| 5 | #endif | ||
| 6 | |||
| 7 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
| 8 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
| 9 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
| 10 | // entirely and just use numbers. | ||
| 11 | #define _BL 0 | ||
| 12 | #define _FL 1 | ||
| 13 | |||
| 14 | #define _______ KC_TRNS | ||
| 15 | |||
| 16 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 17 | /* Keymap _BL: (Base Layer) Default Layer | ||
| 18 | * ,-------------------. | ||
| 19 | * | T | G | B |Spac| | ||
| 20 | * |----|----|----|----| | ||
| 21 | * | R | F | V | Fn | | ||
| 22 | * |----|----|----|----| | ||
| 23 | * | E | D | C | OS | | ||
| 24 | * |----|----|----|----| | ||
| 25 | * | W | S | X | Alt| | ||
| 26 | * |----|----|----|----| | ||
| 27 | * | Q | A | Z | Ctl| | ||
| 28 | * |----|----|----|----| | ||
| 29 | * | Esc| Tab|Shft| Fn2| | ||
| 30 | * `-------------------' | ||
| 31 | */ | ||
| 32 | |||
| 33 | [_BL] = MAXKEYMAP( | ||
| 34 | |||
| 35 | KC_T, KC_G, KC_B, KC_SPACE,\ | ||
| 36 | KC_R, KC_F, KC_V, MO(1), \ | ||
| 37 | KC_E, KC_D, KC_C, KC_LGUI, \ | ||
| 38 | KC_W, KC_S, KC_X, KC_LALT, \ | ||
| 39 | KC_Q, KC_A, KC_Z, KC_LCTL, \ | ||
| 40 | KC_TAB, KC_ESC, KC_LSHIFT, MO(1)), | ||
| 41 | |||
| 42 | /* Keymap _FL: Function Layer | ||
| 43 | * ,-------------------. | ||
| 44 | * | 5 | F5 | F11|Spac| | ||
| 45 | * |----|----|----|----| | ||
| 46 | * | 4 | F4 | F10| | | ||
| 47 | * |----|----|----|----| | ||
| 48 | * | 3 | F3 | F9 | OS | | ||
| 49 | * |----|----|----|----| | ||
| 50 | * | 2 | F2 | F8 | Alt| | ||
| 51 | * |----|----|----|----| | ||
| 52 | * | 1 | F1 | F7 | Ctl| | ||
| 53 | * |----|----|----|----| | ||
| 54 | * | ` | Del|Shft| | | ||
| 55 | * `-------------------' | ||
| 56 | */ | ||
| 57 | [_FL] = MAXKEYMAP( | ||
| 58 | |||
| 59 | KC_5, KC_F5, KC_F11, _______, \ | ||
| 60 | KC_4, KC_F4, KC_F10, _______, \ | ||
| 61 | KC_3, KC_F3, KC_F9, _______, \ | ||
| 62 | KC_2, KC_F2, KC_F8, _______, \ | ||
| 63 | KC_1, KC_F1, KC_F7, _______, \ | ||
| 64 | KC_GRV,KC_DEL, _______, _______), | ||
| 65 | }; | ||
