diff options
| author | Cole Markham <github@themarkhams.us> | 2018-08-19 14:29:03 -0500 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2018-08-19 12:29:03 -0700 |
| commit | fe687af54d9a6810ded8bb4dd959eca9fe3e847c (patch) | |
| tree | 608a924ab6d8ec2a7895e5a502f70ffea1a7daa6 | |
| parent | a18cd1b2b693a1e4eeaf1715f6ffe53d70dd9ee4 (diff) | |
| download | qmk_firmware-fe687af54d9a6810ded8bb4dd959eca9fe3e847c.tar.gz qmk_firmware-fe687af54d9a6810ded8bb4dd959eca9fe3e847c.zip | |
Keyboard: Add Big Series 2-, 3-, and 4-key boards (#3669)
* Implement magic 8-ball mode for big series switch
* LED Testing
* Add Ctrl+Alt+Del key mapping
* Add Windows lock (win+L) layout.
* Add Big Series 3-key
* Add Big Series 4-key
* Add Big Series 2-key
* Fix layout mapping for Big Series 3u
* Fix merge-conflict.
* Refactor bigseries boards into a single folder
46 files changed, 1451 insertions, 8 deletions
diff --git a/keyboards/bigseries/bigseries.c b/keyboards/bigseries/1key/1key.c index 0ef84478b..6036bd999 100755 --- a/keyboards/bigseries/bigseries.c +++ b/keyboards/bigseries/1key/1key.c | |||
| @@ -14,7 +14,7 @@ GNU General Public License for more details. | |||
| 14 | You should have received a copy of the GNU General Public License | 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/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ | 16 | */ |
| 17 | #include "bigseries.h" | 17 | #include "1key.h" |
| 18 | 18 | ||
| 19 | void matrix_scan_kb(void) { | 19 | void matrix_scan_kb(void) { |
| 20 | // Looping keyboard code goes here | 20 | // Looping keyboard code goes here |
diff --git a/keyboards/bigseries/bigseries.h b/keyboards/bigseries/1key/1key.h index 344140779..344140779 100755 --- a/keyboards/bigseries/bigseries.h +++ b/keyboards/bigseries/1key/1key.h | |||
diff --git a/keyboards/bigseries/config.h b/keyboards/bigseries/1key/config.h index 3c401f563..4e30276fc 100755 --- a/keyboards/bigseries/config.h +++ b/keyboards/bigseries/1key/config.h | |||
| @@ -54,6 +54,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 54 | #define RGB_DI_PIN D3 | 54 | #define RGB_DI_PIN D3 |
| 55 | #define RGBLIGHT_ANIMATIONS | 55 | #define RGBLIGHT_ANIMATIONS |
| 56 | #define RGBLED_NUM 5 | 56 | #define RGBLED_NUM 5 |
| 57 | #ifdef RGBLIGHT_LIMIT_VAL | ||
| 58 | #undef RGBLIGHT_LIMIT_VAL | ||
| 59 | #endif | ||
| 60 | #define RGBLIGHT_LIMIT_VAL 128 | ||
| 57 | #endif | 61 | #endif |
| 58 | 62 | ||
| 59 | #endif | 63 | #endif |
diff --git a/keyboards/bigseries/info.json b/keyboards/bigseries/1key/info.json index ff2fd54c5..ff2fd54c5 100644 --- a/keyboards/bigseries/info.json +++ b/keyboards/bigseries/1key/info.json | |||
diff --git a/keyboards/bigseries/keymaps/8ball/keymap.c b/keyboards/bigseries/1key/keymaps/8ball/keymap.c index 1097eb94a..1097eb94a 100755 --- a/keyboards/bigseries/keymaps/8ball/keymap.c +++ b/keyboards/bigseries/1key/keymaps/8ball/keymap.c | |||
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..eb2d23682 --- /dev/null +++ b/keyboards/bigseries/1key/keymaps/ctrl-alt-del/keymap.c | |||
| @@ -0,0 +1,91 @@ | |||
| 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 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { | ||
| 33 | return MACRO_NONE ; | ||
| 34 | } | ||
| 35 | |||
| 36 | void matrix_init_user(void) { | ||
| 37 | if (!initialized){ | ||
| 38 | dprintf("Initializing in matrix_scan_user"); | ||
| 39 | // Disable to set a known state | ||
| 40 | rgblight_disable(); | ||
| 41 | rgblight_init(); | ||
| 42 | // None of the subsequent operations take effect if not enabled | ||
| 43 | rgblight_enable(); | ||
| 44 | rgblight_sethsv(0,0,255); | ||
| 45 | rgblight_mode(7); | ||
| 46 | initialized = 1; | ||
| 47 | } | ||
| 48 | } | ||
| 49 | |||
| 50 | void matrix_scan_user(void) { | ||
| 51 | } | ||
| 52 | |||
| 53 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 54 | switch (keycode) { | ||
| 55 | } | ||
| 56 | return true; | ||
| 57 | } | ||
| 58 | |||
| 59 | void led_set_user(uint8_t usb_led) { | ||
| 60 | |||
| 61 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
| 62 | |||
| 63 | } else { | ||
| 64 | |||
| 65 | } | ||
| 66 | |||
| 67 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
| 68 | |||
| 69 | } else { | ||
| 70 | |||
| 71 | } | ||
| 72 | |||
| 73 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
| 74 | |||
| 75 | } else { | ||
| 76 | |||
| 77 | } | ||
| 78 | |||
| 79 | if (usb_led & (1 << USB_LED_COMPOSE)) { | ||
| 80 | |||
| 81 | } else { | ||
| 82 | |||
| 83 | } | ||
| 84 | |||
| 85 | if (usb_led & (1 << USB_LED_KANA)) { | ||
| 86 | |||
| 87 | } else { | ||
| 88 | |||
| 89 | } | ||
| 90 | |||
| 91 | } | ||
diff --git a/keyboards/bigseries/keymaps/default/keymap.c b/keyboards/bigseries/1key/keymaps/default/keymap.c index 7ce837357..7ce837357 100755 --- a/keyboards/bigseries/keymaps/default/keymap.c +++ b/keyboards/bigseries/1key/keymaps/default/keymap.c | |||
diff --git a/keyboards/bigseries/keymaps/dudeofawesome/README.md b/keyboards/bigseries/1key/keymaps/dudeofawesome/README.md index 86b79b462..86b79b462 100644 --- a/keyboards/bigseries/keymaps/dudeofawesome/README.md +++ b/keyboards/bigseries/1key/keymaps/dudeofawesome/README.md | |||
diff --git a/keyboards/bigseries/keymaps/dudeofawesome/config.h b/keyboards/bigseries/1key/keymaps/dudeofawesome/config.h index 30b86224c..30b86224c 100644 --- a/keyboards/bigseries/keymaps/dudeofawesome/config.h +++ b/keyboards/bigseries/1key/keymaps/dudeofawesome/config.h | |||
diff --git a/keyboards/bigseries/keymaps/dudeofawesome/keymap.c b/keyboards/bigseries/1key/keymaps/dudeofawesome/keymap.c index 4c3739bbe..4c3739bbe 100755 --- a/keyboards/bigseries/keymaps/dudeofawesome/keymap.c +++ b/keyboards/bigseries/1key/keymaps/dudeofawesome/keymap.c | |||
diff --git a/keyboards/bigseries/keymaps/dudeofawesome/rules.mk b/keyboards/bigseries/1key/keymaps/dudeofawesome/rules.mk index e5ddcae8d..e5ddcae8d 100644 --- a/keyboards/bigseries/keymaps/dudeofawesome/rules.mk +++ b/keyboards/bigseries/1key/keymaps/dudeofawesome/rules.mk | |||
diff --git a/keyboards/bigseries/keymaps/leddance/config.h b/keyboards/bigseries/1key/keymaps/leddance/config.h index 57398fb99..57398fb99 100644 --- a/keyboards/bigseries/keymaps/leddance/config.h +++ b/keyboards/bigseries/1key/keymaps/leddance/config.h | |||
diff --git a/keyboards/bigseries/keymaps/leddance/keymap.c b/keyboards/bigseries/1key/keymaps/leddance/keymap.c index 3cd8f1db7..3cd8f1db7 100755 --- a/keyboards/bigseries/keymaps/leddance/keymap.c +++ b/keyboards/bigseries/1key/keymaps/leddance/keymap.c | |||
diff --git a/keyboards/bigseries/keymaps/leddance/rules.mk b/keyboards/bigseries/1key/keymaps/leddance/rules.mk index 1ba2fa8fb..1ba2fa8fb 100644 --- a/keyboards/bigseries/keymaps/leddance/rules.mk +++ b/keyboards/bigseries/1key/keymaps/leddance/rules.mk | |||
diff --git a/keyboards/bigseries/1key/keymaps/lock/keymap.c b/keyboards/bigseries/1key/keymaps/lock/keymap.c new file mode 100755 index 000000000..3d3b002b0 --- /dev/null +++ b/keyboards/bigseries/1key/keymaps/lock/keymap.c | |||
| @@ -0,0 +1,88 @@ | |||
| 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 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { | ||
| 32 | return MACRO_NONE ; | ||
| 33 | } | ||
| 34 | |||
| 35 | void matrix_init_user(void) { | ||
| 36 | if (!initialized){ | ||
| 37 | dprintf("Initializing in matrix_scan_user"); | ||
| 38 | // Disable to set a known state | ||
| 39 | rgblight_disable(); | ||
| 40 | rgblight_init(); | ||
| 41 | // None of the subsequent operations take effect if not enabled | ||
| 42 | rgblight_enable(); | ||
| 43 | rgblight_sethsv(0,0,255); | ||
| 44 | rgblight_mode(7); | ||
| 45 | initialized = 1; | ||
| 46 | } | ||
| 47 | } | ||
| 48 | |||
| 49 | void matrix_scan_user(void) { | ||
| 50 | } | ||
| 51 | |||
| 52 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 53 | return true; | ||
| 54 | } | ||
| 55 | |||
| 56 | void led_set_user(uint8_t usb_led) { | ||
| 57 | |||
| 58 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
| 59 | |||
| 60 | } else { | ||
| 61 | |||
| 62 | } | ||
| 63 | |||
| 64 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
| 65 | |||
| 66 | } else { | ||
| 67 | |||
| 68 | } | ||
| 69 | |||
| 70 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
| 71 | |||
| 72 | } else { | ||
| 73 | |||
| 74 | } | ||
| 75 | |||
| 76 | if (usb_led & (1 << USB_LED_COMPOSE)) { | ||
| 77 | |||
| 78 | } else { | ||
| 79 | |||
| 80 | } | ||
| 81 | |||
| 82 | if (usb_led & (1 << USB_LED_KANA)) { | ||
| 83 | |||
| 84 | } else { | ||
| 85 | |||
| 86 | } | ||
| 87 | |||
| 88 | } | ||
diff --git a/keyboards/bigseries/1key/keymaps/tester/keymap.c b/keyboards/bigseries/1key/keymaps/tester/keymap.c new file mode 100755 index 000000000..31553cef7 --- /dev/null +++ b/keyboards/bigseries/1key/keymaps/tester/keymap.c | |||
| @@ -0,0 +1,96 @@ | |||
| 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 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { | ||
| 32 | return MACRO_NONE ; | ||
| 33 | } | ||
| 34 | |||
| 35 | void matrix_init_user(void) { | ||
| 36 | if (!initialized){ | ||
| 37 | dprintf("Initializing in matrix_scan_user"); | ||
| 38 | // Disable to set a known state | ||
| 39 | rgblight_disable(); | ||
| 40 | rgblight_init(); | ||
| 41 | // None of the subsequent operations take effect if not enabled | ||
| 42 | rgblight_enable(); | ||
| 43 | rgblight_sethsv(0,0,255); | ||
| 44 | rgblight_mode(35); | ||
| 45 | initialized = 1; | ||
| 46 | } | ||
| 47 | } | ||
| 48 | |||
| 49 | void matrix_scan_user(void) { | ||
| 50 | } | ||
| 51 | |||
| 52 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 53 | switch (keycode) { | ||
| 54 | case KC_A: | ||
| 55 | if (record->event.pressed) { | ||
| 56 | SEND_STRING("Howdy!!\n"); | ||
| 57 | rgblight_step(); | ||
| 58 | return false; | ||
| 59 | } | ||
| 60 | } | ||
| 61 | return true; | ||
| 62 | } | ||
| 63 | |||
| 64 | void led_set_user(uint8_t usb_led) { | ||
| 65 | |||
| 66 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
| 67 | |||
| 68 | } else { | ||
| 69 | |||
| 70 | } | ||
| 71 | |||
| 72 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
| 73 | |||
| 74 | } else { | ||
| 75 | |||
| 76 | } | ||
| 77 | |||
| 78 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
| 79 | |||
| 80 | } else { | ||
| 81 | |||
| 82 | } | ||
| 83 | |||
| 84 | if (usb_led & (1 << USB_LED_COMPOSE)) { | ||
| 85 | |||
| 86 | } else { | ||
| 87 | |||
| 88 | } | ||
| 89 | |||
| 90 | if (usb_led & (1 << USB_LED_KANA)) { | ||
| 91 | |||
| 92 | } else { | ||
| 93 | |||
| 94 | } | ||
| 95 | |||
| 96 | } | ||
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..772d56beb --- /dev/null +++ b/keyboards/bigseries/1key/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| # Dummy file to make the QMK build system happy \ No newline at end of file | |||
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..dcbf2f764 --- /dev/null +++ b/keyboards/bigseries/2key/2key.h | |||
| @@ -0,0 +1,28 @@ | |||
| 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 | #ifndef BIGSWITCH_H | ||
| 18 | #define BIGSWITCH_H | ||
| 19 | |||
| 20 | #include "quantum.h" | ||
| 21 | |||
| 22 | #define LAYOUT( \ | ||
| 23 | K00, K01 \ | ||
| 24 | ) { \ | ||
| 25 | { K00, K01 } \ | ||
| 26 | } | ||
| 27 | |||
| 28 | #endif | ||
diff --git a/keyboards/bigseries/2key/config.h b/keyboards/bigseries/2key/config.h new file mode 100755 index 000000000..83c8e3141 --- /dev/null +++ b/keyboards/bigseries/2key/config.h | |||
| @@ -0,0 +1,63 @@ | |||
| 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 | #ifndef CONFIG_H | ||
| 18 | #define CONFIG_H | ||
| 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 | #define DESCRIPTION Single key board for Novelkeys Big Series Switch | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 1 | ||
| 32 | #define MATRIX_COLS 2 | ||
| 33 | |||
| 34 | /* key matrix pins */ | ||
| 35 | #define MATRIX_ROW_PINS { B0 } | ||
| 36 | #define MATRIX_COL_PINS { B4, B3 } | ||
| 37 | #define UNUSED_PINS | ||
| 38 | |||
| 39 | /* COL2ROW or ROW2COL */ | ||
| 40 | #define DIODE_DIRECTION ROW2COL | ||
| 41 | |||
| 42 | /* Set 0 if debouncing isn't needed */ | ||
| 43 | #define DEBOUNCING_DELAY 50 | ||
| 44 | |||
| 45 | /* key combination for command */ | ||
| 46 | #define IS_COMMAND() ( \ | ||
| 47 | false \ | ||
| 48 | ) | ||
| 49 | |||
| 50 | /* prevent stuck modifiers */ | ||
| 51 | #define PREVENT_STUCK_MODIFIERS | ||
| 52 | |||
| 53 | #ifdef RGBLIGHT_ENABLE | ||
| 54 | #define RGB_DI_PIN D3 | ||
| 55 | #define RGBLIGHT_ANIMATIONS | ||
| 56 | #define RGBLED_NUM 8 | ||
| 57 | #ifdef RGBLIGHT_LIMIT_VAL | ||
| 58 | #undef RGBLIGHT_LIMIT_VAL | ||
| 59 | #endif | ||
| 60 | #define RGBLIGHT_LIMIT_VAL 128 | ||
| 61 | #endif | ||
| 62 | |||
| 63 | #endif | ||
diff --git a/keyboards/bigseries/2key/info.json b/keyboards/bigseries/2key/info.json new file mode 100644 index 000000000..dc30449b1 --- /dev/null +++ b/keyboards/bigseries/2key/info.json | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Big Series 2-Key", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 8, | ||
| 6 | "height": 4, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [{"x":0, "y":0, "w":4, "h":4}, {"x":1, "y":0, "w":4, "h":4}] | ||
| 10 | } | ||
| 11 | } | ||
| 12 | } | ||
diff --git a/keyboards/bigseries/2key/keymaps/default/keymap.c b/keyboards/bigseries/2key/keymaps/default/keymap.c new file mode 100755 index 000000000..704649632 --- /dev/null +++ b/keyboards/bigseries/2key/keymaps/default/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_Z, KC_X), | ||
| 24 | |||
| 25 | |||
| 26 | }; | ||
| 27 | |||
| 28 | |||
| 29 | bool initialized = 0; | ||
| 30 | |||
| 31 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { | ||
| 32 | return MACRO_NONE ; | ||
| 33 | } | ||
| 34 | |||
| 35 | void matrix_init_user(void) { | ||
| 36 | if (!initialized){ | ||
| 37 | // Disable to set a known state | ||
| 38 | rgblight_disable(); | ||
| 39 | rgblight_init(); | ||
| 40 | // None of the subsequent operations take effect if not enabled | ||
| 41 | rgblight_enable(); | ||
| 42 | rgblight_sethsv(0,0,255); | ||
| 43 | rgblight_mode(35); | ||
| 44 | initialized = 1; | ||
| 45 | } | ||
| 46 | } | ||
| 47 | |||
| 48 | void matrix_scan_user(void) { | ||
| 49 | } | ||
| 50 | |||
| 51 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 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/2key/keymaps/lock/keymap.c b/keyboards/bigseries/2key/keymaps/lock/keymap.c new file mode 100755 index 000000000..55a9240f3 --- /dev/null +++ b/keyboards/bigseries/2key/keymaps/lock/keymap.c | |||
| @@ -0,0 +1,89 @@ | |||
| 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 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { | ||
| 33 | return MACRO_NONE ; | ||
| 34 | } | ||
| 35 | |||
| 36 | void matrix_init_user(void) { | ||
| 37 | if (!initialized){ | ||
| 38 | dprintf("Initializing in matrix_scan_user"); | ||
| 39 | // Disable to set a known state | ||
| 40 | rgblight_disable(); | ||
| 41 | rgblight_init(); | ||
| 42 | // None of the subsequent operations take effect if not enabled | ||
| 43 | rgblight_enable(); | ||
| 44 | rgblight_sethsv(0,0,255); | ||
| 45 | rgblight_mode(7); | ||
| 46 | initialized = 1; | ||
| 47 | } | ||
| 48 | } | ||
| 49 | |||
| 50 | void matrix_scan_user(void) { | ||
| 51 | } | ||
| 52 | |||
| 53 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 54 | return true; | ||
| 55 | } | ||
| 56 | |||
| 57 | void led_set_user(uint8_t usb_led) { | ||
| 58 | |||
| 59 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
| 60 | |||
| 61 | } else { | ||
| 62 | |||
| 63 | } | ||
| 64 | |||
| 65 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
| 66 | |||
| 67 | } else { | ||
| 68 | |||
| 69 | } | ||
| 70 | |||
| 71 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
| 72 | |||
| 73 | } else { | ||
| 74 | |||
| 75 | } | ||
| 76 | |||
| 77 | if (usb_led & (1 << USB_LED_COMPOSE)) { | ||
| 78 | |||
| 79 | } else { | ||
| 80 | |||
| 81 | } | ||
| 82 | |||
| 83 | if (usb_led & (1 << USB_LED_KANA)) { | ||
| 84 | |||
| 85 | } else { | ||
| 86 | |||
| 87 | } | ||
| 88 | |||
| 89 | } | ||
diff --git a/keyboards/bigseries/2key/keymaps/tester/keymap.c b/keyboards/bigseries/2key/keymaps/tester/keymap.c new file mode 100755 index 000000000..5b574824d --- /dev/null +++ b/keyboards/bigseries/2key/keymaps/tester/keymap.c | |||
| @@ -0,0 +1,88 @@ | |||
| 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 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { | ||
| 32 | return MACRO_NONE ; | ||
| 33 | } | ||
| 34 | |||
| 35 | void matrix_init_user(void) { | ||
| 36 | if (!initialized){ | ||
| 37 | dprintf("Initializing in matrix_scan_user"); | ||
| 38 | // Disable to set a known state | ||
| 39 | rgblight_disable(); | ||
| 40 | rgblight_init(); | ||
| 41 | // None of the subsequent operations take effect if not enabled | ||
| 42 | rgblight_enable(); | ||
| 43 | rgblight_sethsv(0,0,255); | ||
| 44 | rgblight_mode(35); | ||
| 45 | initialized = 1; | ||
| 46 | } | ||
| 47 | } | ||
| 48 | |||
| 49 | void matrix_scan_user(void) { | ||
| 50 | } | ||
| 51 | |||
| 52 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 53 | return true; | ||
| 54 | } | ||
| 55 | |||
| 56 | void led_set_user(uint8_t usb_led) { | ||
| 57 | |||
| 58 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
| 59 | |||
| 60 | } else { | ||
| 61 | |||
| 62 | } | ||
| 63 | |||
| 64 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
| 65 | |||
| 66 | } else { | ||
| 67 | |||
| 68 | } | ||
| 69 | |||
| 70 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
| 71 | |||
| 72 | } else { | ||
| 73 | |||
| 74 | } | ||
| 75 | |||
| 76 | if (usb_led & (1 << USB_LED_COMPOSE)) { | ||
| 77 | |||
| 78 | } else { | ||
| 79 | |||
| 80 | } | ||
| 81 | |||
| 82 | if (usb_led & (1 << USB_LED_KANA)) { | ||
| 83 | |||
| 84 | } else { | ||
| 85 | |||
| 86 | } | ||
| 87 | |||
| 88 | } | ||
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..772d56beb --- /dev/null +++ b/keyboards/bigseries/2key/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| # Dummy file to make the QMK build system happy \ No newline at end of file | |||
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..6aa843c26 --- /dev/null +++ b/keyboards/bigseries/3key/3key.h | |||
| @@ -0,0 +1,28 @@ | |||
| 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 | #ifndef BIGSWITCH_H | ||
| 18 | #define BIGSWITCH_H | ||
| 19 | |||
| 20 | #include "quantum.h" | ||
| 21 | |||
| 22 | #define LAYOUT( \ | ||
| 23 | K00, K01, K02 \ | ||
| 24 | ) { \ | ||
| 25 | { K00, K01, K02 } \ | ||
| 26 | } | ||
| 27 | |||
| 28 | #endif | ||
diff --git a/keyboards/bigseries/3key/config.h b/keyboards/bigseries/3key/config.h new file mode 100755 index 000000000..e10b14db4 --- /dev/null +++ b/keyboards/bigseries/3key/config.h | |||
| @@ -0,0 +1,63 @@ | |||
| 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 | #ifndef CONFIG_H | ||
| 18 | #define CONFIG_H | ||
| 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 | #define DESCRIPTION Triple key board for Novelkeys Big Series Switch | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 1 | ||
| 32 | #define MATRIX_COLS 3 | ||
| 33 | |||
| 34 | /* key matrix pins */ | ||
| 35 | #define MATRIX_ROW_PINS { B0 } | ||
| 36 | #define MATRIX_COL_PINS { B4, B3, B5 } | ||
| 37 | #define UNUSED_PINS | ||
| 38 | |||
| 39 | /* COL2ROW or ROW2COL */ | ||
| 40 | #define DIODE_DIRECTION ROW2COL | ||
| 41 | |||
| 42 | /* Set 0 if debouncing isn't needed */ | ||
| 43 | #define DEBOUNCING_DELAY 50 | ||
| 44 | |||
| 45 | /* key combination for command */ | ||
| 46 | #define IS_COMMAND() ( \ | ||
| 47 | false \ | ||
| 48 | ) | ||
| 49 | |||
| 50 | /* prevent stuck modifiers */ | ||
| 51 | #define PREVENT_STUCK_MODIFIERS | ||
| 52 | |||
| 53 | #ifdef RGBLIGHT_ENABLE | ||
| 54 | #define RGB_DI_PIN D3 | ||
| 55 | #define RGBLIGHT_ANIMATIONS | ||
| 56 | #define RGBLED_NUM 11 | ||
| 57 | #ifdef RGBLIGHT_LIMIT_VAL | ||
| 58 | #undef RGBLIGHT_LIMIT_VAL | ||
| 59 | #endif | ||
| 60 | #define RGBLIGHT_LIMIT_VAL 128 | ||
| 61 | #endif | ||
| 62 | |||
| 63 | #endif | ||
diff --git a/keyboards/bigseries/3key/info.json b/keyboards/bigseries/3key/info.json new file mode 100644 index 000000000..4a288219a --- /dev/null +++ b/keyboards/bigseries/3key/info.json | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Big Series 3-Key", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 12, | ||
| 6 | "height": 4, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [{"x":0, "y":0, "w":4, "h":4}, {"x":1, "y":0, "w":4, "h":4}, {"x":2, "y":0, "w":4, "h":4}] | ||
| 10 | } | ||
| 11 | } | ||
| 12 | } | ||
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..8e5b10db8 --- /dev/null +++ b/keyboards/bigseries/3key/keymaps/ctrl-alt-del/keymap.c | |||
| @@ -0,0 +1,91 @@ | |||
| 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 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { | ||
| 33 | return MACRO_NONE ; | ||
| 34 | } | ||
| 35 | |||
| 36 | void matrix_init_user(void) { | ||
| 37 | if (!initialized){ | ||
| 38 | dprintf("Initializing in matrix_scan_user"); | ||
| 39 | // Disable to set a known state | ||
| 40 | rgblight_disable(); | ||
| 41 | rgblight_init(); | ||
| 42 | // None of the subsequent operations take effect if not enabled | ||
| 43 | rgblight_enable(); | ||
| 44 | rgblight_sethsv(0,0,255); | ||
| 45 | rgblight_mode(7); | ||
| 46 | initialized = 1; | ||
| 47 | } | ||
| 48 | } | ||
| 49 | |||
| 50 | void matrix_scan_user(void) { | ||
| 51 | } | ||
| 52 | |||
| 53 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 54 | switch (keycode) { | ||
| 55 | } | ||
| 56 | return true; | ||
| 57 | } | ||
| 58 | |||
| 59 | void led_set_user(uint8_t usb_led) { | ||
| 60 | |||
| 61 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
| 62 | |||
| 63 | } else { | ||
| 64 | |||
| 65 | } | ||
| 66 | |||
| 67 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
| 68 | |||
| 69 | } else { | ||
| 70 | |||
| 71 | } | ||
| 72 | |||
| 73 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
| 74 | |||
| 75 | } else { | ||
| 76 | |||
| 77 | } | ||
| 78 | |||
| 79 | if (usb_led & (1 << USB_LED_COMPOSE)) { | ||
| 80 | |||
| 81 | } else { | ||
| 82 | |||
| 83 | } | ||
| 84 | |||
| 85 | if (usb_led & (1 << USB_LED_KANA)) { | ||
| 86 | |||
| 87 | } else { | ||
| 88 | |||
| 89 | } | ||
| 90 | |||
| 91 | } | ||
diff --git a/keyboards/bigseries/3key/keymaps/default/keymap.c b/keyboards/bigseries/3key/keymaps/default/keymap.c new file mode 100755 index 000000000..6f0ffc9e1 --- /dev/null +++ b/keyboards/bigseries/3key/keymaps/default/keymap.c | |||
| @@ -0,0 +1,95 @@ | |||
| 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 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { | ||
| 31 | return MACRO_NONE ; | ||
| 32 | } | ||
| 33 | |||
| 34 | void matrix_init_user(void) { | ||
| 35 | if (!initialized){ | ||
| 36 | dprintf("Initializing in matrix_scan_user"); | ||
| 37 | // Disable to set a known state | ||
| 38 | rgblight_disable(); | ||
| 39 | rgblight_init(); | ||
| 40 | // None of the subsequent operations take effect if not enabled | ||
| 41 | rgblight_enable(); | ||
| 42 | rgblight_sethsv(0,0,255); | ||
| 43 | rgblight_mode(7); | ||
| 44 | initialized = 1; | ||
| 45 | } | ||
| 46 | } | ||
| 47 | |||
| 48 | void matrix_scan_user(void) { | ||
| 49 | } | ||
| 50 | |||
| 51 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 52 | switch (keycode) { | ||
| 53 | case KC_A: | ||
| 54 | if (record->event.pressed) { | ||
| 55 | SEND_STRING("Howdy!!\n"); | ||
| 56 | rgblight_step(); | ||
| 57 | return false; | ||
| 58 | } | ||
| 59 | } | ||
| 60 | return true; | ||
| 61 | } | ||
| 62 | |||
| 63 | void led_set_user(uint8_t usb_led) { | ||
| 64 | |||
| 65 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
| 66 | |||
| 67 | } else { | ||
| 68 | |||
| 69 | } | ||
| 70 | |||
| 71 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
| 72 | |||
| 73 | } else { | ||
| 74 | |||
| 75 | } | ||
| 76 | |||
| 77 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
| 78 | |||
| 79 | } else { | ||
| 80 | |||
| 81 | } | ||
| 82 | |||
| 83 | if (usb_led & (1 << USB_LED_COMPOSE)) { | ||
| 84 | |||
| 85 | } else { | ||
| 86 | |||
| 87 | } | ||
| 88 | |||
| 89 | if (usb_led & (1 << USB_LED_KANA)) { | ||
| 90 | |||
| 91 | } else { | ||
| 92 | |||
| 93 | } | ||
| 94 | |||
| 95 | } | ||
diff --git a/keyboards/bigseries/3key/keymaps/tester/keymap.c b/keyboards/bigseries/3key/keymaps/tester/keymap.c new file mode 100755 index 000000000..896a781fc --- /dev/null +++ b/keyboards/bigseries/3key/keymaps/tester/keymap.c | |||
| @@ -0,0 +1,88 @@ | |||
| 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 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { | ||
| 32 | return MACRO_NONE ; | ||
| 33 | } | ||
| 34 | |||
| 35 | void matrix_init_user(void) { | ||
| 36 | if (!initialized){ | ||
| 37 | dprintf("Initializing in matrix_scan_user"); | ||
| 38 | // Disable to set a known state | ||
| 39 | rgblight_disable(); | ||
| 40 | rgblight_init(); | ||
| 41 | // None of the subsequent operations take effect if not enabled | ||
| 42 | rgblight_enable(); | ||
| 43 | rgblight_sethsv(0,0,255); | ||
| 44 | rgblight_mode(35); | ||
| 45 | initialized = 1; | ||
| 46 | } | ||
| 47 | } | ||
| 48 | |||
| 49 | void matrix_scan_user(void) { | ||
| 50 | } | ||
| 51 | |||
| 52 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 53 | return true; | ||
| 54 | } | ||
| 55 | |||
| 56 | void led_set_user(uint8_t usb_led) { | ||
| 57 | |||
| 58 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
| 59 | |||
| 60 | } else { | ||
| 61 | |||
| 62 | } | ||
| 63 | |||
| 64 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
| 65 | |||
| 66 | } else { | ||
| 67 | |||
| 68 | } | ||
| 69 | |||
| 70 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
| 71 | |||
| 72 | } else { | ||
| 73 | |||
| 74 | } | ||
| 75 | |||
| 76 | if (usb_led & (1 << USB_LED_COMPOSE)) { | ||
| 77 | |||
| 78 | } else { | ||
| 79 | |||
| 80 | } | ||
| 81 | |||
| 82 | if (usb_led & (1 << USB_LED_KANA)) { | ||
| 83 | |||
| 84 | } else { | ||
| 85 | |||
| 86 | } | ||
| 87 | |||
| 88 | } | ||
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..772d56beb --- /dev/null +++ b/keyboards/bigseries/3key/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| # Dummy file to make the QMK build system happy \ No newline at end of file | |||
diff --git a/keyboards/bigseries/4key/4key.c b/keyboards/bigseries/4key/4key.c new file mode 100755 index 000000000..891f11bbb --- /dev/null +++ b/keyboards/bigseries/4key/4key.c | |||
| @@ -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 | #include "4key.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 | }; | ||
diff --git a/keyboards/bigseries/4key/4key.h b/keyboards/bigseries/4key/4key.h new file mode 100755 index 000000000..21373fded --- /dev/null +++ b/keyboards/bigseries/4key/4key.h | |||
| @@ -0,0 +1,30 @@ | |||
| 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 | #ifndef BIGSWITCH_H | ||
| 18 | #define BIGSWITCH_H | ||
| 19 | |||
| 20 | #include "quantum.h" | ||
| 21 | |||
| 22 | #define LAYOUT( \ | ||
| 23 | K00, K01, \ | ||
| 24 | K10, K11 \ | ||
| 25 | ) { \ | ||
| 26 | { K00, K01 }, \ | ||
| 27 | { K10, K11 } \ | ||
| 28 | } | ||
| 29 | |||
| 30 | #endif | ||
diff --git a/keyboards/bigseries/4key/config.h b/keyboards/bigseries/4key/config.h new file mode 100755 index 000000000..3ebcfe091 --- /dev/null +++ b/keyboards/bigseries/4key/config.h | |||
| @@ -0,0 +1,63 @@ | |||
| 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 | #ifndef CONFIG_H | ||
| 18 | #define CONFIG_H | ||
| 19 | |||
| 20 | #include "config_common.h" | ||
| 21 | |||
| 22 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0xFEED | ||
| 24 | #define PRODUCT_ID 0x6074 | ||
| 25 | #define DEVICE_VER 0x0002 | ||
| 26 | #define MANUFACTURER WoodKeys.click | ||
| 27 | #define PRODUCT BigSeries Quad Keyboard | ||
| 28 | #define DESCRIPTION 4-key board for Novelkeys Big Series Switch | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 2 | ||
| 32 | #define MATRIX_COLS 2 | ||
| 33 | |||
| 34 | /* key matrix pins */ | ||
| 35 | #define MATRIX_ROW_PINS { B0, B5 } | ||
| 36 | #define MATRIX_COL_PINS { B4, B3 } | ||
| 37 | #define UNUSED_PINS | ||
| 38 | |||
| 39 | /* COL2ROW or ROW2COL */ | ||
| 40 | #define DIODE_DIRECTION ROW2COL | ||
| 41 | |||
| 42 | /* Set 0 if debouncing isn't needed */ | ||
| 43 | #define DEBOUNCING_DELAY 50 | ||
| 44 | |||
| 45 | /* key combination for command */ | ||
| 46 | #define IS_COMMAND() ( \ | ||
| 47 | false \ | ||
| 48 | ) | ||
| 49 | |||
| 50 | /* prevent stuck modifiers */ | ||
| 51 | #define PREVENT_STUCK_MODIFIERS | ||
| 52 | |||
| 53 | #ifdef RGBLIGHT_ENABLE | ||
| 54 | #define RGB_DI_PIN D3 | ||
| 55 | #define RGBLIGHT_ANIMATIONS | ||
| 56 | #define RGBLED_NUM 12 | ||
| 57 | #ifdef RGBLIGHT_LIMIT_VAL | ||
| 58 | #undef RGBLIGHT_LIMIT_VAL | ||
| 59 | #endif | ||
| 60 | #define RGBLIGHT_LIMIT_VAL 128 | ||
| 61 | #endif | ||
| 62 | |||
| 63 | #endif | ||
diff --git a/keyboards/bigseries/4key/info.json b/keyboards/bigseries/4key/info.json new file mode 100644 index 000000000..bff643d38 --- /dev/null +++ b/keyboards/bigseries/4key/info.json | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Big Series 4-Key", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 16, | ||
| 6 | "height": 16, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [{"x":0, "y":0, "w":4, "h":4}, {"x":1, "y":0, "w":4, "h":4}, {"x":0, "y":1, "w":4, "h":4}, {"x":1, "y":1, "w":4, "h":4}] | ||
| 10 | } | ||
| 11 | } | ||
| 12 | } | ||
diff --git a/keyboards/bigseries/4key/keymaps/default/keymap.c b/keyboards/bigseries/4key/keymaps/default/keymap.c new file mode 100755 index 000000000..1c65f44b0 --- /dev/null +++ b/keyboards/bigseries/4key/keymaps/default/keymap.c | |||
| @@ -0,0 +1,89 @@ | |||
| 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_HOME, KC_PGUP, | ||
| 24 | KC_END, KC_PGDN), | ||
| 25 | |||
| 26 | |||
| 27 | }; | ||
| 28 | |||
| 29 | |||
| 30 | bool initialized = 0; | ||
| 31 | |||
| 32 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { | ||
| 33 | return MACRO_NONE ; | ||
| 34 | } | ||
| 35 | |||
| 36 | void matrix_init_user(void) { | ||
| 37 | if (!initialized){ | ||
| 38 | dprintf("Initializing in matrix_scan_user"); | ||
| 39 | rgblight_enable(); | ||
| 40 | rgblight_mode(7); | ||
| 41 | rgblight_sethsv(0,255,255); | ||
| 42 | rgblight_setrgb(0x00, 0x00, 0xFF); | ||
| 43 | initialized = 1; | ||
| 44 | } | ||
| 45 | } | ||
| 46 | |||
| 47 | void matrix_scan_user(void) { | ||
| 48 | } | ||
| 49 | |||
| 50 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 51 | if (record->event.pressed) { | ||
| 52 | rgblight_step(); | ||
| 53 | } | ||
| 54 | return true; | ||
| 55 | } | ||
| 56 | |||
| 57 | void led_set_user(uint8_t usb_led) { | ||
| 58 | |||
| 59 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
| 60 | |||
| 61 | } else { | ||
| 62 | |||
| 63 | } | ||
| 64 | |||
| 65 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
| 66 | |||
| 67 | } else { | ||
| 68 | |||
| 69 | } | ||
| 70 | |||
| 71 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
| 72 | |||
| 73 | } else { | ||
| 74 | |||
| 75 | } | ||
| 76 | |||
| 77 | if (usb_led & (1 << USB_LED_COMPOSE)) { | ||
| 78 | |||
| 79 | } else { | ||
| 80 | |||
| 81 | } | ||
| 82 | |||
| 83 | if (usb_led & (1 << USB_LED_KANA)) { | ||
| 84 | |||
| 85 | } else { | ||
| 86 | |||
| 87 | } | ||
| 88 | |||
| 89 | } | ||
diff --git a/keyboards/bigseries/4key/keymaps/tester/keymap.c b/keyboards/bigseries/4key/keymaps/tester/keymap.c new file mode 100755 index 000000000..5d5fe0d38 --- /dev/null +++ b/keyboards/bigseries/4key/keymaps/tester/keymap.c | |||
| @@ -0,0 +1,88 @@ | |||
| 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, KC_D), | ||
| 24 | |||
| 25 | |||
| 26 | }; | ||
| 27 | |||
| 28 | |||
| 29 | bool initialized = 0; | ||
| 30 | |||
| 31 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { | ||
| 32 | return MACRO_NONE ; | ||
| 33 | } | ||
| 34 | |||
| 35 | void matrix_init_user(void) { | ||
| 36 | if (!initialized){ | ||
| 37 | dprintf("Initializing in matrix_scan_user"); | ||
| 38 | // Disable to set a known state | ||
| 39 | rgblight_disable(); | ||
| 40 | rgblight_init(); | ||
| 41 | // None of the subsequent operations take effect if not enabled | ||
| 42 | rgblight_enable(); | ||
| 43 | rgblight_sethsv(0,0,255); | ||
| 44 | rgblight_mode(35); | ||
| 45 | initialized = 1; | ||
| 46 | } | ||
| 47 | } | ||
| 48 | |||
| 49 | void matrix_scan_user(void) { | ||
| 50 | } | ||
| 51 | |||
| 52 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 53 | return true; | ||
| 54 | } | ||
| 55 | |||
| 56 | void led_set_user(uint8_t usb_led) { | ||
| 57 | |||
| 58 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
| 59 | |||
| 60 | } else { | ||
| 61 | |||
| 62 | } | ||
| 63 | |||
| 64 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
| 65 | |||
| 66 | } else { | ||
| 67 | |||
| 68 | } | ||
| 69 | |||
| 70 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
| 71 | |||
| 72 | } else { | ||
| 73 | |||
| 74 | } | ||
| 75 | |||
| 76 | if (usb_led & (1 << USB_LED_COMPOSE)) { | ||
| 77 | |||
| 78 | } else { | ||
| 79 | |||
| 80 | } | ||
| 81 | |||
| 82 | if (usb_led & (1 << USB_LED_KANA)) { | ||
| 83 | |||
| 84 | } else { | ||
| 85 | |||
| 86 | } | ||
| 87 | |||
| 88 | } | ||
diff --git a/keyboards/bigseries/4key/readme.md b/keyboards/bigseries/4key/readme.md new file mode 100644 index 000000000..ec40e83f2 --- /dev/null +++ b/keyboards/bigseries/4key/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/4key: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/4key/rules.mk b/keyboards/bigseries/4key/rules.mk new file mode 100755 index 000000000..772d56beb --- /dev/null +++ b/keyboards/bigseries/4key/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| # Dummy file to make the QMK build system happy \ No newline at end of file | |||
diff --git a/keyboards/bigseries/readme.md b/keyboards/bigseries/readme.md index 528df0de0..0b4066735 100644 --- a/keyboards/bigseries/readme.md +++ b/keyboards/bigseries/readme.md | |||
| @@ -1,15 +1,16 @@ | |||
| 1 | # Big Series Keyboard | 1 | # Big Series Keyboards |
| 2 | 2 | ||
| 3 |  | 3 |  |
| 4 | 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/). | 5 | The is the parent folder for all PCBs made by [Woodkeys](https://woodkeys.click) 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 | 6 | ||
| 7 | Keyboard Maintainer: [Cole Markham](https://github.com/colemarkham) / [Woodkeys.click](https://woodkeys.click) | 7 | Keyboard Maintainer: [Cole Markham](https://github.com/colemarkham) / [Woodkeys.click](https://woodkeys.click) |
| 8 | Hardware Supported: Big Series PCBs | 8 | Hardware Supported: Big Series PCBs |
| 9 | Hardware Availability: [Woodkeys.click](https://woodkeys.click), [NovelKeys](https://novelkeys.xyz) | 9 | Hardware Availability: [Woodkeys.click](https://woodkeys.click), [NovelKeys](https://novelkeys.xyz) |
| 10 | 10 | ||
| 11 | Make example for this keyboard (after setting up your build environment): | 11 | Make example for these keyboards (after setting up your build environment): |
| 12 | 12 | ||
| 13 | make bigseries:default | 13 | make bigseries/1key:default |
| 14 | make bigseries/3key:ctrl-alt-del | ||
| 14 | 15 | ||
| 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. | 16 | 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/rules.mk b/keyboards/bigseries/rules.mk index 4cac07f72..c862f0b25 100755 --- a/keyboards/bigseries/rules.mk +++ b/keyboards/bigseries/rules.mk | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | #SRC += rgb_backlight.c | ||
| 2 | |||
| 3 | # MCU name | 1 | # MCU name |
| 4 | MCU = atmega32u2 | 2 | MCU = atmega32u2 |
| 5 | 3 | ||
