aboutsummaryrefslogtreecommitdiff
path: root/keyboards/bigseries/2key
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-04-10 12:13:40 +0100
committerAkshay <[email protected]>2022-04-10 12:13:40 +0100
commitdc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch)
tree4ccb8fa5886b66fa9d480edef74236c27f035e16 /keyboards/bigseries/2key
Diffstat (limited to 'keyboards/bigseries/2key')
-rw-r--r--keyboards/bigseries/2key/.noci0
-rwxr-xr-xkeyboards/bigseries/2key/2key.c26
-rwxr-xr-xkeyboards/bigseries/2key/2key.h26
-rwxr-xr-xkeyboards/bigseries/2key/config.h57
-rw-r--r--keyboards/bigseries/2key/info.json13
-rwxr-xr-xkeyboards/bigseries/2key/keymaps/default/keymap.c42
-rwxr-xr-xkeyboards/bigseries/2key/keymaps/lock/keymap.c44
-rwxr-xr-xkeyboards/bigseries/2key/keymaps/tester/keymap.c43
-rw-r--r--keyboards/bigseries/2key/readme.md15
-rwxr-xr-xkeyboards/bigseries/2key/rules.mk18
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/*
2Copyright 2018 Cole Markham
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17#include "2key.h"
18
19void 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/*
2Copyright 2018 Cole Markham
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along 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/*
2Copyright 2018 Cole Markham
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along 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/*
2Copyright 2018 Cole Markham
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include QMK_KEYBOARD_H
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21
22LAYOUT(
23 KC_Z, KC_X),
24
25
26};
27
28
29bool initialized = 0;
30
31void 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/*
2Copyright 2018 Cole Markham
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include QMK_KEYBOARD_H
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21
22LAYOUT(
23 LGUI(KC_L), LCTL(LALT(KC_DEL))
24 ),
25
26
27};
28
29
30bool initialized = 0;
31
32void 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/*
2Copyright 2018 Cole Markham
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include QMK_KEYBOARD_H
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21
22LAYOUT(
23 KC_A, KC_B),
24
25
26};
27
28
29bool initialized = 0;
30
31void 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![Big Series 2-Key](https://woodkeys.click/wp-content/uploads/2018/04/BigSeries_2u_Case_2018-Apr-03_08-45-05PM-000_CustomizedView8990071229.png)
4
5A 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
7Keyboard Maintainer: [Cole Markham](https://github.com/colemarkham) / [Woodkeys.click](https://woodkeys.click)
8Hardware Supported: Big Series PCBs
9Hardware Availability: [Woodkeys.click](https://woodkeys.click), [NovelKeys](https://novelkeys.xyz)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make bigseries/2key:default
14
15See [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
2MCU = atmega32u2
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
11MOUSEKEY_ENABLE = no # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = yes # Console for debug
14COMMAND_ENABLE = yes # Commands for debug and configuration
15NKRO_ENABLE = no # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output