diff options
author | QMK Bot <hello@qmk.fm> | 2021-07-11 16:42:52 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2021-07-11 16:42:52 +0000 |
commit | fd284c43a598061afeb30e8edb4fb239f0196ac3 (patch) | |
tree | 48dc35a4d24415b406451bea5ae191ca222db6b8 | |
parent | 14ba80614063cbd837580dec83b1178b4dd82731 (diff) | |
parent | 20a28d6752ddf70d1c50a6b444bcb9ea74ea399a (diff) | |
download | qmk_firmware-fd284c43a598061afeb30e8edb4fb239f0196ac3.tar.gz qmk_firmware-fd284c43a598061afeb30e8edb4fb239f0196ac3.zip |
Merge remote-tracking branch 'origin/master' into develop
-rw-r--r-- | keyboards/capsunlocked/cu7/config.h | 72 | ||||
-rw-r--r-- | keyboards/capsunlocked/cu7/cu7.c | 14 | ||||
-rw-r--r-- | keyboards/capsunlocked/cu7/cu7.h | 36 | ||||
-rw-r--r-- | keyboards/capsunlocked/cu7/info.json | 12 | ||||
-rw-r--r-- | keyboards/capsunlocked/cu7/keymaps/default/keymap.c | 42 | ||||
-rw-r--r-- | keyboards/capsunlocked/cu7/keymaps/default/readme.md | 1 | ||||
-rw-r--r-- | keyboards/capsunlocked/cu7/readme.md | 15 | ||||
-rw-r--r-- | keyboards/capsunlocked/cu7/rules.mk | 23 | ||||
-rwxr-xr-x | keyboards/lazydesigners/the60/rev2/rev2.h | 20 |
9 files changed, 225 insertions, 10 deletions
diff --git a/keyboards/capsunlocked/cu7/config.h b/keyboards/capsunlocked/cu7/config.h new file mode 100644 index 000000000..cc22be0f0 --- /dev/null +++ b/keyboards/capsunlocked/cu7/config.h | |||
@@ -0,0 +1,72 @@ | |||
1 | /* | ||
2 | Copyright 2021 CapsUnlocked | ||
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 | #pragma once | ||
18 | |||
19 | #include "config_common.h" | ||
20 | |||
21 | /* USB Device descriptor parameter */ | ||
22 | #define VENDOR_ID 0x4355 | ||
23 | #define PRODUCT_ID 0x0007 | ||
24 | #define DEVICE_VER 0x0001 | ||
25 | #define MANUFACTURER CapsUnlocked | ||
26 | #define PRODUCT CU7 | ||
27 | |||
28 | /* key matrix size */ | ||
29 | #define MATRIX_ROWS 3 | ||
30 | #define MATRIX_COLS 3 | ||
31 | |||
32 | /* | ||
33 | * Keyboard Matrix Assignments | ||
34 | * | ||
35 | * Change this to how you wired your keyboard | ||
36 | * COLS: AVR pins used for columns, left to right | ||
37 | * ROWS: AVR pins used for rows, top to bottom | ||
38 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
39 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
40 | * | ||
41 | */ | ||
42 | |||
43 | #define ENCODER_RESOLUTION 2 | ||
44 | |||
45 | #define ENCODERS_PAD_A { D6 } | ||
46 | #define ENCODERS_PAD_B { D4 } | ||
47 | |||
48 | #define MATRIX_ROW_PINS { D7, F0, F6 } | ||
49 | #define MATRIX_COL_PINS { F5, F7, F4 } | ||
50 | #define UNUSED_PINS | ||
51 | |||
52 | /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */ | ||
53 | #define DIODE_DIRECTION COL2ROW | ||
54 | |||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
56 | #define DEBOUNCE 5 | ||
57 | |||
58 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
59 | #define LOCKING_SUPPORT_ENABLE | ||
60 | /* Locking resynchronize hack */ | ||
61 | #define LOCKING_RESYNC_ENABLE | ||
62 | |||
63 | #define RGB_DI_PIN F1 | ||
64 | #ifdef RGB_DI_PIN | ||
65 | #define RGBLIGHT_ANIMATIONS | ||
66 | // #define RGBLIGHT_EFFECT_BREATHING | ||
67 | #define RGBLED_NUM 6 | ||
68 | #define RGBLIGHT_HUE_STEP 10 | ||
69 | #define RGBLIGHT_SAT_STEP 17 | ||
70 | #define RGBLIGHT_VAL_STEP 17 | ||
71 | #define RGBLIGHT_LIMIT_VAL 50 | ||
72 | #endif | ||
diff --git a/keyboards/capsunlocked/cu7/cu7.c b/keyboards/capsunlocked/cu7/cu7.c new file mode 100644 index 000000000..815ac53c9 --- /dev/null +++ b/keyboards/capsunlocked/cu7/cu7.c | |||
@@ -0,0 +1,14 @@ | |||
1 | /* | ||
2 | Copyright 2021 CapsUnlocked | ||
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 | This program is distributed in the hope that it will be useful, | ||
8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | GNU General Public License for more details. | ||
11 | You should have received a copy of the GNU General Public License | ||
12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
13 | */ | ||
14 | #include "cu7.h" | ||
diff --git a/keyboards/capsunlocked/cu7/cu7.h b/keyboards/capsunlocked/cu7/cu7.h new file mode 100644 index 000000000..2f30dbb2d --- /dev/null +++ b/keyboards/capsunlocked/cu7/cu7.h | |||
@@ -0,0 +1,36 @@ | |||
1 | /* | ||
2 | Copyright 2021 CapsUnlocked | ||
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 | This program is distributed in the hope that it will be useful, | ||
8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | GNU General Public License for more details. | ||
11 | You should have received a copy of the GNU General Public License | ||
12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
13 | */ | ||
14 | #pragma once | ||
15 | |||
16 | #include "quantum.h" | ||
17 | |||
18 | /* This a shortcut to help you visually see your layout. | ||
19 | * | ||
20 | * The first section contains all of the arguments representing the physical | ||
21 | * layout of the board and position of the keys. | ||
22 | * | ||
23 | * The second converts the arguments into a two-dimensional array which | ||
24 | * represents the switch matrix. | ||
25 | */ | ||
26 | |||
27 | #define LAYOUT( \ | ||
28 | K01, \ | ||
29 | K10, K11, K12, \ | ||
30 | K20, K21, K22 \ | ||
31 | ) { \ | ||
32 | { KC_NO, K01, KC_NO }, \ | ||
33 | { K10, K11, K12 }, \ | ||
34 | { K20, K21, K22 } \ | ||
35 | } | ||
36 | |||
diff --git a/keyboards/capsunlocked/cu7/info.json b/keyboards/capsunlocked/cu7/info.json new file mode 100644 index 000000000..1ce2a80a1 --- /dev/null +++ b/keyboards/capsunlocked/cu7/info.json | |||
@@ -0,0 +1,12 @@ | |||
1 | { | ||
2 | "keyboard_name": "CU7", | ||
3 | "url": "https://caps-unlocked.com/cu7/", | ||
4 | "maintainer": "rys", | ||
5 | "width": 3, | ||
6 | "height": 4.5, | ||
7 | "layouts": { | ||
8 | "LAYOUT": { | ||
9 | "layout": [{"x":0, "y":2.5}, {"x":1, "y":2.5}, {"x":2, "y":2.5}, {"x":0, "y":3.5}, {"x":1, "y":3.5}, {"x":2, "y":3.5}] | ||
10 | } | ||
11 | } | ||
12 | } | ||
diff --git a/keyboards/capsunlocked/cu7/keymaps/default/keymap.c b/keyboards/capsunlocked/cu7/keymaps/default/keymap.c new file mode 100644 index 000000000..66ee4f7a9 --- /dev/null +++ b/keyboards/capsunlocked/cu7/keymaps/default/keymap.c | |||
@@ -0,0 +1,42 @@ | |||
1 | /* | ||
2 | Copyright 2021 CapsUnlocked | ||
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 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
20 | [0] = LAYOUT( | ||
21 | MO(1), | ||
22 | KC_1, KC_2, KC_3, | ||
23 | KC_4, KC_5, KC_6 | ||
24 | ), | ||
25 | [1] = LAYOUT( | ||
26 | _______, | ||
27 | RGB_MOD, KC_UP, RESET, | ||
28 | KC_LEFT, KC_DOWN, KC_RGHT | ||
29 | ), | ||
30 | }; | ||
31 | |||
32 | // Volume up/down on the encoder | ||
33 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
34 | if (clockwise) { | ||
35 | tap_code_delay(KC_VOLU, 10); | ||
36 | } | ||
37 | else { | ||
38 | tap_code_delay(KC_VOLD, 10); | ||
39 | } | ||
40 | |||
41 | return true; | ||
42 | } | ||
diff --git a/keyboards/capsunlocked/cu7/keymaps/default/readme.md b/keyboards/capsunlocked/cu7/keymaps/default/readme.md new file mode 100644 index 000000000..e61236857 --- /dev/null +++ b/keyboards/capsunlocked/cu7/keymaps/default/readme.md | |||
@@ -0,0 +1 @@ | |||
# The default keymap for CU7 \ No newline at end of file | |||
diff --git a/keyboards/capsunlocked/cu7/readme.md b/keyboards/capsunlocked/cu7/readme.md new file mode 100644 index 000000000..bd5759a39 --- /dev/null +++ b/keyboards/capsunlocked/cu7/readme.md | |||
@@ -0,0 +1,15 @@ | |||
1 | # CU7 | ||
2 | |||
3 | The CU7 is a customisable 3x2 key macropad with a clickable rotary encoder. | ||
4 | |||
5 | To place the keyboard into bootloader mode in order to flash it, use the reset button on the PCB. | ||
6 | |||
7 | * Keyboard maintainer: [rys](https://github.com/rys) | ||
8 | * Hardware supported: CU7 | ||
9 | * Hardware availability: [CapsUnlocked](https://caps-unlocked.com/cu7/) | ||
10 | |||
11 | Make and flash example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make capsunlocked/cu7:default:flash | ||
14 | |||
15 | 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/capsunlocked/cu7/rules.mk b/keyboards/capsunlocked/cu7/rules.mk new file mode 100644 index 000000000..d8e105059 --- /dev/null +++ b/keyboards/capsunlocked/cu7/rules.mk | |||
@@ -0,0 +1,23 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader | ||
5 | BOOTLOADER = atmel-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
11 | MOUSEKEY_ENABLE = yes # 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 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
18 | NKRO_ENABLE = no # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
22 | AUDIO_ENABLE = no # Audio output | ||
23 | ENCODER_ENABLE = yes | ||
diff --git a/keyboards/lazydesigners/the60/rev2/rev2.h b/keyboards/lazydesigners/the60/rev2/rev2.h index 1742fa6bf..4ac3327f6 100755 --- a/keyboards/lazydesigners/the60/rev2/rev2.h +++ b/keyboards/lazydesigners/the60/rev2/rev2.h | |||
@@ -45,8 +45,8 @@ | |||
45 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \ | 45 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \ |
46 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \ | 46 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \ |
47 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \ | 47 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \ |
48 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \ | 48 | { K300, KC_NO, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \ |
49 | { K400, K401, K402, KC_NO, K404, KC_NO, K406, KC_NO, K408, KC_NO, K410, K411, K412, K413 }, \ | 49 | { K400, KC_NO, K402, KC_NO, KC_NO, KC_NO, K406, KC_NO, KC_NO, KC_NO, KC_NO, K411, KC_NO, K413 }, \ |
50 | } | 50 | } |
51 | 51 | ||
52 | #define LAYOUT_hhkb_standard( \ | 52 | #define LAYOUT_hhkb_standard( \ |
@@ -60,8 +60,8 @@ | |||
60 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \ | 60 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \ |
61 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \ | 61 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \ |
62 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \ | 62 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \ |
63 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \ | 63 | { K300, KC_NO, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \ |
64 | { K400, K401, K402, KC_NO, K404, KC_NO, K406, KC_NO, K408, KC_NO, K410, K411, K412, K413 }, \ | 64 | { KC_NO, K401, K402, KC_NO, KC_NO, KC_NO, K406, KC_NO, KC_NO, KC_NO, KC_NO, K411, K412, KC_NO}, \ |
65 | } | 65 | } |
66 | 66 | ||
67 | #define LAYOUT_wkl_iso( \ | 67 | #define LAYOUT_wkl_iso( \ |
@@ -76,7 +76,7 @@ | |||
76 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \ | 76 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \ |
77 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \ | 77 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \ |
78 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \ | 78 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \ |
79 | { K400, K401, K402, KC_NO, K404, KC_NO, K406, KC_NO, K408, KC_NO, K410, K411, K412, K413 }, \ | 79 | { K400, KC_NO, K402, KC_NO, K404, KC_NO, K406, KC_NO, K408, KC_NO, K410, K411, KC_NO, K413 }, \ |
80 | } | 80 | } |
81 | 81 | ||
82 | #define LAYOUT_hhkb_iso( \ | 82 | #define LAYOUT_hhkb_iso( \ |
@@ -91,7 +91,7 @@ | |||
91 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \ | 91 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \ |
92 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \ | 92 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \ |
93 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \ | 93 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \ |
94 | { K400, K401, K402, KC_NO, K404, KC_NO, K406, KC_NO, K408, KC_NO, K410, K411, K412, K413 }, \ | 94 | { KC_NO, K401, K402, KC_NO, K404, KC_NO, K406, KC_NO, K408, KC_NO, K410, K411, K412, KC_NO}, \ |
95 | } | 95 | } |
96 | 96 | ||
97 | #define LAYOUT_wkl_splitspace( \ | 97 | #define LAYOUT_wkl_splitspace( \ |
@@ -105,8 +105,8 @@ | |||
105 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \ | 105 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \ |
106 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \ | 106 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \ |
107 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \ | 107 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \ |
108 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \ | 108 | { K300, KC_NO, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \ |
109 | { K400, K401, K402, KC_NO, K404, KC_NO, K406, KC_NO, K408, KC_NO, K410, K411, K412, K413 }, \ | 109 | { K400, KC_NO, K402, KC_NO, K404, KC_NO, K406, KC_NO, K408, KC_NO, K410, K411, KC_NO, K413 }, \ |
110 | } | 110 | } |
111 | 111 | ||
112 | #define LAYOUT_hhkb_splitspace( \ | 112 | #define LAYOUT_hhkb_splitspace( \ |
@@ -120,6 +120,6 @@ | |||
120 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \ | 120 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \ |
121 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \ | 121 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \ |
122 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \ | 122 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \ |
123 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \ | 123 | { K300, KC_NO, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \ |
124 | { K400, K401, K402, KC_NO, K404, KC_NO, K406, KC_NO, K408, KC_NO, K410, K411, K412, K413 }, \ | 124 | { KC_NO, K401, K402, KC_NO, K404, KC_NO, K406, KC_NO, K408, KC_NO, K410, K411, K412, KC_NO}, \ |
125 | } | 125 | } |