diff options
Diffstat (limited to 'keyboards/bigseries/1key')
19 files changed, 764 insertions, 0 deletions
diff --git a/keyboards/bigseries/1key/.noci b/keyboards/bigseries/1key/.noci new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/keyboards/bigseries/1key/.noci | |||
diff --git a/keyboards/bigseries/1key/1key.c b/keyboards/bigseries/1key/1key.c new file mode 100755 index 000000000..6036bd999 --- /dev/null +++ b/keyboards/bigseries/1key/1key.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 "1key.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/1key/1key.h b/keyboards/bigseries/1key/1key.h new file mode 100755 index 000000000..6e5ddcc76 --- /dev/null +++ b/keyboards/bigseries/1key/1key.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 \ | ||
24 | ) { \ | ||
25 | { k00 } \ | ||
26 | } | ||
diff --git a/keyboards/bigseries/1key/config.h b/keyboards/bigseries/1key/config.h new file mode 100755 index 000000000..f31a7fc05 --- /dev/null +++ b/keyboards/bigseries/1key/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 1 | ||
32 | |||
33 | /* key matrix pins */ | ||
34 | #define MATRIX_ROW_PINS { B0 } | ||
35 | #define MATRIX_COL_PINS { B4 } | ||
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 5 | ||
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/1key/info.json b/keyboards/bigseries/1key/info.json new file mode 100644 index 000000000..4355191d2 --- /dev/null +++ b/keyboards/bigseries/1key/info.json | |||
@@ -0,0 +1,12 @@ | |||
1 | { | ||
2 | "keyboard_name": "Big Series 1-Key", | ||
3 | "url": "", | ||
4 | "maintainer": "qmk", | ||
5 | "layouts": { | ||
6 | "LAYOUT": { | ||
7 | "layout": [ | ||
8 | {"x": 0, "y": 0, "w": 4, "h": 4} | ||
9 | ] | ||
10 | } | ||
11 | } | ||
12 | } | ||
diff --git a/keyboards/bigseries/1key/keymaps/8ball/keymap.c b/keyboards/bigseries/1key/keymaps/8ball/keymap.c new file mode 100755 index 000000000..33a5428fe --- /dev/null +++ b/keyboards/bigseries/1key/keymaps/8ball/keymap.c | |||
@@ -0,0 +1,140 @@ | |||
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 | static const char * const ANSWERS[] = { | ||
21 | // "Yes" answers | ||
22 | "It is certain\n", | ||
23 | "It is decidedly so\n", | ||
24 | "Without a doubt\n", | ||
25 | "Yes definitely\n", | ||
26 | "You may rely on it\n", | ||
27 | "As I see it, yes\n", | ||
28 | "Most likely\n", | ||
29 | "Outlook good\n", | ||
30 | "Yes\n", | ||
31 | "Signs point to yes\n", | ||
32 | // Uncertain answers, index 10 | ||
33 | "Reply hazy try again\n", | ||
34 | "Ask again later\n", | ||
35 | "Better not tell you now\n", | ||
36 | "Cannot predict now\n", | ||
37 | "Concentrate and ask again\n", | ||
38 | // "No" answers, index 15 | ||
39 | "Don't count on it\n", | ||
40 | "My reply is no\n", | ||
41 | "My sources say no\n", | ||
42 | "Outlook not so good\n", | ||
43 | "Very doubtful\n" | ||
44 | }; | ||
45 | |||
46 | #define UNCERTAIN_BREAK 10 | ||
47 | #define NO_BREAK 15 | ||
48 | #define NUM_ANSWERS 20 | ||
49 | // Timeout of answer color in ms | ||
50 | #define ANSWER_TIMEOUT 3000 | ||
51 | |||
52 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
53 | |||
54 | LAYOUT( | ||
55 | KC_A), | ||
56 | }; | ||
57 | |||
58 | |||
59 | void reset_rgb(void); | ||
60 | |||
61 | bool initialized = 0; | ||
62 | uint32_t lastTime = 0; | ||
63 | |||
64 | void matrix_init_user(void) { | ||
65 | if (!initialized){ | ||
66 | dprintf("Initializing in matrix_scan_user"); | ||
67 | rgblight_enable(); | ||
68 | reset_rgb(); | ||
69 | initialized = 1; | ||
70 | } | ||
71 | } | ||
72 | |||
73 | void matrix_scan_user(void) { | ||
74 | if (lastTime > 0 && timer_elapsed32(lastTime) > ANSWER_TIMEOUT) { | ||
75 | lastTime = 0; | ||
76 | reset_rgb(); | ||
77 | } | ||
78 | } | ||
79 | |||
80 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
81 | switch (keycode) { | ||
82 | case KC_A: | ||
83 | if (record->event.pressed) { | ||
84 | uint8_t num = rand() / (RAND_MAX / NUM_ANSWERS + 1); | ||
85 | rgblight_mode(1); | ||
86 | if (num < UNCERTAIN_BREAK) { | ||
87 | rgblight_setrgb_green(); | ||
88 | } else if (num < NO_BREAK) { | ||
89 | rgblight_setrgb_yellow(); | ||
90 | } else { | ||
91 | rgblight_setrgb_red(); | ||
92 | } | ||
93 | send_string(ANSWERS[num]); | ||
94 | lastTime = timer_read32(); | ||
95 | return false; | ||
96 | } | ||
97 | } | ||
98 | return true; | ||
99 | } | ||
100 | |||
101 | void led_set_user(uint8_t usb_led) { | ||
102 | |||
103 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
104 | |||
105 | } else { | ||
106 | |||
107 | } | ||
108 | |||
109 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
110 | |||
111 | } else { | ||
112 | |||
113 | } | ||
114 | |||
115 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
116 | |||
117 | } else { | ||
118 | |||
119 | } | ||
120 | |||
121 | if (usb_led & (1 << USB_LED_COMPOSE)) { | ||
122 | |||
123 | } else { | ||
124 | |||
125 | } | ||
126 | |||
127 | if (usb_led & (1 << USB_LED_KANA)) { | ||
128 | |||
129 | } else { | ||
130 | |||
131 | } | ||
132 | |||
133 | } | ||
134 | |||
135 | void reset_rgb(void) { | ||
136 | // This gets called on init and after the timeout for the answer color | ||
137 | // If you want to change the default color/mode, do it here | ||
138 | rgblight_sethsv_blue(); | ||
139 | rgblight_mode(7); | ||
140 | } | ||
diff --git a/keyboards/bigseries/1key/keymaps/ctrl-alt-del/keymap.c b/keyboards/bigseries/1key/keymaps/ctrl-alt-del/keymap.c new file mode 100755 index 000000000..d87471b00 --- /dev/null +++ b/keyboards/bigseries/1key/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 | 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 | } | ||
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/1key/keymaps/default/keymap.c b/keyboards/bigseries/1key/keymaps/default/keymap.c new file mode 100755 index 000000000..830093af5 --- /dev/null +++ b/keyboards/bigseries/1key/keymaps/default/keymap.c | |||
@@ -0,0 +1,52 @@ | |||
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), | ||
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 | rgblight_enable(); | ||
35 | rgblight_mode(7); | ||
36 | rgblight_sethsv(0,255,255); | ||
37 | rgblight_setrgb(0x00, 0x00, 0xFF); | ||
38 | initialized = 1; | ||
39 | } | ||
40 | } | ||
41 | |||
42 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
43 | switch (keycode) { | ||
44 | case KC_A: | ||
45 | if (record->event.pressed) { | ||
46 | SEND_STRING("Howdy!!\n"); | ||
47 | rgblight_step(); | ||
48 | return false; | ||
49 | } | ||
50 | } | ||
51 | return true; | ||
52 | } | ||
diff --git a/keyboards/bigseries/1key/keymaps/dudeofawesome/README.md b/keyboards/bigseries/1key/keymaps/dudeofawesome/README.md new file mode 100644 index 000000000..86b79b462 --- /dev/null +++ b/keyboards/bigseries/1key/keymaps/dudeofawesome/README.md | |||
@@ -0,0 +1,18 @@ | |||
1 | # DudeOfAwesome's Big Series 1-key layout | ||
2 | |||
3 | ## Features | ||
4 | |||
5 | ### Tap dancing taps: | ||
6 | 1. Media Play / Pause | ||
7 | 1. Media Next | ||
8 | 1. RGB Mode Next | ||
9 | 1. RGB Mode Previous | ||
10 | |||
11 | ## Building and flashing | ||
12 | |||
13 | 1. Put your board in DFU mode with the button on the bottom | ||
14 | 1. Flash: | ||
15 | ```bash | ||
16 | $ make bigseries:dudeofawesome:dfu | ||
17 | ``` | ||
18 | |||
diff --git a/keyboards/bigseries/1key/keymaps/dudeofawesome/config.h b/keyboards/bigseries/1key/keymaps/dudeofawesome/config.h new file mode 100644 index 000000000..30b86224c --- /dev/null +++ b/keyboards/bigseries/1key/keymaps/dudeofawesome/config.h | |||
@@ -0,0 +1,23 @@ | |||
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 | #ifndef CONFIG_USER_H | ||
19 | #define CONFIG_USER_H | ||
20 | |||
21 | #define TAPPING_TERM 1000 | ||
22 | |||
23 | #endif | ||
diff --git a/keyboards/bigseries/1key/keymaps/dudeofawesome/keymap.c b/keyboards/bigseries/1key/keymaps/dudeofawesome/keymap.c new file mode 100755 index 000000000..4c3739bbe --- /dev/null +++ b/keyboards/bigseries/1key/keymaps/dudeofawesome/keymap.c | |||
@@ -0,0 +1,50 @@ | |||
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 | enum TAP_DANCE { | ||
21 | TD_PLAY = 0, | ||
22 | }; | ||
23 | |||
24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
25 | LAYOUT(TD(TD_PLAY)), | ||
26 | }; | ||
27 | |||
28 | void tap_dance (qk_tap_dance_state_t *state, void *user_data) { | ||
29 | switch (state->count) { | ||
30 | case 0 ... 1: | ||
31 | register_code(KC_MEDIA_PLAY_PAUSE); | ||
32 | unregister_code(KC_MEDIA_PLAY_PAUSE); | ||
33 | break; | ||
34 | case 2: | ||
35 | register_code(KC_MEDIA_NEXT_TRACK); | ||
36 | unregister_code(KC_MEDIA_NEXT_TRACK); | ||
37 | break; | ||
38 | case 3: | ||
39 | rgblight_step(); | ||
40 | break; | ||
41 | case 4: default: | ||
42 | rgblight_step_reverse(); | ||
43 | break; | ||
44 | } | ||
45 | } | ||
46 | |||
47 | //Tap Dance Definitions | ||
48 | qk_tap_dance_action_t tap_dance_actions[] = { | ||
49 | [TD_PLAY] = ACTION_TAP_DANCE_FN(tap_dance), | ||
50 | }; | ||
diff --git a/keyboards/bigseries/1key/keymaps/dudeofawesome/rules.mk b/keyboards/bigseries/1key/keymaps/dudeofawesome/rules.mk new file mode 100644 index 000000000..e5ddcae8d --- /dev/null +++ b/keyboards/bigseries/1key/keymaps/dudeofawesome/rules.mk | |||
@@ -0,0 +1 @@ | |||
TAP_DANCE_ENABLE = yes | |||
diff --git a/keyboards/bigseries/1key/keymaps/leddance/config.h b/keyboards/bigseries/1key/keymaps/leddance/config.h new file mode 100644 index 000000000..57398fb99 --- /dev/null +++ b/keyboards/bigseries/1key/keymaps/leddance/config.h | |||
@@ -0,0 +1,23 @@ | |||
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 | #ifndef CONFIG_USER_H | ||
19 | #define CONFIG_USER_H | ||
20 | |||
21 | #define TAPPING_TERM 400 | ||
22 | |||
23 | #endif | ||
diff --git a/keyboards/bigseries/1key/keymaps/leddance/keymap.c b/keyboards/bigseries/1key/keymaps/leddance/keymap.c new file mode 100755 index 000000000..c77e57902 --- /dev/null +++ b/keyboards/bigseries/1key/keymaps/leddance/keymap.c | |||
@@ -0,0 +1,76 @@ | |||
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 | |||
21 | extern rgblight_config_t rgblight_config; | ||
22 | |||
23 | enum custom_keycodes { | ||
24 | BL = SAFE_RANGE | ||
25 | }; | ||
26 | |||
27 | enum custom_layers { | ||
28 | BASE = 0, | ||
29 | LED | ||
30 | }; | ||
31 | |||
32 | //Tap Dance Declarations | ||
33 | enum { | ||
34 | TD_TOGGLE = 0 | ||
35 | }; | ||
36 | |||
37 | void dance_toggle (qk_tap_dance_state_t *state, void *user_data) { | ||
38 | if (state->count >= 2) { | ||
39 | println("Double tapped, switching layers"); | ||
40 | if (layer_state_is(LED)) { | ||
41 | layer_off(LED); | ||
42 | } else { | ||
43 | layer_on(LED); | ||
44 | } | ||
45 | } else { | ||
46 | print("Single tapped: "); | ||
47 | if (layer_state_is(LED)) { | ||
48 | #ifdef RGBLIGHT_ENABLE | ||
49 | if (!rgblight_config.enable) { | ||
50 | rgblight_enable(); | ||
51 | } | ||
52 | rgblight_step(); | ||
53 | #endif | ||
54 | } else { | ||
55 | println("Base layer, sending string"); | ||
56 | SEND_STRING("This thing is BIG!!\n"); | ||
57 | } | ||
58 | } | ||
59 | } | ||
60 | |||
61 | //Tap Dance Definitions | ||
62 | qk_tap_dance_action_t tap_dance_actions[] = { | ||
63 | [TD_TOGGLE] = ACTION_TAP_DANCE_FN(dance_toggle) | ||
64 | // Other declarations would go here, separated by commas, if you have them | ||
65 | }; | ||
66 | |||
67 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
68 | |||
69 | [BASE] = LAYOUT( | ||
70 | TD(TD_TOGGLE)), | ||
71 | [LED] = LAYOUT( | ||
72 | TD(TD_TOGGLE) | ||
73 | ) | ||
74 | |||
75 | |||
76 | }; | ||
diff --git a/keyboards/bigseries/1key/keymaps/leddance/rules.mk b/keyboards/bigseries/1key/keymaps/leddance/rules.mk new file mode 100644 index 000000000..1ba2fa8fb --- /dev/null +++ b/keyboards/bigseries/1key/keymaps/leddance/rules.mk | |||
@@ -0,0 +1 @@ | |||
TAP_DANCE_ENABLE = yes \ No newline at end of file | |||
diff --git a/keyboards/bigseries/1key/keymaps/lock/keymap.c b/keyboards/bigseries/1key/keymaps/lock/keymap.c new file mode 100755 index 000000000..650554e02 --- /dev/null +++ b/keyboards/bigseries/1key/keymaps/lock/keymap.c | |||
@@ -0,0 +1,84 @@ | |||
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)), | ||
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(7); | ||
41 | initialized = 1; | ||
42 | } | ||
43 | } | ||
44 | |||
45 | void matrix_scan_user(void) { | ||
46 | } | ||
47 | |||
48 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
49 | return true; | ||
50 | } | ||
51 | |||
52 | void led_set_user(uint8_t usb_led) { | ||
53 | |||
54 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
55 | |||
56 | } else { | ||
57 | |||
58 | } | ||
59 | |||
60 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
61 | |||
62 | } else { | ||
63 | |||
64 | } | ||
65 | |||
66 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
67 | |||
68 | } else { | ||
69 | |||
70 | } | ||
71 | |||
72 | if (usb_led & (1 << USB_LED_COMPOSE)) { | ||
73 | |||
74 | } else { | ||
75 | |||
76 | } | ||
77 | |||
78 | if (usb_led & (1 << USB_LED_KANA)) { | ||
79 | |||
80 | } else { | ||
81 | |||
82 | } | ||
83 | |||
84 | } | ||
diff --git a/keyboards/bigseries/1key/keymaps/tester/keymap.c b/keyboards/bigseries/1key/keymaps/tester/keymap.c new file mode 100755 index 000000000..8248ae789 --- /dev/null +++ b/keyboards/bigseries/1key/keymaps/tester/keymap.c | |||
@@ -0,0 +1,55 @@ | |||
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), | ||
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 | } | ||
44 | |||
45 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
46 | switch (keycode) { | ||
47 | case KC_A: | ||
48 | if (record->event.pressed) { | ||
49 | SEND_STRING("Howdy!!\n"); | ||
50 | rgblight_step(); | ||
51 | return false; | ||
52 | } | ||
53 | } | ||
54 | return true; | ||
55 | } | ||
diff --git a/keyboards/bigseries/1key/readme.md b/keyboards/bigseries/1key/readme.md new file mode 100644 index 000000000..ad3ee28b1 --- /dev/null +++ b/keyboards/bigseries/1key/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/1key: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/1key/rules.mk b/keyboards/bigseries/1key/rules.mk new file mode 100755 index 000000000..49ff0998f --- /dev/null +++ b/keyboards/bigseries/1key/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 | ||