diff options
author | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
commit | dc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch) | |
tree | 4ccb8fa5886b66fa9d480edef74236c27f035e16 /keyboards/bigseries/2key |
Diffstat (limited to 'keyboards/bigseries/2key')
-rw-r--r-- | keyboards/bigseries/2key/.noci | 0 | ||||
-rwxr-xr-x | keyboards/bigseries/2key/2key.c | 26 | ||||
-rwxr-xr-x | keyboards/bigseries/2key/2key.h | 26 | ||||
-rwxr-xr-x | keyboards/bigseries/2key/config.h | 57 | ||||
-rw-r--r-- | keyboards/bigseries/2key/info.json | 13 | ||||
-rwxr-xr-x | keyboards/bigseries/2key/keymaps/default/keymap.c | 42 | ||||
-rwxr-xr-x | keyboards/bigseries/2key/keymaps/lock/keymap.c | 44 | ||||
-rwxr-xr-x | keyboards/bigseries/2key/keymaps/tester/keymap.c | 43 | ||||
-rw-r--r-- | keyboards/bigseries/2key/readme.md | 15 | ||||
-rwxr-xr-x | keyboards/bigseries/2key/rules.mk | 18 |
10 files changed, 284 insertions, 0 deletions
diff --git a/keyboards/bigseries/2key/.noci b/keyboards/bigseries/2key/.noci new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/keyboards/bigseries/2key/.noci | |||
diff --git a/keyboards/bigseries/2key/2key.c b/keyboards/bigseries/2key/2key.c new file mode 100755 index 000000000..cffb71907 --- /dev/null +++ b/keyboards/bigseries/2key/2key.c | |||
@@ -0,0 +1,26 @@ | |||
1 | /* | ||
2 | Copyright 2018 Cole Markham | ||
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 "2key.h" | ||
18 | |||
19 | void matrix_scan_kb(void) { | ||
20 | // Looping keyboard code goes here | ||
21 | // This runs every cycle (a lot) | ||
22 | matrix_scan_user(); | ||
23 | #ifdef BACKLIGHT_ENABLE | ||
24 | backlight_task(); | ||
25 | #endif | ||
26 | }; | ||
diff --git a/keyboards/bigseries/2key/2key.h b/keyboards/bigseries/2key/2key.h new file mode 100755 index 000000000..eff82fef9 --- /dev/null +++ b/keyboards/bigseries/2key/2key.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /* | ||
2 | Copyright 2018 Cole Markham | ||
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 "quantum.h" | ||
21 | |||
22 | #define LAYOUT( \ | ||
23 | k00, k01 \ | ||
24 | ) { \ | ||
25 | { k00, k01 } \ | ||
26 | } | ||
diff --git a/keyboards/bigseries/2key/config.h b/keyboards/bigseries/2key/config.h new file mode 100755 index 000000000..53866a15d --- /dev/null +++ b/keyboards/bigseries/2key/config.h | |||
@@ -0,0 +1,57 @@ | |||
1 | /* | ||
2 | Copyright 2018 Cole Markham | ||
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 0x6071 | ||
25 | #define DEVICE_VER 0x0002 | ||
26 | #define MANUFACTURER WoodKeys.click | ||
27 | #define PRODUCT BigSeries Single Keyboard | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 1 | ||
31 | #define MATRIX_COLS 2 | ||
32 | |||
33 | /* key matrix pins */ | ||
34 | #define MATRIX_ROW_PINS { B0 } | ||
35 | #define MATRIX_COL_PINS { B4, B3 } | ||
36 | #define UNUSED_PINS | ||
37 | |||
38 | /* COL2ROW or ROW2COL */ | ||
39 | #define DIODE_DIRECTION ROW2COL | ||
40 | |||
41 | /* Set 0 if debouncing isn't needed */ | ||
42 | #define DEBOUNCE 50 | ||
43 | |||
44 | /* key combination for command */ | ||
45 | #define IS_COMMAND() ( \ | ||
46 | false \ | ||
47 | ) | ||
48 | |||
49 | #ifdef RGBLIGHT_ENABLE | ||
50 | #define RGB_DI_PIN D3 | ||
51 | #define RGBLIGHT_ANIMATIONS | ||
52 | #define RGBLED_NUM 8 | ||
53 | #ifdef RGBLIGHT_LIMIT_VAL | ||
54 | #undef RGBLIGHT_LIMIT_VAL | ||
55 | #endif | ||
56 | #define RGBLIGHT_LIMIT_VAL 128 | ||
57 | #endif | ||
diff --git a/keyboards/bigseries/2key/info.json b/keyboards/bigseries/2key/info.json new file mode 100644 index 000000000..df3237def --- /dev/null +++ b/keyboards/bigseries/2key/info.json | |||
@@ -0,0 +1,13 @@ | |||
1 | { | ||
2 | "keyboard_name": "Big Series 2-Key", | ||
3 | "url": "", | ||
4 | "maintainer": "qmk", | ||
5 | "layouts": { | ||
6 | "LAYOUT": { | ||
7 | "layout": [ | ||
8 | {"x": 0, "y": 0, "w": 4, "h": 4}, | ||
9 | {"x": 4, "y": 0, "w": 4, "h": 4} | ||
10 | ] | ||
11 | } | ||
12 | } | ||
13 | } | ||
diff --git a/keyboards/bigseries/2key/keymaps/default/keymap.c b/keyboards/bigseries/2key/keymaps/default/keymap.c new file mode 100755 index 000000000..128a3e9c8 --- /dev/null +++ b/keyboards/bigseries/2key/keymaps/default/keymap.c | |||
@@ -0,0 +1,42 @@ | |||
1 | /* | ||
2 | Copyright 2018 Cole Markham | ||
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 | #include QMK_KEYBOARD_H | ||
19 | |||
20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
21 | |||
22 | LAYOUT( | ||
23 | KC_Z, KC_X), | ||
24 | |||
25 | |||
26 | }; | ||
27 | |||
28 | |||
29 | bool initialized = 0; | ||
30 | |||
31 | void matrix_init_user(void) { | ||
32 | if (!initialized){ | ||
33 | // Disable to set a known state | ||
34 | rgblight_disable(); | ||
35 | rgblight_init(); | ||
36 | // None of the subsequent operations take effect if not enabled | ||
37 | rgblight_enable(); | ||
38 | rgblight_sethsv(0,0,255); | ||
39 | rgblight_mode(35); | ||
40 | initialized = 1; | ||
41 | } | ||
42 | } | ||
diff --git a/keyboards/bigseries/2key/keymaps/lock/keymap.c b/keyboards/bigseries/2key/keymaps/lock/keymap.c new file mode 100755 index 000000000..3646fb40d --- /dev/null +++ b/keyboards/bigseries/2key/keymaps/lock/keymap.c | |||
@@ -0,0 +1,44 @@ | |||
1 | /* | ||
2 | Copyright 2018 Cole Markham | ||
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 | #include QMK_KEYBOARD_H | ||
19 | |||
20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
21 | |||
22 | LAYOUT( | ||
23 | LGUI(KC_L), LCTL(LALT(KC_DEL)) | ||
24 | ), | ||
25 | |||
26 | |||
27 | }; | ||
28 | |||
29 | |||
30 | bool initialized = 0; | ||
31 | |||
32 | void matrix_init_user(void) { | ||
33 | if (!initialized){ | ||
34 | dprintf("Initializing in matrix_scan_user"); | ||
35 | // Disable to set a known state | ||
36 | rgblight_disable(); | ||
37 | rgblight_init(); | ||
38 | // None of the subsequent operations take effect if not enabled | ||
39 | rgblight_enable(); | ||
40 | rgblight_sethsv(0,0,255); | ||
41 | rgblight_mode(7); | ||
42 | initialized = 1; | ||
43 | } | ||
44 | } | ||
diff --git a/keyboards/bigseries/2key/keymaps/tester/keymap.c b/keyboards/bigseries/2key/keymaps/tester/keymap.c new file mode 100755 index 000000000..8938b1b40 --- /dev/null +++ b/keyboards/bigseries/2key/keymaps/tester/keymap.c | |||
@@ -0,0 +1,43 @@ | |||
1 | /* | ||
2 | Copyright 2018 Cole Markham | ||
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 | #include QMK_KEYBOARD_H | ||
19 | |||
20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
21 | |||
22 | LAYOUT( | ||
23 | KC_A, KC_B), | ||
24 | |||
25 | |||
26 | }; | ||
27 | |||
28 | |||
29 | bool initialized = 0; | ||
30 | |||
31 | void matrix_init_user(void) { | ||
32 | if (!initialized){ | ||
33 | dprintf("Initializing in matrix_scan_user"); | ||
34 | // Disable to set a known state | ||
35 | rgblight_disable(); | ||
36 | rgblight_init(); | ||
37 | // None of the subsequent operations take effect if not enabled | ||
38 | rgblight_enable(); | ||
39 | rgblight_sethsv(0,0,255); | ||
40 | rgblight_mode(35); | ||
41 | initialized = 1; | ||
42 | } | ||
43 | } | ||
diff --git a/keyboards/bigseries/2key/readme.md b/keyboards/bigseries/2key/readme.md new file mode 100644 index 000000000..e88243301 --- /dev/null +++ b/keyboards/bigseries/2key/readme.md | |||
@@ -0,0 +1,15 @@ | |||
1 | # Big Series Keyboard | ||
2 | |||
3 |  | ||
4 | |||
5 | A PCB for the Big Series Switch by [NovelKeys](https://novelkeys.xyz). Available in 1, 2, 3, and 4 switch versions from [Woodkeys.click](https://woodkeys.click/product-category/big-series/). | ||
6 | |||
7 | Keyboard Maintainer: [Cole Markham](https://github.com/colemarkham) / [Woodkeys.click](https://woodkeys.click) | ||
8 | Hardware Supported: Big Series PCBs | ||
9 | Hardware Availability: [Woodkeys.click](https://woodkeys.click), [NovelKeys](https://novelkeys.xyz) | ||
10 | |||
11 | Make example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make bigseries/2key:default | ||
14 | |||
15 | See [build environment setup](https://docs.qmk.fm/install-build-tools) then the [make instructions](https://docs.qmk.fm/build-compile-instructions) for more information. | ||
diff --git a/keyboards/bigseries/2key/rules.mk b/keyboards/bigseries/2key/rules.mk new file mode 100755 index 000000000..49ff0998f --- /dev/null +++ b/keyboards/bigseries/2key/rules.mk | |||
@@ -0,0 +1,18 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u2 | ||
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 = yes # Console for debug | ||
14 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
15 | NKRO_ENABLE = no # Enable N-Key Rollover | ||
16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
17 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
18 | AUDIO_ENABLE = no # Audio output | ||