aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/keebio/iris/keymaps/moonfall/config.h36
-rw-r--r--keyboards/keebio/iris/keymaps/moonfall/keymap.c114
-rw-r--r--keyboards/keebio/iris/keymaps/moonfall/rules.mk2
3 files changed, 152 insertions, 0 deletions
diff --git a/keyboards/keebio/iris/keymaps/moonfall/config.h b/keyboards/keebio/iris/keymaps/moonfall/config.h
new file mode 100644
index 000000000..7986b5041
--- /dev/null
+++ b/keyboards/keebio/iris/keymaps/moonfall/config.h
@@ -0,0 +1,36 @@
1/*
2Copyright 2017 Danny Nguyen <danny@keeb.io>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20/* Use I2C or Serial, not both */
21
22#define USE_SERIAL
23// #define USE_I2C
24
25/* Select hand configuration */
26
27#define MASTER_LEFT
28// #define MASTER_RIGHT
29// #define EE_HANDS
30
31#undef RGBLED_NUM
32#define RGBLIGHT_ANIMATIONS
33#define RGBLED_NUM 12
34#define RGBLIGHT_HUE_STEP 8
35#define RGBLIGHT_SAT_STEP 8
36#define RGBLIGHT_VAL_STEP 8
diff --git a/keyboards/keebio/iris/keymaps/moonfall/keymap.c b/keyboards/keebio/iris/keymaps/moonfall/keymap.c
new file mode 100644
index 000000000..0b6cde45e
--- /dev/null
+++ b/keyboards/keebio/iris/keymaps/moonfall/keymap.c
@@ -0,0 +1,114 @@
1#include QMK_KEYBOARD_H
2
3extern keymap_config_t keymap_config;
4
5#define _QWERTY 0
6#define _LOWER 1
7#define _RAISE 2
8#define _ADJUST 3
9
10enum custom_keycodes {
11 QWERTY = SAFE_RANGE,
12 LOWER,
13 RAISE,
14 ADJUST,
15};
16
17const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
18
19 [_QWERTY] = LAYOUT(
20 //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
21 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,
22 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
23 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,
24 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
25 RAISE, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
26 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
27 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_DEL, KC_ENT, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
28 //└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
29 LOWER, KC_LALT, KC_BSPC, KC_SPC, KC_LGUI, KC_LCTL
30 // └────────┴────────┴────────┘ └────────┴────────┴────────┘
31 ),
32
33 [_LOWER] = LAYOUT(
34 //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
35 KC_EQL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_EQL,
36 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
37 _______, _______, KC_UP, _______, _______, _______, _______, KC_PLUS, KC_EQL, KC_TILD, _______, _______,
38 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
39 _______, KC_LEFT, KC_DOWN, KC_RGHT, KC_UP, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, KC_GRV,
40 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
41 _______, KC_GRV, _______, _______, _______, _______, KC_HOME, KC_PGUP, _______, KC_LCBR, KC_RCBR, KC_LBRC, KC_RBRC, _______,
42 //└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
43 _______, _______, KC_END, KC_PGDN, _______, _______
44 // └────────┴────────┴────────┘ └────────┴────────┴────────┘
45 ),
46
47 [_RAISE] = LAYOUT(
48 //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
49 KC_EQL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_EQL,
50 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
51 _______, _______, KC_UP, _______, _______, _______, _______, KC_PLUS, KC_EQL, KC_TILD, _______, _______,
52 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
53 _______, KC_LEFT, KC_DOWN, KC_RGHT, KC_UP, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, KC_GRV,
54 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
55 _______, KC_GRV, _______, _______, _______, _______, KC_HOME, KC_PGUP, _______, KC_LCBR, KC_RCBR, KC_LBRC, KC_RBRC, _______,
56 //└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
57 _______, _______, KC_END, KC_PGDN, _______, _______
58 // └────────┴────────┴────────┘ └────────┴────────┴────────┘
59 ),
60
61 [_ADJUST] = LAYOUT(
62 //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
63 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
64 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
65 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
66 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
67 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
68 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
69 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
70 //└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
71 _______, _______, _______, _______, _______, _______
72 // └────────┴────────┴────────┘ └────────┴────────┴────────┘
73 )
74};
75
76bool process_record_user(uint16_t keycode, keyrecord_t *record) {
77 switch (keycode) {
78 case QWERTY:
79 if (record->event.pressed) {
80 set_single_persistent_default_layer(_QWERTY);
81 }
82 return false;
83 break;
84 case LOWER:
85 if (record->event.pressed) {
86 layer_on(_LOWER);
87 update_tri_layer(_LOWER, _RAISE, _ADJUST);
88 } else {
89 layer_off(_LOWER);
90 update_tri_layer(_LOWER, _RAISE, _ADJUST);
91 }
92 return false;
93 break;
94 case RAISE:
95 if (record->event.pressed) {
96 layer_on(_RAISE);
97 update_tri_layer(_LOWER, _RAISE, _ADJUST);
98 } else {
99 layer_off(_RAISE);
100 update_tri_layer(_LOWER, _RAISE, _ADJUST);
101 }
102 return false;
103 break;
104 case ADJUST:
105 if (record->event.pressed) {
106 layer_on(_ADJUST);
107 } else {
108 layer_off(_ADJUST);
109 }
110 return false;
111 break;
112 }
113 return true;
114}
diff --git a/keyboards/keebio/iris/keymaps/moonfall/rules.mk b/keyboards/keebio/iris/keymaps/moonfall/rules.mk
new file mode 100644
index 000000000..db925dd2b
--- /dev/null
+++ b/keyboards/keebio/iris/keymaps/moonfall/rules.mk
@@ -0,0 +1,2 @@
1RGBLIGHT_ENABLE = yes
2BACKLIGHT_ENABLE = no