diff options
author | jolofsor <jolofsor@gmail.com> | 2021-12-08 03:59:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-07 11:59:22 -0800 |
commit | 9df50e8f5bfdce233a5e861ec565b0b5fd467d08 (patch) | |
tree | d42d43d141f573bfc08fff648a7b14ac684ae50f | |
parent | 62112117ff0edb25f2ac06770c6d4ae84256ca5c (diff) | |
download | qmk_firmware-9df50e8f5bfdce233a5e861ec565b0b5fd467d08.tar.gz qmk_firmware-9df50e8f5bfdce233a5e861ec565b0b5fd467d08.zip |
[Keyboard] Add jolofsor folder and denial75 subfolder under QMK keyboards (#15334)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r-- | keyboards/jolofsor/denial75/config.h | 63 | ||||
-rw-r--r-- | keyboards/jolofsor/denial75/denial75.c | 17 | ||||
-rw-r--r-- | keyboards/jolofsor/denial75/denial75.h | 33 | ||||
-rw-r--r-- | keyboards/jolofsor/denial75/info.json | 99 | ||||
-rw-r--r-- | keyboards/jolofsor/denial75/keymaps/default/keymap.c | 134 | ||||
-rw-r--r-- | keyboards/jolofsor/denial75/keymaps/via/keymap.c | 152 | ||||
-rw-r--r-- | keyboards/jolofsor/denial75/keymaps/via/rules.mk | 1 | ||||
-rw-r--r-- | keyboards/jolofsor/denial75/readme.md | 20 | ||||
-rw-r--r-- | keyboards/jolofsor/denial75/rules.mk | 19 |
9 files changed, 538 insertions, 0 deletions
diff --git a/keyboards/jolofsor/denial75/config.h b/keyboards/jolofsor/denial75/config.h new file mode 100644 index 000000000..702fee324 --- /dev/null +++ b/keyboards/jolofsor/denial75/config.h | |||
@@ -0,0 +1,63 @@ | |||
1 | /* Copyright 2021 Johannes Paolo Soriano (https://github.com/jolofsor) | ||
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 | #pragma once | ||
18 | #include "config_common.h" | ||
19 | |||
20 | /* USB Device descriptor parameter */ | ||
21 | #define VENDOR_ID 0x4A48 | ||
22 | #define PRODUCT_ID 0x0001 | ||
23 | #define DEVICE_VER 0x0001 | ||
24 | #define MANUFACTURER jsor-hpoli | ||
25 | #define PRODUCT denial75 | ||
26 | |||
27 | /* key matrix size */ | ||
28 | #define MATRIX_ROWS 6 | ||
29 | #define MATRIX_COLS 16 | ||
30 | |||
31 | /* key matrix pins */ | ||
32 | #define MATRIX_ROW_PINS { B0, F6, F5, F4, F1, F0 } | ||
33 | #define MATRIX_COL_PINS { F7, C7, C6, B5, B4, D7, D6, D4, E6, B1, B2, B3, B7, D0, D1, D3 } | ||
34 | #define UNUSED_PINS | ||
35 | |||
36 | /* COL2ROW or ROW2COL */ | ||
37 | #define DIODE_DIRECTION COL2ROW | ||
38 | |||
39 | /* Caps Lock Definition */ | ||
40 | #define LED_CAPS_LOCK_PIN B6 | ||
41 | #define LED_PIN_ON_STATE 0 | ||
42 | |||
43 | |||
44 | |||
45 | /* Set 0 if debouncing isn't needed */ | ||
46 | #define DEBOUNCE 5 | ||
47 | |||
48 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
49 | #define LOCKING_SUPPORT_ENABLE | ||
50 | |||
51 | /* Locking resynchronize hack */ | ||
52 | #define LOCKING_RESYNC_ENABLE | ||
53 | |||
54 | |||
55 | /* RGB Definitions */ | ||
56 | |||
57 | #define RGB_DI_PIN D2 | ||
58 | #define RGBLED_NUM 84 | ||
59 | #define RGBLIGHT_MAX_LAYERS 32 | ||
60 | #define RGBLIGHT_HUE_STEP 10 | ||
61 | #define RGBLIGHT_SAT_STEP 17 | ||
62 | #define RGBLIGHT_VAL_STEP 17 | ||
63 | #define RGBLIGHT_LIMIT_VAL 200 | ||
diff --git a/keyboards/jolofsor/denial75/denial75.c b/keyboards/jolofsor/denial75/denial75.c new file mode 100644 index 000000000..6b35a6b0d --- /dev/null +++ b/keyboards/jolofsor/denial75/denial75.c | |||
@@ -0,0 +1,17 @@ | |||
1 | /* Copyright 2021 Johannes Paolo Soriano (https://github.com/jolofsor) | ||
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 "denial75.h" | ||
diff --git a/keyboards/jolofsor/denial75/denial75.h b/keyboards/jolofsor/denial75/denial75.h new file mode 100644 index 000000000..b85f0540b --- /dev/null +++ b/keyboards/jolofsor/denial75/denial75.h | |||
@@ -0,0 +1,33 @@ | |||
1 | /* Copyright 2021 Johannes Paolo Soriano (https://github.com/jolofsor) | ||
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 "quantum.h" | ||
18 | |||
19 | #define LAYOUT_denial75_ansi( \ | ||
20 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \ | ||
21 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \ | ||
22 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, \ | ||
23 | K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, \ | ||
24 | K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, \ | ||
25 | K500, K501, K502, K503, K504, K505, K506, K507, K508, K509 \ | ||
26 | ) { \ | ||
27 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015 }, \ | ||
28 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, KC_NO,K113, K114 }, \ | ||
29 | { K200, KC_NO,K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214 }, \ | ||
30 | { K300, KC_NO,K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, KC_NO,K313 }, \ | ||
31 | { KC_NO,K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, KC_NO,K411, K412, K413 }, \ | ||
32 | { K500, K501, KC_NO,K502, KC_NO,KC_NO,K503, KC_NO,KC_NO,KC_NO,K504, K505, K506, K507, K508, K509 } \ | ||
33 | } | ||
diff --git a/keyboards/jolofsor/denial75/info.json b/keyboards/jolofsor/denial75/info.json new file mode 100644 index 000000000..71c9651a8 --- /dev/null +++ b/keyboards/jolofsor/denial75/info.json | |||
@@ -0,0 +1,99 @@ | |||
1 | { | ||
2 | "keyboard_name": "denial75", | ||
3 | "url": "", | ||
4 | "maintainer": "jolofsor", | ||
5 | "layouts": { | ||
6 | "LAYOUT_denial75_ansi": { | ||
7 | "layout": [ | ||
8 | {"label":"Esc", "x":0, "y":0}, | ||
9 | {"label":"F1", "x":1.25, "y":0}, | ||
10 | {"label":"F2", "x":2.25, "y":0}, | ||
11 | {"label":"F3", "x":3.25, "y":0}, | ||
12 | {"label":"F4", "x":4.25, "y":0}, | ||
13 | {"label":"F5", "x":5.25, "y":0}, | ||
14 | {"label":"F6", "x":6.25, "y":0}, | ||
15 | {"label":"F7", "x":7.25, "y":0}, | ||
16 | {"label":"F8", "x":8.25, "y":0}, | ||
17 | {"label":"F9", "x":9.25, "y":0}, | ||
18 | {"label":"F10", "x":10.25, "y":0}, | ||
19 | {"label":"F11", "x":11.25, "y":0}, | ||
20 | {"label":"F12", "x":12.25, "y":0}, | ||
21 | {"label":"PrtScr", "x":13.5, "y":0}, | ||
22 | {"label":"Insert", "x":14.5, "y":0}, | ||
23 | {"label":"Delete", "x":15.5, "y":0}, | ||
24 | |||
25 | {"label":"~", "x":0, "y":1.25}, | ||
26 | {"label":"!", "x":1, "y":1.25}, | ||
27 | {"label":"@", "x":2, "y":1.25}, | ||
28 | {"label":"#", "x":3, "y":1.25}, | ||
29 | {"label":"$", "x":4, "y":1.25}, | ||
30 | {"label":"%", "x":5, "y":1.25}, | ||
31 | {"label":"^", "x":6, "y":1.25}, | ||
32 | {"label":"&", "x":7, "y":1.25}, | ||
33 | {"label":"*", "x":8, "y":1.25}, | ||
34 | {"label":"(", "x":9, "y":1.25}, | ||
35 | {"label":")", "x":10, "y":1.25}, | ||
36 | {"label":"_", "x":11, "y":1.25}, | ||
37 | {"label":"+", "x":12, "y":1.25}, | ||
38 | {"label":"Backspace", "x":13, "y":1.25, "w":2}, | ||
39 | {"label":"Home", "x":15.5, "y":1.25}, | ||
40 | |||
41 | {"label":"Tab", "x":0, "y":2.25, "w":1.5}, | ||
42 | {"label":"Q", "x":1.5, "y":2.25}, | ||
43 | {"label":"W", "x":2.5, "y":2.25}, | ||
44 | {"label":"E", "x":3.5, "y":2.25}, | ||
45 | {"label":"R", "x":4.5, "y":2.25}, | ||
46 | {"label":"T", "x":5.5, "y":2.25}, | ||
47 | {"label":"Y", "x":6.5, "y":2.25}, | ||
48 | {"label":"U", "x":7.5, "y":2.25}, | ||
49 | {"label":"I", "x":8.5, "y":2.25}, | ||
50 | {"label":"O", "x":9.5, "y":2.25}, | ||
51 | {"label":"P", "x":10.5, "y":2.25}, | ||
52 | {"label":"{", "x":11.5, "y":2.25}, | ||
53 | {"label":"}", "x":12.5, "y":2.25}, | ||
54 | {"label":"|", "x":13.5, "y":2.25, "w":1.5}, | ||
55 | {"label":"Page Up", "x":15.5, "y":2.25}, | ||
56 | |||
57 | {"label":"Caps Lock", "x":0, "y":3.25, "w":1.75}, | ||
58 | {"label":"A", "x":1.75, "y":3.25}, | ||
59 | {"label":"S", "x":2.75, "y":3.25}, | ||
60 | {"label":"D", "x":3.75, "y":3.25}, | ||
61 | {"label":"F", "x":4.75, "y":3.25}, | ||
62 | {"label":"G", "x":5.75, "y":3.25}, | ||
63 | {"label":"H", "x":6.75, "y":3.25}, | ||
64 | {"label":"J", "x":7.75, "y":3.25}, | ||
65 | {"label":"K", "x":8.75, "y":3.25}, | ||
66 | {"label":"L", "x":9.75, "y":3.25}, | ||
67 | {"label":":", "x":10.75, "y":3.25}, | ||
68 | {"label":"\"", "x":11.75, "y":3.25}, | ||
69 | {"label":"Enter", "x":12.75, "y":3.25, "w":2.25}, | ||
70 | {"label":"Page Down", "x":15.5, "y":3.25}, | ||
71 | |||
72 | {"label":"Shift", "x":0, "y":4.25, "w":2.25}, | ||
73 | {"label":"Z", "x":2.25, "y":4.25}, | ||
74 | {"label":"X", "x":3.25, "y":4.25}, | ||
75 | {"label":"C", "x":4.25, "y":4.25}, | ||
76 | {"label":"V", "x":5.25, "y":4.25}, | ||
77 | {"label":"B", "x":6.25, "y":4.25}, | ||
78 | {"label":"N", "x":7.25, "y":4.25}, | ||
79 | {"label":"M", "x":8.25, "y":4.25}, | ||
80 | {"label":"<", "x":9.25, "y":4.25}, | ||
81 | {"label":">", "x":10.25, "y":4.25}, | ||
82 | {"label":"?", "x":11.25, "y":4.25}, | ||
83 | {"label":"Shift", "x":12.25, "y":4.25, "w":1.75}, | ||
84 | {"label":"Up", "x":14.25, "y":4.5}, | ||
85 | {"label":"End", "x":15.5, "y":4.25}, | ||
86 | |||
87 | {"label":"Ctrl", "x":0, "y":5.25, "w":1.25}, | ||
88 | {"label":"Win", "x":1.25, "y":5.25, "w":1.25}, | ||
89 | {"label":"Alt", "x":2.5, "y":5.25, "w":1.25}, | ||
90 | {"label":"Space", "x":3.75, "y":5.25, "w":6.25}, | ||
91 | {"label":"Alt", "x":10, "y":5.25}, | ||
92 | {"label":"Fn", "x":11, "y":5.25}, | ||
93 | {"label":"Ctrl", "x":12, "y":5.25}, | ||
94 | {"label":"Left", "x":13.25, "y":5.5}, | ||
95 | {"label":"Down", "x":14.25, "y":5.5}, | ||
96 | {"label":"Right", "x":15.25, "y":5.5}] | ||
97 | } | ||
98 | } | ||
99 | } | ||
diff --git a/keyboards/jolofsor/denial75/keymaps/default/keymap.c b/keyboards/jolofsor/denial75/keymaps/default/keymap.c new file mode 100644 index 000000000..b324f2455 --- /dev/null +++ b/keyboards/jolofsor/denial75/keymaps/default/keymap.c | |||
@@ -0,0 +1,134 @@ | |||
1 | /* Copyright 2021 Johannes Paolo Soriano (https://github.com/jolofsor) | ||
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 | enum custom_keycodes { | ||
20 | LEDRED = SAFE_RANGE, | ||
21 | LEDBLUE, | ||
22 | LEDYELLOW, | ||
23 | LEDORANGE, | ||
24 | LEDGREEN, | ||
25 | LEDPURPLE, | ||
26 | LEDWHITE, | ||
27 | LEDPINK, | ||
28 | LEDBLACK | ||
29 | }; | ||
30 | |||
31 | //this function sets RGB to last set before it was disconnected | ||
32 | void keyboard_post_init_user(void) { | ||
33 | rgblight_sethsv(rgblight_get_hue(), rgblight_get_sat(), rgblight_get_val()); | ||
34 | }; | ||
35 | |||
36 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
37 | switch (keycode) { | ||
38 | case LEDRED: | ||
39 | if (record->event.pressed) { | ||
40 | rgblight_enable(); | ||
41 | rgblight_sethsv(HSV_RED); | ||
42 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); | ||
43 | } else { | ||
44 | } | ||
45 | break; | ||
46 | |||
47 | case LEDBLUE: | ||
48 | if (record->event.pressed) { | ||
49 | rgblight_enable(); | ||
50 | rgblight_sethsv(HSV_BLUE); | ||
51 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); | ||
52 | } else { | ||
53 | } | ||
54 | break; | ||
55 | |||
56 | case LEDYELLOW: | ||
57 | if (record->event.pressed) { | ||
58 | rgblight_enable(); | ||
59 | rgblight_sethsv(HSV_YELLOW); | ||
60 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); | ||
61 | } | ||
62 | break; | ||
63 | |||
64 | case LEDORANGE: | ||
65 | if (record->event.pressed) { | ||
66 | rgblight_enable(); | ||
67 | rgblight_sethsv(HSV_ORANGE); | ||
68 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); | ||
69 | } | ||
70 | break; | ||
71 | |||
72 | case LEDGREEN: | ||
73 | if (record->event.pressed) { | ||
74 | rgblight_enable(); | ||
75 | rgblight_sethsv(HSV_GREEN); | ||
76 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); | ||
77 | } | ||
78 | break; | ||
79 | |||
80 | case LEDPURPLE: | ||
81 | if (record->event.pressed) { | ||
82 | rgblight_enable(); | ||
83 | rgblight_sethsv(HSV_PURPLE); | ||
84 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); | ||
85 | } | ||
86 | break; | ||
87 | |||
88 | case LEDWHITE: | ||
89 | if (record->event.pressed) { | ||
90 | rgblight_enable(); | ||
91 | rgblight_sethsv(HSV_WHITE); | ||
92 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); | ||
93 | } | ||
94 | break; | ||
95 | |||
96 | case LEDPINK: | ||
97 | if (record->event.pressed) { | ||
98 | rgblight_enable(); | ||
99 | rgblight_sethsv(HSV_PINK); | ||
100 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); | ||
101 | } | ||
102 | break; | ||
103 | |||
104 | case LEDBLACK: | ||
105 | if (record->event.pressed) { | ||
106 | rgblight_enable(); | ||
107 | rgblight_sethsv(HSV_BLACK); | ||
108 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); | ||
109 | } | ||
110 | break; | ||
111 | } | ||
112 | return true; | ||
113 | }; | ||
114 | |||
115 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
116 | |||
117 | [0] = LAYOUT_denial75_ansi( | ||
118 | KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_INS, KC_DEL, | ||
119 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_HOME, | ||
120 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP, | ||
121 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN, | ||
122 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, | ||
123 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
124 | ), | ||
125 | |||
126 | [1] = LAYOUT_denial75_ansi( | ||
127 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_MUTE, KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP, | ||
128 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_BRIU, | ||
129 | KC_NO, LEDRED, LEDBLUE, LEDYELLOW, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_BRID, | ||
130 | KC_NO, LEDORANGE, LEDGREEN, LEDPURPLE, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_VAI, | ||
131 | KC_NO, LEDWHITE, LEDPINK, LEDBLACK, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_VAD, | ||
132 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, MO(1), RGB_TOG, KC_NO, KC_NO, KC_NO | ||
133 | ) | ||
134 | }; | ||
diff --git a/keyboards/jolofsor/denial75/keymaps/via/keymap.c b/keyboards/jolofsor/denial75/keymaps/via/keymap.c new file mode 100644 index 000000000..678522ddf --- /dev/null +++ b/keyboards/jolofsor/denial75/keymaps/via/keymap.c | |||
@@ -0,0 +1,152 @@ | |||
1 | /* Copyright 2021 Johannes Paolo Soriano (https://github.com/jolofsor) | ||
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 | enum custom_keycodes { | ||
20 | LEDRED = SAFE_RANGE, | ||
21 | LEDBLUE, | ||
22 | LEDYELLOW, | ||
23 | LEDORANGE, | ||
24 | LEDGREEN, | ||
25 | LEDPURPLE, | ||
26 | LEDWHITE, | ||
27 | LEDPINK, | ||
28 | LEDBLACK | ||
29 | }; | ||
30 | |||
31 | //this function sets RGB to last set before it was disconnected | ||
32 | void keyboard_post_init_user(void) { | ||
33 | rgblight_sethsv(rgblight_get_hue(), rgblight_get_sat(), rgblight_get_val()); | ||
34 | }; | ||
35 | |||
36 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
37 | switch (keycode) { | ||
38 | case LEDRED: | ||
39 | if (record->event.pressed) { | ||
40 | rgblight_enable(); | ||
41 | rgblight_sethsv(HSV_RED); | ||
42 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); | ||
43 | } else { | ||
44 | } | ||
45 | break; | ||
46 | |||
47 | case LEDBLUE: | ||
48 | if (record->event.pressed) { | ||
49 | rgblight_enable(); | ||
50 | rgblight_sethsv(HSV_BLUE); | ||
51 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); | ||
52 | } else { | ||
53 | } | ||
54 | break; | ||
55 | |||
56 | case LEDYELLOW: | ||
57 | if (record->event.pressed) { | ||
58 | rgblight_enable(); | ||
59 | rgblight_sethsv(HSV_YELLOW); | ||
60 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); | ||
61 | } | ||
62 | break; | ||
63 | |||
64 | case LEDORANGE: | ||
65 | if (record->event.pressed) { | ||
66 | rgblight_enable(); | ||
67 | rgblight_sethsv(HSV_ORANGE); | ||
68 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); | ||
69 | } | ||
70 | break; | ||
71 | |||
72 | case LEDGREEN: | ||
73 | if (record->event.pressed) { | ||
74 | rgblight_enable(); | ||
75 | rgblight_sethsv(HSV_GREEN); | ||
76 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); | ||
77 | } | ||
78 | break; | ||
79 | |||
80 | case LEDPURPLE: | ||
81 | if (record->event.pressed) { | ||
82 | rgblight_enable(); | ||
83 | rgblight_sethsv(HSV_PURPLE); | ||
84 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); | ||
85 | } | ||
86 | break; | ||
87 | |||
88 | case LEDWHITE: | ||
89 | if (record->event.pressed) { | ||
90 | rgblight_enable(); | ||
91 | rgblight_sethsv(HSV_WHITE); | ||
92 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); | ||
93 | } | ||
94 | break; | ||
95 | |||
96 | case LEDPINK: | ||
97 | if (record->event.pressed) { | ||
98 | rgblight_enable(); | ||
99 | rgblight_sethsv(HSV_PINK); | ||
100 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); | ||
101 | } | ||
102 | break; | ||
103 | |||
104 | case LEDBLACK: | ||
105 | if (record->event.pressed) { | ||
106 | rgblight_enable(); | ||
107 | rgblight_sethsv(HSV_BLACK); | ||
108 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); | ||
109 | } | ||
110 | break; | ||
111 | } | ||
112 | return true; | ||
113 | }; | ||
114 | |||
115 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
116 | |||
117 | [0] = LAYOUT_denial75_ansi( | ||
118 | KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_INS, KC_DEL, | ||
119 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_HOME, | ||
120 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP, | ||
121 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN, | ||
122 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, | ||
123 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
124 | ), | ||
125 | |||
126 | [1] = LAYOUT_denial75_ansi( | ||
127 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_MUTE, KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP, | ||
128 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_BRIU, | ||
129 | KC_NO, LEDRED, LEDBLUE, LEDYELLOW, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_BRID, | ||
130 | KC_NO, LEDORANGE, LEDGREEN, LEDPURPLE, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_VAI, | ||
131 | KC_NO, LEDWHITE, LEDPINK, LEDBLACK, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_VAD, | ||
132 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, MO(1), RGB_TOG, KC_NO, KC_NO, KC_NO | ||
133 | ), | ||
134 | |||
135 | [2] = LAYOUT_denial75_ansi( | ||
136 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
137 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
138 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
139 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
140 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
141 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO | ||
142 | ), | ||
143 | |||
144 | [3] = LAYOUT_denial75_ansi( | ||
145 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
146 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
147 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
148 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
149 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
150 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO | ||
151 | ) | ||
152 | }; | ||
diff --git a/keyboards/jolofsor/denial75/keymaps/via/rules.mk b/keyboards/jolofsor/denial75/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/jolofsor/denial75/keymaps/via/rules.mk | |||
@@ -0,0 +1 @@ | |||
VIA_ENABLE = yes | |||
diff --git a/keyboards/jolofsor/denial75/readme.md b/keyboards/jolofsor/denial75/readme.md new file mode 100644 index 000000000..9475ec9fe --- /dev/null +++ b/keyboards/jolofsor/denial75/readme.md | |||
@@ -0,0 +1,20 @@ | |||
1 | # Denial75 | ||
2 | |||
3 | Hotswappable Expanded 75% keyboard. | ||
4 | |||
5 | * Keyboard Maintainer: [jolofsor](https://github.com/jolofsor) | ||
6 | * Hardware Supported: ATmega32u4 | ||
7 | * Hardware Availability: [Denial75](Fb.com/pmx.gg) | ||
8 | |||
9 | Bootloader | ||
10 | Physical Reset Button : Briefly press the button under the spacebar. It can be accessed by removing the spacebar keycap | ||
11 | |||
12 | Make example for these keyboards (after setting up your build environment): | ||
13 | |||
14 | make jolofsor/denial75:default | ||
15 | |||
16 | Flashing example for this keyboard: | ||
17 | |||
18 | make jolofsor/denial75:default:flash | ||
19 | |||
20 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/jolofsor/denial75/rules.mk b/keyboards/jolofsor/denial75/rules.mk new file mode 100644 index 000000000..0d5a61e25 --- /dev/null +++ b/keyboards/jolofsor/denial75/rules.mk | |||
@@ -0,0 +1,19 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = atmel-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | ||
11 | MOUSEKEY_ENABLE = no # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = no # Console for debug | ||
14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
15 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
16 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
17 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
18 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
19 | AUDIO_ENABLE = no # Audio output | ||