diff options
author | marhalloweenvt <marhalloweenvt@gmail.com> | 2019-12-08 14:11:21 +0700 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-12-07 23:11:21 -0800 |
commit | a7209533a35f77b18997b250e16917d5ae666933 (patch) | |
tree | bd8bd1e9b81d32781c2dccd85e5fdaec474f7f29 | |
parent | 3d78e6078e402bf0fe476adeed8ac16033f916c0 (diff) | |
download | qmk_firmware-a7209533a35f77b18997b250e16917d5ae666933.tar.gz qmk_firmware-a7209533a35f77b18997b250e16917d5ae666933.zip |
[Keyboard] Add new keyboard ColorLice (#7536)
* [Keyboard] Add new keyboard Symmetry60
* Add new keyboard Symmetry60
* Fix Typo
* Update keyboards/handwired/symmetry60/config.h
Co-Authored-By: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/handwired/symmetry60/readme.md
Co-Authored-By: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/handwired/symmetry60/readme.md
Co-Authored-By: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/handwired/symmetry60/readme.md
Co-Authored-By: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/handwired/symmetry60/rules.mk
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/handwired/symmetry60/symmetry60.h
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/handwired/symmetry60/symmetry60.h
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/handwired/symmetry60/symmetry60.h
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update readme.md
* Update keymap.c
* Update keymap.c
* Update keymap.c
* Update rules.mk
* Update symmetry60.c
* Update keyboards/handwired/symmetry60/rules.mk
Co-Authored-By: James Young <18669334+noroadsleft@users.noreply.github.com>
* Add ColorLice
* Update ColorLice
- Adjust info.json to support Configurator
- Adjust layout name to fit with info.json
- Seperate 2 feature: RGB Switch and RGB Underglow
* Update new way of control lock leds
* Remove #ifndef COLORLICE_H
* Update make example
* Revert Helix
* Revert Helix
* Revert Helix
* Revert Helix
* Update keyboards/handwired/colorlice/colorlice.h
Co-Authored-By: Joel Challis <git@zvecr.com>
* Update keyboards/handwired/colorlice/colorlice.h
Co-Authored-By: Joel Challis <git@zvecr.com>
* Update default keymap
* Revert Helix
* Update keyboards/handwired/colorlice/readme.md
Co-Authored-By: Joel Challis <git@zvecr.com>
* Update keyboards/handwired/colorlice/rules.mk
Co-Authored-By: Joel Challis <git@zvecr.com>
* Update keyboards/handwired/colorlice/colorlice.c
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/handwired/colorlice/colorlice.c
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Remove unnecessary function
* Update keyboards/handwired/colorlice/colorlice.c
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Adjust rules option for working with Configurator
- Move RGB_MATRIX_ENABLE and RGBLIGHT_ENABLE to keyboard rule.
- Add RGB_DI_PIN in keyboard config
* Update keyboards/helix/rev2/keymaps/default/keymap.c
Co-Authored-By: Joel Challis <git@zvecr.com>
* Update keyboards/handwired/colorlice/readme.md
Co-Authored-By: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keymap for Colorlice
* Adjust rules.mk to use space indent
-rw-r--r-- | keyboards/handwired/colorlice/colorlice.c | 67 | ||||
-rw-r--r-- | keyboards/handwired/colorlice/colorlice.h | 42 | ||||
-rw-r--r-- | keyboards/handwired/colorlice/config.h | 51 | ||||
-rw-r--r-- | keyboards/handwired/colorlice/info.json | 79 | ||||
-rw-r--r-- | keyboards/handwired/colorlice/keymaps/default/config.h | 24 | ||||
-rw-r--r-- | keyboards/handwired/colorlice/keymaps/default/keymap.c | 33 | ||||
-rw-r--r-- | keyboards/handwired/colorlice/keymaps/default_rgb_underglow/config.h | 22 | ||||
-rw-r--r-- | keyboards/handwired/colorlice/keymaps/default_rgb_underglow/keymap.c | 33 | ||||
-rw-r--r-- | keyboards/handwired/colorlice/keymaps/default_rgb_underglow/rules.mk | 2 | ||||
-rw-r--r-- | keyboards/handwired/colorlice/readme.md | 13 | ||||
-rw-r--r-- | keyboards/handwired/colorlice/rules.mk | 36 |
11 files changed, 402 insertions, 0 deletions
diff --git a/keyboards/handwired/colorlice/colorlice.c b/keyboards/handwired/colorlice/colorlice.c new file mode 100644 index 000000000..1fd5fddd1 --- /dev/null +++ b/keyboards/handwired/colorlice/colorlice.c | |||
@@ -0,0 +1,67 @@ | |||
1 | /* Copyright 2019 marhalloweenvt | ||
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 | #include "colorlice.h" | ||
17 | |||
18 | #ifdef RGB_MATRIX_ENABLE | ||
19 | led_config_t g_led_config = { { | ||
20 | { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }, | ||
21 | { 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, NO_LED }, | ||
22 | { 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, NO_LED, 44, NO_LED }, | ||
23 | { 58, 57, 56, 55, 54, 53, NO_LED, 52, 51, 50, 49, 48, 47, 46, 45, NO_LED}, | ||
24 | { 59, NO_LED, 60, 61, 62, NO_LED, NO_LED,63, NO_LED, NO_LED, 64, 65,66,67, 68, NO_LED } | ||
25 | }, { | ||
26 | { 0, 0 }, { 15, 0 }, { 30, 0 }, { 45, 0 }, { 60, 0 }, { 75, 0 }, { 90, 0 }, { 105, 0 }, { 120, 0 }, { 135, 0 }, { 150, 0 }, { 165, 0 }, { 180, 0 }, { 195, 0 }, { 210, 0 }, { 224, 0 }, | ||
27 | { 224, 16 }, { 210, 16 }, { 195, 16 }, { 180, 16 }, { 165, 16 }, { 150, 16 }, { 135, 16 }, { 120, 16 }, { 90, 16 }, { 75, 16 }, { 60, 16 }, { 45, 16 }, { 30, 16 }, { 15, 16 }, { 0, 16 }, | ||
28 | { 0, 32 }, { 15, 32 }, { 30, 32 }, { 45, 32 }, { 60, 32 }, { 75, 32 }, { 90, 32 }, { 135, 32 }, { 150, 32 }, { 165, 32 }, { 180, 32 }, { 195, 32 }, { 210, 32 }, { 224, 32 }, | ||
29 | { 225, 48 }, { 224, 48 }, { 210, 48 }, { 195, 48 }, { 180, 48 }, { 165, 48 }, { 150, 48 }, { 135, 48 }, { 90, 48 }, { 75, 48 }, { 60, 48 }, { 45, 48 }, { 30, 48 }, { 15, 48 }, | ||
30 | { 15, 64 }, { 45, 64 }, { 75, 64 }, { 90, 64 }, { 150, 64 }, { 180, 64 }, { 210, 64 }, { 215, 64 }, { 220, 64 }, { 225, 64 } | ||
31 | }, { | ||
32 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | ||
33 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, | ||
34 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, | ||
35 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, | ||
36 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 | ||
37 | } }; | ||
38 | #endif | ||
39 | |||
40 | #ifdef RGB_MATRIX_ENABLE | ||
41 | void suspend_power_down_kb(void) | ||
42 | { | ||
43 | rgb_matrix_set_suspend_state(true); | ||
44 | suspend_power_down_user(); | ||
45 | } | ||
46 | |||
47 | void suspend_wakeup_init_kb(void) | ||
48 | { | ||
49 | rgb_matrix_set_suspend_state(false); | ||
50 | suspend_wakeup_init_user(); | ||
51 | } | ||
52 | #endif | ||
53 | |||
54 | bool led_update_kb(led_t led_state) { | ||
55 | bool res = led_update_user(led_state); | ||
56 | if(res) { | ||
57 | // writePin sets the pin high for 1 and low for 0. | ||
58 | // In this example the pins are inverted, setting | ||
59 | // it low/0 turns it on, and high/1 turns the LED off. | ||
60 | // This behavior depends on whether the LED is between the pin | ||
61 | // and VCC or the pin and GND. | ||
62 | writePin(B2, !led_state.num_lock); | ||
63 | writePin(C6, !led_state.caps_lock); | ||
64 | writePin(B7, !led_state.scroll_lock); | ||
65 | } | ||
66 | return res; | ||
67 | } | ||
diff --git a/keyboards/handwired/colorlice/colorlice.h b/keyboards/handwired/colorlice/colorlice.h new file mode 100644 index 000000000..8430741e3 --- /dev/null +++ b/keyboards/handwired/colorlice/colorlice.h | |||
@@ -0,0 +1,42 @@ | |||
1 | /* Copyright 2019 marhalloweenvt | ||
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 | #pragma once | ||
17 | |||
18 | |||
19 | #include "quantum.h" | ||
20 | |||
21 | /* This a shortcut to help you visually see your layout. | ||
22 | * | ||
23 | * The first section contains all of the arguments representing the physical | ||
24 | * layout of the board and position of the keys. | ||
25 | * | ||
26 | * The second converts the arguments into a two-dimensional array which | ||
27 | * represents the switch matrix. | ||
28 | */ | ||
29 | #define LAYOUT( \ | ||
30 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, k0f, \ | ||
31 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, k1e, \ | ||
32 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, K2e, \ | ||
33 | k30, k31, k32, k33, k34, k35, k37, k38, k39, k3a, k3b, k3c, k3d, k3e, \ | ||
34 | k40, k42, k43, k44, k47, k4a, k4e \ | ||
35 | ) { \ | ||
36 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, k0f }, \ | ||
37 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, k1e, KC_NO }, \ | ||
38 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, KC_NO, K2e, KC_NO }, \ | ||
39 | { k30, k31, k32, k33, k34, k35, KC_NO, k37, k38, k39, k3a, k3b, k3c, k3d, k3e, KC_NO }, \ | ||
40 | { k40, KC_NO, k42, k43, k44, KC_NO, KC_NO,k47, KC_NO, KC_NO, k4a, KC_NO,KC_NO,KC_NO, k4e, KC_NO }, \ | ||
41 | } | ||
42 | |||
diff --git a/keyboards/handwired/colorlice/config.h b/keyboards/handwired/colorlice/config.h new file mode 100644 index 000000000..bbb78e6ba --- /dev/null +++ b/keyboards/handwired/colorlice/config.h | |||
@@ -0,0 +1,51 @@ | |||
1 | /* | ||
2 | Copyright 2019 Marhalloweenvt | ||
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 | #include "config_common.h" | ||
21 | |||
22 | /* USB Device descriptor parameter */ | ||
23 | #define VENDOR_ID 0xFEED | ||
24 | #define PRODUCT_ID 0x0302 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER marhalloweenvt | ||
27 | #define PRODUCT Colorlice | ||
28 | #define DESCRIPTION Replacement PCB for TGR Alice | ||
29 | |||
30 | /* key matrix size */ | ||
31 | #define MATRIX_ROWS 5 | ||
32 | #define MATRIX_COLS 16 | ||
33 | |||
34 | /* key matrix pins */ | ||
35 | #define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 } | ||
36 | #define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, C7, B6, B5, B4, D7, D6, D4, E6, B0, B3 } | ||
37 | #define UNUSED_PINS | ||
38 | |||
39 | /* COL2ROW or ROW2COL */ | ||
40 | #define DIODE_DIRECTION COL2ROW | ||
41 | |||
42 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
43 | #define DEBOUNCE 5 | ||
44 | |||
45 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
46 | #define LOCKING_SUPPORT_ENABLE | ||
47 | /* Locking resynchronize hack */ | ||
48 | #define LOCKING_RESYNC_ENABLE | ||
49 | |||
50 | /* RGB LEDs */ | ||
51 | #define RGB_DI_PIN B1 | ||
diff --git a/keyboards/handwired/colorlice/info.json b/keyboards/handwired/colorlice/info.json new file mode 100644 index 000000000..0b2887625 --- /dev/null +++ b/keyboards/handwired/colorlice/info.json | |||
@@ -0,0 +1,79 @@ | |||
1 | { | ||
2 | "keyboard_name": "ColorLice", | ||
3 | "url": "", | ||
4 | "maintainer": "marhalloweenvt", | ||
5 | "width": 17.75, | ||
6 | "height": 5, | ||
7 | "layouts": { | ||
8 | "LAYOUT": { | ||
9 | "layout": [ | ||
10 | {"label":"K63", "x":0, "y":0}, | ||
11 | {"label":"K00", "x":1.25, "y":0}, | ||
12 | {"label":"K01", "x":2.25, "y":0}, | ||
13 | {"label":"K02", "x":3.25, "y":0}, | ||
14 | {"label":"K03", "x":4.25, "y":0}, | ||
15 | {"label":"K04", "x":5.25, "y":0}, | ||
16 | {"label":"K05", "x":6.25, "y":0}, | ||
17 | {"label":"K06", "x":7.25, "y":0}, | ||
18 | {"label":"K07", "x":10.25, "y":0}, | ||
19 | {"label":"K08", "x":11.25, "y":0}, | ||
20 | {"label":"K09", "x":12.25, "y":0}, | ||
21 | {"label":"K10", "x":13.25, "y":0}, | ||
22 | {"label":"K11", "x":14.25, "y":0}, | ||
23 | {"label":"K12", "x":15.25, "y":0}, | ||
24 | {"label":"K13", "x":16.25, "y":0}, | ||
25 | {"label":"K14", "x":17.25, "y":0}, | ||
26 | {"label":"K64", "x":0, "y":1}, | ||
27 | {"label":"K15", "x":1.25, "y":1, "w":1.5}, | ||
28 | {"label":"K16", "x":2.75, "y":1}, | ||
29 | {"label":"K17", "x":3.75, "y":1}, | ||
30 | {"label":"K18", "x":4.75, "y":1}, | ||
31 | {"label":"K19", "x":5.75, "y":1}, | ||
32 | {"label":"K20", "x":6.75, "y":1}, | ||
33 | {"label":"K21", "x":9.75, "y":1}, | ||
34 | {"label":"K22", "x":10.75, "y":1}, | ||
35 | {"label":"K23", "x":11.75, "y":1}, | ||
36 | {"label":"K24", "x":12.75, "y":1}, | ||
37 | {"label":"K25", "x":13.75, "y":1}, | ||
38 | {"label":"K26", "x":14.75, "y":1}, | ||
39 | {"label":"K27", "x":15.75, "y":1}, | ||
40 | {"label":"K28", "x":16.75, "y":1, "w":1.5}, | ||
41 | {"label":"K65", "x":0, "y":2}, | ||
42 | {"label":"K29", "x":1.25, "y":2, "w":1.75}, | ||
43 | {"label":"K30", "x":3, "y":2}, | ||
44 | {"label":"K31", "x":4, "y":2}, | ||
45 | {"label":"K32", "x":5, "y":2}, | ||
46 | {"label":"K33", "x":6, "y":2}, | ||
47 | {"label":"K34", "x":7, "y":2}, | ||
48 | {"label":"K35", "x":10, "y":2}, | ||
49 | {"label":"K36", "x":11, "y":2}, | ||
50 | {"label":"K37", "x":12, "y":2}, | ||
51 | {"label":"K38", "x":13, "y":2}, | ||
52 | {"label":"K39", "x":14, "y":2}, | ||
53 | {"label":"K40", "x":15, "y":2}, | ||
54 | {"label":"K41", "x":16, "y":2, "w":2.25}, | ||
55 | {"label":"K42", "x":1.25, "y":3, "w":2.25}, | ||
56 | {"label":"K43", "x":3.5, "y":3}, | ||
57 | {"label":"K44", "x":4.5, "y":3}, | ||
58 | {"label":"K45", "x":5.5, "y":3}, | ||
59 | {"label":"K46", "x":6.5, "y":3}, | ||
60 | {"label":"K47", "x":7.5, "y":3}, | ||
61 | {"label":"K48", "x":9.5, "y":3}, | ||
62 | {"label":"K49", "x":10.5, "y":3}, | ||
63 | {"label":"K50", "x":11.5, "y":3}, | ||
64 | {"label":"K51", "x":12.5, "y":3}, | ||
65 | {"label":"K52", "x":13.5, "y":3}, | ||
66 | {"label":"K53", "x":14.5, "y":3}, | ||
67 | {"label":"K54", "x":15.5, "y":3, "w":1.75}, | ||
68 | {"label":"K55", "x":17.25, "y":3}, | ||
69 | {"label":"K56", "x":1.25, "y":4, "w":1.5}, | ||
70 | {"label":"K57", "x":4.25, "y":4, "w":1.5}, | ||
71 | {"label":"K58", "x":5.75, "y":4, "w":2}, | ||
72 | {"label":"K59", "x":7.75, "y":4, "w":1.25}, | ||
73 | {"label":"K60", "x":9.5, "y":4, "w":2.75}, | ||
74 | {"label":"K61", "x":12.25, "y":4, "w":1.5}, | ||
75 | {"label":"K62", "x":16.75, "y":4, "w":1.5} | ||
76 | ] | ||
77 | } | ||
78 | } | ||
79 | } | ||
diff --git a/keyboards/handwired/colorlice/keymaps/default/config.h b/keyboards/handwired/colorlice/keymaps/default/config.h new file mode 100644 index 000000000..ca7fe5c06 --- /dev/null +++ b/keyboards/handwired/colorlice/keymaps/default/config.h | |||
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | Copyright 2019 Marhalloweenvt | ||
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 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | ||
19 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | ||
20 | #define RGB_MATRIX_KEYPRESSES | ||
21 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
22 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | ||
23 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | ||
24 | #define DRIVER_LED_TOTAL 70 | ||
diff --git a/keyboards/handwired/colorlice/keymaps/default/keymap.c b/keyboards/handwired/colorlice/keymaps/default/keymap.c new file mode 100644 index 000000000..84257a120 --- /dev/null +++ b/keyboards/handwired/colorlice/keymaps/default/keymap.c | |||
@@ -0,0 +1,33 @@ | |||
1 | /* Copyright 2019 marhalloweenvt | ||
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 | #include QMK_KEYBOARD_H | ||
17 | |||
18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
19 | |||
20 | [0] = LAYOUT( | ||
21 | RGB_TOG, KC_GESC, 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_GRV, KC_BSLS, | ||
22 | RGB_MOD, 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_BSPC, | ||
23 | KC_PGDN, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
24 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), | ||
25 | KC_LGUI, KC_LALT, KC_SPC, KC_LGUI, KC_SPC, KC_RALT, KC_RCTL), | ||
26 | |||
27 | [1] = LAYOUT( | ||
28 | _______, _______, 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_DEL, KC_DEL, | ||
29 | _______, _______, _______, KC_UP, _______, _______, _______, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD , _______, _______, | ||
30 | _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______, RESET, | ||
31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLD, KC_VOLU, KC_MUTE, _______, | ||
32 | _______, _______, _______, _______, _______, _______, _______ ), | ||
33 | }; | ||
diff --git a/keyboards/handwired/colorlice/keymaps/default_rgb_underglow/config.h b/keyboards/handwired/colorlice/keymaps/default_rgb_underglow/config.h new file mode 100644 index 000000000..db4504305 --- /dev/null +++ b/keyboards/handwired/colorlice/keymaps/default_rgb_underglow/config.h | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | Copyright 2019 Marhalloweenvt | ||
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 | #define RGBLIGHT_ANIMATIONS | ||
19 | #define RGBLED_NUM 16 | ||
20 | #define RGBLIGHT_HUE_STEP 8 | ||
21 | #define RGBLIGHT_SAT_STEP 8 | ||
22 | #define RGBLIGHT_VAL_STEP 8 | ||
diff --git a/keyboards/handwired/colorlice/keymaps/default_rgb_underglow/keymap.c b/keyboards/handwired/colorlice/keymaps/default_rgb_underglow/keymap.c new file mode 100644 index 000000000..84257a120 --- /dev/null +++ b/keyboards/handwired/colorlice/keymaps/default_rgb_underglow/keymap.c | |||
@@ -0,0 +1,33 @@ | |||
1 | /* Copyright 2019 marhalloweenvt | ||
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 | #include QMK_KEYBOARD_H | ||
17 | |||
18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
19 | |||
20 | [0] = LAYOUT( | ||
21 | RGB_TOG, KC_GESC, 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_GRV, KC_BSLS, | ||
22 | RGB_MOD, 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_BSPC, | ||
23 | KC_PGDN, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
24 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), | ||
25 | KC_LGUI, KC_LALT, KC_SPC, KC_LGUI, KC_SPC, KC_RALT, KC_RCTL), | ||
26 | |||
27 | [1] = LAYOUT( | ||
28 | _______, _______, 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_DEL, KC_DEL, | ||
29 | _______, _______, _______, KC_UP, _______, _______, _______, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD , _______, _______, | ||
30 | _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______, RESET, | ||
31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLD, KC_VOLU, KC_MUTE, _______, | ||
32 | _______, _______, _______, _______, _______, _______, _______ ), | ||
33 | }; | ||
diff --git a/keyboards/handwired/colorlice/keymaps/default_rgb_underglow/rules.mk b/keyboards/handwired/colorlice/keymaps/default_rgb_underglow/rules.mk new file mode 100644 index 000000000..9cb7b7cc8 --- /dev/null +++ b/keyboards/handwired/colorlice/keymaps/default_rgb_underglow/rules.mk | |||
@@ -0,0 +1,2 @@ | |||
1 | RGB_MATRIX_ENABLE = no # Enable keyboard RGB backlight functionality with ws2812 driver | ||
2 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
diff --git a/keyboards/handwired/colorlice/readme.md b/keyboards/handwired/colorlice/readme.md new file mode 100644 index 000000000..de4c3fce3 --- /dev/null +++ b/keyboards/handwired/colorlice/readme.md | |||
@@ -0,0 +1,13 @@ | |||
1 | # COLORLICE | ||
2 | |||
3 | A keyboard inspired by TGR Alice | ||
4 | |||
5 | * Keyboard Maintainer: [marhalloweenvt](https://github.com/marhalloweenvt) | ||
6 | * Hardware Supported: Colorlice PCB | ||
7 | * Hardware Availability: Colorlice PCB | ||
8 | |||
9 | Make example for this keyboard (after setting up your build environment): | ||
10 | |||
11 | make handwired/colorlice:default | ||
12 | |||
13 | 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/handwired/colorlice/rules.mk b/keyboards/handwired/colorlice/rules.mk new file mode 100644 index 000000000..b9091e19e --- /dev/null +++ b/keyboards/handwired/colorlice/rules.mk | |||
@@ -0,0 +1,36 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | # Teensy halfkay | ||
6 | # Pro Micro caterina | ||
7 | # Atmel DFU atmel-dfu | ||
8 | # LUFA DFU lufa-dfu | ||
9 | # QMK DFU qmk-dfu | ||
10 | # ATmega32A bootloadHID | ||
11 | # ATmega328P USBasp | ||
12 | BOOTLOADER = atmel-dfu | ||
13 | |||
14 | # Build Options | ||
15 | # change yes to no to disable | ||
16 | # | ||
17 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration | ||
18 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
19 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
20 | CONSOLE_ENABLE = yes # Console for debug | ||
21 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
25 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
26 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | ||
27 | MIDI_ENABLE = no # MIDI support | ||
28 | UNICODE_ENABLE = no # Unicode | ||
29 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
30 | AUDIO_ENABLE = no # Audio output on port C6 | ||
31 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
32 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs | ||
33 | LTO_ENABLE = yes # Use link time optimization | ||
34 | RGB_MATRIX_ENABLE = WS2812 # Enable keyboard RGB backlight functionality with ws2812 driver | ||
35 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
36 | NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in | ||