diff options
Diffstat (limited to 'keyboards/bigseries/3key')
-rw-r--r-- | keyboards/bigseries/3key/.noci | 0 | ||||
-rwxr-xr-x | keyboards/bigseries/3key/3key.c | 26 | ||||
-rwxr-xr-x | keyboards/bigseries/3key/3key.h | 26 | ||||
-rwxr-xr-x | keyboards/bigseries/3key/config.h | 57 | ||||
-rw-r--r-- | keyboards/bigseries/3key/info.json | 14 | ||||
-rwxr-xr-x | keyboards/bigseries/3key/keymaps/ctrl-alt-del/keymap.c | 87 | ||||
-rwxr-xr-x | keyboards/bigseries/3key/keymaps/default/keymap.c | 54 | ||||
-rwxr-xr-x | keyboards/bigseries/3key/keymaps/tester/keymap.c | 43 | ||||
-rw-r--r-- | keyboards/bigseries/3key/readme.md | 15 | ||||
-rwxr-xr-x | keyboards/bigseries/3key/rules.mk | 18 |
10 files changed, 340 insertions, 0 deletions
diff --git a/keyboards/bigseries/3key/.noci b/keyboards/bigseries/3key/.noci new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/keyboards/bigseries/3key/.noci | |||
diff --git a/keyboards/bigseries/3key/3key.c b/keyboards/bigseries/3key/3key.c new file mode 100755 index 000000000..3735c1054 --- /dev/null +++ b/keyboards/bigseries/3key/3key.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 "3key.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/3key/3key.h b/keyboards/bigseries/3key/3key.h new file mode 100755 index 000000000..caee1e455 --- /dev/null +++ b/keyboards/bigseries/3key/3key.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, k02 \ | ||
24 | ) { \ | ||
25 | { k00, k01, k02 } \ | ||
26 | } | ||
diff --git a/keyboards/bigseries/3key/config.h b/keyboards/bigseries/3key/config.h new file mode 100755 index 000000000..4a474cc3d --- /dev/null +++ b/keyboards/bigseries/3key/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 0x6073 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER WoodKeys.click | ||
27 | #define PRODUCT BigSeries Triple Keyboard | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 1 | ||
31 | #define MATRIX_COLS 3 | ||
32 | |||
33 | /* key matrix pins */ | ||
34 | #define MATRIX_ROW_PINS { B0 } | ||
35 | #define MATRIX_COL_PINS { B4, B3, B5 } | ||
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 11 | ||
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/3key/info.json b/keyboards/bigseries/3key/info.json new file mode 100644 index 000000000..17f762148 --- /dev/null +++ b/keyboards/bigseries/3key/info.json | |||
@@ -0,0 +1,14 @@ | |||
1 | { | ||
2 | "keyboard_name": "Big Series 3-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 | {"x": 8, "y": 0, "w": 4, "h": 4} | ||
11 | ] | ||
12 | } | ||
13 | } | ||
14 | } | ||
diff --git a/keyboards/bigseries/3key/keymaps/ctrl-alt-del/keymap.c b/keyboards/bigseries/3key/keymaps/ctrl-alt-del/keymap.c new file mode 100755 index 000000000..d1410ecf1 --- /dev/null +++ b/keyboards/bigseries/3key/keymaps/ctrl-alt-del/keymap.c | |||
@@ -0,0 +1,87 @@ | |||
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_LCTL, KC_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 | } | ||
45 | |||
46 | void matrix_scan_user(void) { | ||
47 | } | ||
48 | |||
49 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
50 | switch (keycode) { | ||
51 | } | ||
52 | return true; | ||
53 | } | ||
54 | |||
55 | void led_set_user(uint8_t usb_led) { | ||
56 | |||
57 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
58 | |||
59 | } else { | ||
60 | |||
61 | } | ||
62 | |||
63 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
64 | |||
65 | } else { | ||
66 | |||
67 | } | ||
68 | |||
69 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
70 | |||
71 | } else { | ||
72 | |||
73 | } | ||
74 | |||
75 | if (usb_led & (1 << USB_LED_COMPOSE)) { | ||
76 | |||
77 | } else { | ||
78 | |||
79 | } | ||
80 | |||
81 | if (usb_led & (1 << USB_LED_KANA)) { | ||
82 | |||
83 | } else { | ||
84 | |||
85 | } | ||
86 | |||
87 | } | ||
diff --git a/keyboards/bigseries/3key/keymaps/default/keymap.c b/keyboards/bigseries/3key/keymaps/default/keymap.c new file mode 100755 index 000000000..855c7c3ec --- /dev/null +++ b/keyboards/bigseries/3key/keymaps/default/keymap.c | |||
@@ -0,0 +1,54 @@ | |||
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, KC_C | ||
24 | ), | ||
25 | }; | ||
26 | |||
27 | |||
28 | bool initialized = 0; | ||
29 | |||
30 | void matrix_init_user(void) { | ||
31 | if (!initialized){ | ||
32 | dprintf("Initializing in matrix_scan_user"); | ||
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(7); | ||
40 | initialized = 1; | ||
41 | } | ||
42 | } | ||
43 | |||
44 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
45 | switch (keycode) { | ||
46 | case KC_A: | ||
47 | if (record->event.pressed) { | ||
48 | SEND_STRING("Howdy!!\n"); | ||
49 | rgblight_step(); | ||
50 | return false; | ||
51 | } | ||
52 | } | ||
53 | return true; | ||
54 | } | ||
diff --git a/keyboards/bigseries/3key/keymaps/tester/keymap.c b/keyboards/bigseries/3key/keymaps/tester/keymap.c new file mode 100755 index 000000000..7ee0d7a41 --- /dev/null +++ b/keyboards/bigseries/3key/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_1, KC_2, KC_3), | ||
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/3key/readme.md b/keyboards/bigseries/3key/readme.md new file mode 100644 index 000000000..d32ec486a --- /dev/null +++ b/keyboards/bigseries/3key/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/3key: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/3key/rules.mk b/keyboards/bigseries/3key/rules.mk new file mode 100755 index 000000000..49ff0998f --- /dev/null +++ b/keyboards/bigseries/3key/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 | ||