diff options
author | boss566y <67247583+boss566y@users.noreply.github.com> | 2020-09-09 00:24:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-08 21:24:23 -0700 |
commit | ba3ec0f081373763784d8f092af886b8098d131c (patch) | |
tree | 2c96b3db91ea94129d3511a5b500be879db87e92 /keyboards | |
parent | d3cea9ed930a28b400b38c933cfa5c4f503c7856 (diff) | |
download | qmk_firmware-ba3ec0f081373763784d8f092af886b8098d131c.tar.gz qmk_firmware-ba3ec0f081373763784d8f092af886b8098d131c.zip |
[Keymap] Romac Keymap with VIA and OLED Support (#10249)
* Add Personal Keymap with VIA and OLED
* Update keyboards/kingly_keys/romac/keymaps/boss566y/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/kingly_keys/romac/keymaps/boss566y/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/kingly_keys/romac/keymaps/boss566y/keymap.c
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/kingly_keys/romac/keymaps/boss566y/keymap.c
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/kingly_keys/romac/keymaps/boss566y/keymap.c
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards')
-rwxr-xr-x | keyboards/kingly_keys/romac/keymaps/boss566y/config.h | 20 | ||||
-rwxr-xr-x | keyboards/kingly_keys/romac/keymaps/boss566y/keymap.c | 90 | ||||
-rwxr-xr-x | keyboards/kingly_keys/romac/keymaps/boss566y/rules.mk | 3 |
3 files changed, 113 insertions, 0 deletions
diff --git a/keyboards/kingly_keys/romac/keymaps/boss566y/config.h b/keyboards/kingly_keys/romac/keymaps/boss566y/config.h new file mode 100755 index 000000000..8b098b6c0 --- /dev/null +++ b/keyboards/kingly_keys/romac/keymaps/boss566y/config.h | |||
@@ -0,0 +1,20 @@ | |||
1 | /* | ||
2 | Copyright 2020 boss566y | ||
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 DYNAMIC_KEYMAP_LAYER_COUNT 8 | ||
diff --git a/keyboards/kingly_keys/romac/keymaps/boss566y/keymap.c b/keyboards/kingly_keys/romac/keymaps/boss566y/keymap.c new file mode 100755 index 000000000..a636bb476 --- /dev/null +++ b/keyboards/kingly_keys/romac/keymaps/boss566y/keymap.c | |||
@@ -0,0 +1,90 @@ | |||
1 | /* Copyright 2018 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 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | char oled_layer[20]; | ||
20 | |||
21 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
22 | [0] = LAYOUT( | ||
23 | KC_KP_7, KC_KP_8, KC_KP_9, | ||
24 | KC_KP_4, KC_KP_5, KC_KP_6, | ||
25 | KC_KP_1, KC_KP_2, KC_KP_3, | ||
26 | MO(1), KC_KP_0, KC_KP_DOT | ||
27 | ), | ||
28 | [1] = LAYOUT( | ||
29 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
30 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
31 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
32 | KC_TRNS, KC_TRNS, KC_TRNS | ||
33 | ), | ||
34 | [2] = LAYOUT( | ||
35 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
36 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
37 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
38 | KC_TRNS, KC_TRNS, KC_TRNS | ||
39 | ), | ||
40 | [3] = LAYOUT( | ||
41 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
42 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
43 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
44 | KC_TRNS, KC_TRNS, KC_TRNS | ||
45 | ), | ||
46 | [4] = LAYOUT( | ||
47 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
48 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
49 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
50 | KC_TRNS, KC_TRNS, KC_TRNS | ||
51 | ), | ||
52 | [5] = LAYOUT( | ||
53 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
54 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
55 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
56 | KC_TRNS, KC_TRNS, KC_TRNS | ||
57 | ), | ||
58 | [6] = LAYOUT( | ||
59 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
60 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
61 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
62 | KC_TRNS, KC_TRNS, KC_TRNS | ||
63 | ), | ||
64 | [7] = LAYOUT( | ||
65 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
66 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
67 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
68 | KC_TRNS, KC_TRNS, KC_TRNS | ||
69 | ) | ||
70 | }; | ||
71 | |||
72 | |||
73 | |||
74 | #ifdef OLED_DRIVER_ENABLE | ||
75 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | ||
76 | return OLED_ROTATION_270; | ||
77 | } | ||
78 | |||
79 | void oled_task_user(void) { | ||
80 | // Host Keyboard Layer Status | ||
81 | sprintf(oled_layer,"Layer\nL: %d\n",get_highest_layer(layer_state)); | ||
82 | oled_write(oled_layer,false); | ||
83 | |||
84 | // Host Keyboard LED Status | ||
85 | led_t led_state = host_keyboard_led_state(); | ||
86 | oled_write_P(led_state.num_lock ? PSTR("NLCK ") : PSTR(" "), false); | ||
87 | oled_write_P(led_state.caps_lock ? PSTR("CAPS ") : PSTR(" "), false); | ||
88 | oled_write_P(led_state.scroll_lock ? PSTR("SCRLK") : PSTR(" "), false); | ||
89 | } | ||
90 | #endif | ||
diff --git a/keyboards/kingly_keys/romac/keymaps/boss566y/rules.mk b/keyboards/kingly_keys/romac/keymaps/boss566y/rules.mk new file mode 100755 index 000000000..73fd595ab --- /dev/null +++ b/keyboards/kingly_keys/romac/keymaps/boss566y/rules.mk | |||
@@ -0,0 +1,3 @@ | |||
1 | VIA_ENABLE = yes | ||
2 | BOOTLOADER = qmk-dfu | ||
3 | OLED_DRIVER_ENABLE = yes # Enable Support for SSD1306 or SH1106 OLED Displays; Communicating over I2C \ No newline at end of file | ||