diff options
-rw-r--r-- | keyboards/keebio/iris/keymaps/jhelvy/README.md | 7 | ||||
-rw-r--r-- | keyboards/keebio/iris/keymaps/jhelvy/config.h | 33 | ||||
-rw-r--r-- | keyboards/keebio/iris/keymaps/jhelvy/keymap.c | 54 | ||||
-rw-r--r-- | keyboards/keebio/iris/keymaps/jhelvy/rules.mk | 3 | ||||
-rw-r--r-- | keyboards/lily58/keymaps/jhelvy/README.md | 7 | ||||
-rw-r--r-- | keyboards/lily58/keymaps/jhelvy/config.h | 55 | ||||
-rw-r--r-- | keyboards/lily58/keymaps/jhelvy/keymap.c | 112 | ||||
-rw-r--r-- | keyboards/lily58/keymaps/jhelvy/rules.mk | 16 |
8 files changed, 287 insertions, 0 deletions
diff --git a/keyboards/keebio/iris/keymaps/jhelvy/README.md b/keyboards/keebio/iris/keymaps/jhelvy/README.md new file mode 100644 index 000000000..5d5ff1247 --- /dev/null +++ b/keyboards/keebio/iris/keymaps/jhelvy/README.md | |||
@@ -0,0 +1,7 @@ | |||
1 | # jhelvy Keymap for [Iris Rev 2](https://docs.keeb.io/iris-build-guide/) | ||
2 | |||
3 | ## Keymap | ||
4 | |||
5 | This is a custom keymap with the following layout: | ||
6 | |||
7 | <img src="https://github.com/jhelvy/qmkJsonConverter/raw/master/keymaps/keebio_iris_rev2_jhelvy.png" width="800"> | ||
diff --git a/keyboards/keebio/iris/keymaps/jhelvy/config.h b/keyboards/keebio/iris/keymaps/jhelvy/config.h new file mode 100644 index 000000000..2285c3f9a --- /dev/null +++ b/keyboards/keebio/iris/keymaps/jhelvy/config.h | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | Copyright 2017 Danny Nguyen <danny@keeb.io> | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #pragma once | ||
19 | |||
20 | // #define USE_I2C | ||
21 | #define EE_HANDS | ||
22 | |||
23 | #undef RGBLED_NUM | ||
24 | #define RGBLIGHT_ANIMATIONS | ||
25 | #define RGBLED_NUM 12 | ||
26 | #define RGBLIGHT_HUE_STEP 8 | ||
27 | #define RGBLIGHT_SAT_STEP 8 | ||
28 | #define RGBLIGHT_VAL_STEP 8 | ||
29 | |||
30 | #define TAPPING_FORCE_HOLD | ||
31 | #undef TAPPING_TERM | ||
32 | #define TAPPING_TERM 200 | ||
33 | #define AUTO_SHIFT_TIMEOUT 150 | ||
diff --git a/keyboards/keebio/iris/keymaps/jhelvy/keymap.c b/keyboards/keebio/iris/keymaps/jhelvy/keymap.c new file mode 100644 index 000000000..58ce3206d --- /dev/null +++ b/keyboards/keebio/iris/keymaps/jhelvy/keymap.c | |||
@@ -0,0 +1,54 @@ | |||
1 | #include QMK_KEYBOARD_H | ||
2 | |||
3 | |||
4 | #define _QWERTY 0 | ||
5 | #define _LOWER 1 | ||
6 | #define _RAISE 2 | ||
7 | |||
8 | enum custom_keycodes { | ||
9 | QWERTY = SAFE_RANGE, | ||
10 | LOWER, | ||
11 | RAISE, | ||
12 | }; | ||
13 | |||
14 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
15 | |||
16 | [_QWERTY] = LAYOUT( \ | ||
17 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_EQL, \ | ||
18 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_MINS, \ | ||
19 | KC_BSPC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT, KC_ENT, \ | ||
20 | KC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_NO, KC_NO, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSPC, \ | ||
21 | LALT(KC_A),KC_LGUI, MO(1), KC_SPC, MO(2), KC_PGDN), | ||
22 | |||
23 | [_LOWER] = LAYOUT( \ | ||
24 | KC_ESC,LGUI(KC_1),LGUI(KC_2),LGUI(KC_3),LGUI(KC_4),LGUI(KC_5), KC_SCLN, KC_PIPE, KC_COLN,LCTL(KC_9),LCTL(KC_0), KC_F12, \ | ||
25 | LCTL(KC_TAB),LGUI(KC_Q),LGUI(KC_W), KC_ESC,LGUI(KC_R),LGUI(KC_T), LCTL(KC_Y),LGUI(KC_LEFT), KC_UP,LGUI(KC_RGHT), KC_TILD, KC_F11, \ | ||
26 | LGUI(KC_BSPC),MO(2),LGUI(KC_S),LGUI(KC_C),LGUI(KC_V),LGUI(KC_X), KC_DEL, KC_LEFT, KC_DOWN, KC_RGHT, KC_GRV, KC_ENT, \ | ||
27 | KC_F15,LGUI(KC_A),LGUI(KC_D), KC_F13,LGUI(KC_Z),LGUI(KC_Y), KC_NO, KC_NO,KC_BSPC,LGUI(KC_F), SGUI(KC_G),LGUI(KC_G), KC_BSLS, KC_F23, \ | ||
28 | KC_LALT,KC_LGUI, KC_TRNS, KC_SPC,KC_RGUI, KC_PGUP), | ||
29 | |||
30 | [_RAISE] = LAYOUT( \ | ||
31 | KC_VOLU,LGUI(LALT(KC_1)),LGUI(LALT(KC_2)), KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_PLUS, \ | ||
32 | KC_VOLD, KC_NO, KC_NO, KC_NO,SGUI(KC_R), KC_F14, SGUI(KC_K),SGUI(KC_LEFT),LSFT(KC_UP),SGUI(KC_RGHT), KC_F18, KC_UNDS, \ | ||
33 | KC_MUTE,KC_TRNS, KC_NO, KC_LBRC, KC_RBRC, KC_TAB, KC_F21,LSFT(KC_LEFT),LSFT(KC_DOWN),LSFT(KC_RGHT), KC_F20, KC_F16, \ | ||
34 | KC_LSPO,KC_ASTG, KC_NO, KC_LCBR, KC_RCBR,LCTL(KC_U), KC_NO, KC_NO,KC_F22,LCTL(LGUI(KC_A)),LALT(LSFT(KC_LEFT)),LALT(LSFT(KC_RIGHT)), KC_F17, KC_F19, \ | ||
35 | KC_CAPS,LALT(KC_SPC), KC_LGUI, KC_SPC,KC_TRNS, KC_NO) | ||
36 | |||
37 | }; | ||
38 | |||
39 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
40 | if (index == 0) { | ||
41 | if (clockwise) { | ||
42 | tap_code(KC_VOLU); | ||
43 | } else { | ||
44 | tap_code(KC_VOLD); | ||
45 | } | ||
46 | } | ||
47 | else if (index == 1) { | ||
48 | if (clockwise) { | ||
49 | tap_code(KC_PGDN); | ||
50 | } else { | ||
51 | tap_code(KC_PGUP); | ||
52 | } | ||
53 | } | ||
54 | } | ||
diff --git a/keyboards/keebio/iris/keymaps/jhelvy/rules.mk b/keyboards/keebio/iris/keymaps/jhelvy/rules.mk new file mode 100644 index 000000000..c34fd4b1f --- /dev/null +++ b/keyboards/keebio/iris/keymaps/jhelvy/rules.mk | |||
@@ -0,0 +1,3 @@ | |||
1 | AUTO_SHIFT_ENABLE = yes # Autoshift by holding down a key | ||
2 | RGBLIGHT_ENABLE = yes | ||
3 | BACKLIGHT_ENABLE = yes | ||
diff --git a/keyboards/lily58/keymaps/jhelvy/README.md b/keyboards/lily58/keymaps/jhelvy/README.md new file mode 100644 index 000000000..e0b68f919 --- /dev/null +++ b/keyboards/lily58/keymaps/jhelvy/README.md | |||
@@ -0,0 +1,7 @@ | |||
1 | # jhelvy Keymap for [Lily58 Pro](https://github.com/kata0510/Lily58) | ||
2 | |||
3 | ## Keymap | ||
4 | |||
5 | This is a custom keymap with the following layout: | ||
6 | |||
7 | <img src="https://github.com/jhelvy/qmkJsonConverter/raw/master/keymaps/lily58_rev1_jhelvy.png" width="800"> | ||
diff --git a/keyboards/lily58/keymaps/jhelvy/config.h b/keyboards/lily58/keymaps/jhelvy/config.h new file mode 100644 index 000000000..019f68ef5 --- /dev/null +++ b/keyboards/lily58/keymaps/jhelvy/config.h | |||
@@ -0,0 +1,55 @@ | |||
1 | /* | ||
2 | This is the c configuration file for the keymap | ||
3 | |||
4 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
5 | Copyright 2015 Jack Humbert | ||
6 | |||
7 | This program is free software: you can redistribute it and/or modify | ||
8 | it under the terms of the GNU General Public License as published by | ||
9 | the Free Software Foundation, either version 2 of the License, or | ||
10 | (at your option) any later version. | ||
11 | |||
12 | This program is distributed in the hope that it will be useful, | ||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | ||
16 | |||
17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | ||
20 | |||
21 | #pragma once | ||
22 | |||
23 | //#define USE_MATRIX_I2C | ||
24 | |||
25 | /* Select hand configuration */ | ||
26 | |||
27 | #define MASTER_LEFT | ||
28 | // #define MASTER_RIGHT | ||
29 | // #define EE_HANDS | ||
30 | |||
31 | #define SSD1306OLED | ||
32 | |||
33 | #define USE_SERIAL_PD2 | ||
34 | |||
35 | #define TAPPING_FORCE_HOLD | ||
36 | #undef TAPPING_TERM | ||
37 | #define TAPPING_TERM 200 | ||
38 | |||
39 | #undef RGBLED_NUM | ||
40 | #define RGBLIGHT_ANIMATIONS | ||
41 | #define RGBLED_NUM 27 | ||
42 | #define RGBLIGHT_LIMIT_VAL 120 | ||
43 | #define RGBLIGHT_HUE_STEP 10 | ||
44 | #define RGBLIGHT_SAT_STEP 17 | ||
45 | #define RGBLIGHT_VAL_STEP 17 | ||
46 | |||
47 | #define AUTO_SHIFT_TIMEOUT 150 | ||
48 | |||
49 | // Underglow | ||
50 | /* | ||
51 | #undef RGBLED_NUM | ||
52 | #define RGBLED_NUM 14 // Number of LEDs | ||
53 | #define RGBLIGHT_ANIMATIONS | ||
54 | #define RGBLIGHT_SLEEP | ||
55 | */ | ||
diff --git a/keyboards/lily58/keymaps/jhelvy/keymap.c b/keyboards/lily58/keymaps/jhelvy/keymap.c new file mode 100644 index 000000000..a8dc5d859 --- /dev/null +++ b/keyboards/lily58/keymaps/jhelvy/keymap.c | |||
@@ -0,0 +1,112 @@ | |||
1 | #include QMK_KEYBOARD_H | ||
2 | |||
3 | #ifdef PROTOCOL_LUFA | ||
4 | #include "lufa.h" | ||
5 | #include "split_util.h" | ||
6 | #endif | ||
7 | #ifdef SSD1306OLED | ||
8 | #include "ssd1306.h" | ||
9 | #endif | ||
10 | |||
11 | |||
12 | extern uint8_t is_master; | ||
13 | |||
14 | #define _QWERTY 0 | ||
15 | #define _LOWER 1 | ||
16 | #define _UPPER 2 | ||
17 | |||
18 | enum custom_keycodes { | ||
19 | QWERTY = SAFE_RANGE, | ||
20 | LOWER, | ||
21 | UPPER, | ||
22 | }; | ||
23 | |||
24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
25 | |||
26 | [_QWERTY] = LAYOUT( \ | ||
27 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_EQL, \ | ||
28 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_MINS, \ | ||
29 | KC_BSPC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT, KC_ENT, \ | ||
30 | KC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LBRC, KC_RBRC, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSPC, \ | ||
31 | LALT(KC_A), KC_LCTL,KC_LGUI, MO(1), KC_SPC, MO(2), KC_PGDN, KC_NO), | ||
32 | |||
33 | [_LOWER] = LAYOUT( \ | ||
34 | KC_ESC,LGUI(KC_1),LGUI(KC_2),LGUI(KC_3),LGUI(KC_4),LGUI(KC_5), KC_SCLN,LSFT(KC_BSLS), KC_NO,LCTL(KC_9),LCTL(KC_0), KC_F12, \ | ||
35 | LCTL(KC_TAB),LGUI(KC_Q),LGUI(KC_W), KC_ESC,LGUI(KC_R),LGUI(KC_T), LCTL(KC_Y),LGUI(KC_LEFT), KC_UP,LGUI(KC_RGHT),LSFT(KC_GRV), KC_F11, \ | ||
36 | LGUI(KC_BSPC),MO(2),LGUI(KC_S),LGUI(KC_C),LGUI(KC_V),LGUI(KC_X), KC_DEL, KC_LEFT, KC_DOWN, KC_RGHT, KC_GRV,LSFT(KC_SCLN), \ | ||
37 | KC_F15,LGUI(KC_A),LGUI(KC_D), KC_F13,LGUI(KC_Z),LGUI(KC_Y),LSFT(KC_LBRC),LSFT(KC_RBRC),KC_BSPC,LGUI(KC_F), SGUI(KC_G),LGUI(KC_G), KC_BSLS, KC_F23, \ | ||
38 | KC_NO, KC_NO,KC_NO,KC_TRNS, KC_NO, KC_RGUI, KC_PGUP, KC_NO), | ||
39 | |||
40 | [_UPPER] = LAYOUT( \ | ||
41 | KC__VOLUP,LGUI(LALT(KC_1)),LGUI(LALT(KC_2)), KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,LSFT(KC_EQL), \ | ||
42 | KC_VOLD, KC_NO, KC_NO, KC_NO,SGUI(KC_R), KC_F14, SGUI(KC_K),SGUI(KC_LEFT),LSFT(KC_UP),SGUI(KC_RGHT), KC_F18,LSFT(KC_MINS), \ | ||
43 | KC_MUTE,KC_TRNS, KC_NO, KC_LGUI, KC_TAB, KC_F21, KC_NO,LSFT(KC_LEFT),LSFT(KC_DOWN),LSFT(KC_RGHT), KC_F20, KC_F16, \ | ||
44 | KC_ASTG, KC_NO, KC_NO, KC_NO, KC_F22,LCTL(KC_U),LGUI(KC_LBRC),LGUI(KC_RBRC),LGUI(KC_N), KC_NO,LALT(LSFT(KC_LEFT)),LALT(LSFT(KC_RIGHT)), KC_F17, KC_F19, \ | ||
45 | KC_NO, KC_NO,KC_NO, KC_NO, KC_NO, KC_TRNS, KC_NO, KC_NO) | ||
46 | |||
47 | }; | ||
48 | |||
49 | void matrix_init_user(void) { | ||
50 | //SSD1306 OLED init, make sure to add #define SSD1306OLED in config.h | ||
51 | #ifdef SSD1306OLED | ||
52 | iota_gfx_init(!has_usb()); // turns on the display | ||
53 | #endif | ||
54 | } | ||
55 | |||
56 | //SSD1306 OLED update loop, make sure to add #define SSD1306OLED in config.h | ||
57 | #ifdef SSD1306OLED | ||
58 | |||
59 | // When add source files to SRC in rules.mk, you can use functions. | ||
60 | const char *read_layer_state(void); | ||
61 | const char *read_logo(void); | ||
62 | void set_keylog(uint16_t keycode, keyrecord_t *record); | ||
63 | const char *read_keylog(void); | ||
64 | const char *read_keylogs(void); | ||
65 | |||
66 | // const char *read_mode_icon(bool swap); | ||
67 | // const char *read_host_led_state(void); | ||
68 | // void set_timelog(void); | ||
69 | // const char *read_timelog(void); | ||
70 | |||
71 | void matrix_scan_user(void) { | ||
72 | iota_gfx_task(); | ||
73 | } | ||
74 | |||
75 | void matrix_render_user(struct CharacterMatrix *matrix) { | ||
76 | if (is_master) { | ||
77 | // If you want to change the display of OLED, you need to change here | ||
78 | matrix_write_ln(matrix, read_layer_state()); | ||
79 | matrix_write_ln(matrix, read_keylog()); | ||
80 | matrix_write_ln(matrix, read_keylogs()); | ||
81 | //matrix_write_ln(matrix, read_mode_icon(keymap_config.swap_lalt_lgui)); | ||
82 | //matrix_write_ln(matrix, read_host_led_state()); | ||
83 | //matrix_write_ln(matrix, read_timelog()); | ||
84 | } else { | ||
85 | matrix_write(matrix, read_logo()); | ||
86 | } | ||
87 | } | ||
88 | |||
89 | void matrix_update(struct CharacterMatrix *dest, const struct CharacterMatrix *source) { | ||
90 | if (memcmp(dest->display, source->display, sizeof(dest->display))) { | ||
91 | memcpy(dest->display, source->display, sizeof(dest->display)); | ||
92 | dest->dirty = true; | ||
93 | } | ||
94 | } | ||
95 | |||
96 | void iota_gfx_task_user(void) { | ||
97 | struct CharacterMatrix matrix; | ||
98 | matrix_clear(&matrix); | ||
99 | matrix_render_user(&matrix); | ||
100 | matrix_update(&display, &matrix); | ||
101 | } | ||
102 | #endif//SSD1306OLED | ||
103 | |||
104 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
105 | if (record->event.pressed) { | ||
106 | #ifdef SSD1306OLED | ||
107 | set_keylog(keycode, record); | ||
108 | #endif | ||
109 | // set_timelog(); | ||
110 | } | ||
111 | return true; | ||
112 | } | ||
diff --git a/keyboards/lily58/keymaps/jhelvy/rules.mk b/keyboards/lily58/keymaps/jhelvy/rules.mk new file mode 100644 index 000000000..817d445f4 --- /dev/null +++ b/keyboards/lily58/keymaps/jhelvy/rules.mk | |||
@@ -0,0 +1,16 @@ | |||
1 | # Build Options | ||
2 | # change to "no" to disable the options, or define them in the Makefile in | ||
3 | # the appropriate keymap folder that will get included automatically | ||
4 | # | ||
5 | AUTO_SHIFT_ENABLE = yes # Autoshift by holding down a key | ||
6 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
7 | |||
8 | # If you want to change the display of OLED, you need to change here | ||
9 | SRC += ./lib/glcdfont.c \ | ||
10 | ./lib/rgb_state_reader.c \ | ||
11 | ./lib/layer_state_reader.c \ | ||
12 | ./lib/logo_reader.c \ | ||
13 | ./lib/keylogger.c \ | ||
14 | # ./lib/mode_icon_reader.c \ | ||
15 | # ./lib/host_led_state_reader.c \ | ||
16 | # ./lib/timelogger.c \ | ||