diff options
| -rw-r--r-- | keyboards/percent/booster/booster.c | 51 | ||||
| -rw-r--r-- | keyboards/percent/booster/booster.h | 32 | ||||
| -rw-r--r-- | keyboards/percent/booster/config.h | 52 | ||||
| -rw-r--r-- | keyboards/percent/booster/info.json | 31 | ||||
| -rw-r--r-- | keyboards/percent/booster/keymaps/default/keymap.c | 27 | ||||
| -rw-r--r-- | keyboards/percent/booster/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/percent/booster/readme.md | 13 | ||||
| -rw-r--r-- | keyboards/percent/booster/rules.mk | 39 | ||||
| -rw-r--r-- | keyboards/percent/readme.md | 6 |
9 files changed, 252 insertions, 0 deletions
diff --git a/keyboards/percent/booster/booster.c b/keyboards/percent/booster/booster.c new file mode 100644 index 000000000..3a298f58f --- /dev/null +++ b/keyboards/percent/booster/booster.c | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | /* Copyright 2019 MechMerlin | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include "booster.h" | ||
| 17 | |||
| 18 | // Optional override functions below. | ||
| 19 | // You can leave any or all of these undefined. | ||
| 20 | // These are only required if you want to perform custom actions. | ||
| 21 | |||
| 22 | /* | ||
| 23 | |||
| 24 | void matrix_init_kb(void) { | ||
| 25 | // put your keyboard start-up code here | ||
| 26 | // runs once when the firmware starts up | ||
| 27 | |||
| 28 | matrix_init_user(); | ||
| 29 | } | ||
| 30 | |||
| 31 | void matrix_scan_kb(void) { | ||
| 32 | // put your looping keyboard code here | ||
| 33 | // runs every cycle (a lot) | ||
| 34 | |||
| 35 | matrix_scan_user(); | ||
| 36 | } | ||
| 37 | |||
| 38 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
| 39 | // put your per-action keyboard code here | ||
| 40 | // runs for every action, just before processing by the firmware | ||
| 41 | |||
| 42 | return process_record_user(keycode, record); | ||
| 43 | } | ||
| 44 | |||
| 45 | void led_set_kb(uint8_t usb_led) { | ||
| 46 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | ||
| 47 | |||
| 48 | led_set_user(usb_led); | ||
| 49 | } | ||
| 50 | |||
| 51 | */ | ||
diff --git a/keyboards/percent/booster/booster.h b/keyboards/percent/booster/booster.h new file mode 100644 index 000000000..be2d2cb12 --- /dev/null +++ b/keyboards/percent/booster/booster.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | /* Copyright 2019 MechMerlin | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #pragma once | ||
| 17 | |||
| 18 | #include "quantum.h" | ||
| 19 | |||
| 20 | #define LAYOUT_numpad_5x4( \ | ||
| 21 | K00, K01, K02, K03, \ | ||
| 22 | K10, K11, K12, \ | ||
| 23 | K20, K21, K22, K23, \ | ||
| 24 | K30, K31, K32, \ | ||
| 25 | K40, K42, K33 \ | ||
| 26 | ) { \ | ||
| 27 | { K00, K01, K02, K03 }, \ | ||
| 28 | { K10, K11, K12, KC_NO }, \ | ||
| 29 | { K20, K21, K22, K23 }, \ | ||
| 30 | { K30, K31, K32, K33 }, \ | ||
| 31 | { K40, KC_NO, K42, KC_NO }, \ | ||
| 32 | } | ||
diff --git a/keyboards/percent/booster/config.h b/keyboards/percent/booster/config.h new file mode 100644 index 000000000..23ac7ad0c --- /dev/null +++ b/keyboards/percent/booster/config.h | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2019 MechMerlin | ||
| 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 0x0000 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER Percent Studio | ||
| 27 | #define PRODUCT Booster | ||
| 28 | #define DESCRIPTION Custom programmable numpad | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 5 | ||
| 32 | #define MATRIX_COLS 4 | ||
| 33 | |||
| 34 | #define MATRIX_ROW_PINS { D1, D6, D7, B4, B5 } | ||
| 35 | #define MATRIX_COL_PINS { C7, D4, D2, D0 } | ||
| 36 | |||
| 37 | #define BACKLIGHT_PIN B7 | ||
| 38 | #define BACKLIGHT_LEVELS 3 | ||
| 39 | |||
| 40 | #define DIODE_DIRECTION COL2ROW | ||
| 41 | |||
| 42 | #define RGB_DI_PIN E2 | ||
| 43 | #ifdef RGB_DI_PIN | ||
| 44 | #define RGBLED_NUM 10 | ||
| 45 | #define RGBLIGHT_HUE_STEP 8 | ||
| 46 | #define RGBLIGHT_SAT_STEP 8 | ||
| 47 | #define RGBLIGHT_VAL_STEP 8 | ||
| 48 | #define RGBLIGHT_LIMIT_VAL 255 | ||
| 49 | #define RGBLIGHT_SLEEP | ||
| 50 | #define RGBLIGHT_ANIMATIONS | ||
| 51 | #endif | ||
| 52 | |||
diff --git a/keyboards/percent/booster/info.json b/keyboards/percent/booster/info.json new file mode 100644 index 000000000..c5d230deb --- /dev/null +++ b/keyboards/percent/booster/info.json | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "booster", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 4, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "key_count": 17, | ||
| 10 | "layout": [ | ||
| 11 | {"label":"K00 (D1,C7)", "x":0, "y":0}, | ||
| 12 | {"label":"K01 (D1,D4)", "x":1, "y":0}, | ||
| 13 | {"label":"K02 (D1,D2)", "x":2, "y":0}, | ||
| 14 | {"label":"K03 (D1,D0)", "x":3, "y":0}, | ||
| 15 | {"label":"K10 (D6,C7)", "x":0, "y":1}, | ||
| 16 | {"label":"K11 (D6,D4)", "x":1, "y":1}, | ||
| 17 | {"label":"K12 (D6,D2)", "x":2, "y":1}, | ||
| 18 | {"label":"K20 (D7,C7)", "x":0, "y":2}, | ||
| 19 | {"label":"K21 (D7,D4)", "x":1, "y":2}, | ||
| 20 | {"label":"K22 (D7,D2)", "x":2, "y":2}, | ||
| 21 | {"label":"K23 (D7,D0)", "x":3, "y":1, "h":2}, | ||
| 22 | {"label":"K30 (B4,C7)", "x":0, "y":3}, | ||
| 23 | {"label":"K31 (B4,D4)", "x":1, "y":3}, | ||
| 24 | {"label":"K32 (B4,D2)", "x":2, "y":3}, | ||
| 25 | {"label":"K40 (B5,C7)", "x":0, "y":4, "w":2}, | ||
| 26 | {"label":"K42 (B5,D2)", "x":2, "y":4}, | ||
| 27 | {"label":"K33 (B4,D0)", "x":3, "y":3, "h":2} | ||
| 28 | ] | ||
| 29 | } | ||
| 30 | } | ||
| 31 | } | ||
diff --git a/keyboards/percent/booster/keymaps/default/keymap.c b/keyboards/percent/booster/keymaps/default/keymap.c new file mode 100644 index 000000000..919774bca --- /dev/null +++ b/keyboards/percent/booster/keymaps/default/keymap.c | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | /* Copyright 2019 MechMerlin | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | [0] = LAYOUT_numpad_5x4( | ||
| 20 | KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, | ||
| 21 | KC_P7, KC_P8, KC_P9, | ||
| 22 | KC_P4, KC_P5, KC_P6, KC_PPLS, | ||
| 23 | KC_P1, KC_P2, KC_P3, | ||
| 24 | KC_P0, KC_PDOT, KC_PENT | ||
| 25 | ), | ||
| 26 | |||
| 27 | }; | ||
diff --git a/keyboards/percent/booster/keymaps/default/readme.md b/keyboards/percent/booster/keymaps/default/readme.md new file mode 100644 index 000000000..0293153f0 --- /dev/null +++ b/keyboards/percent/booster/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for Booster | |||
diff --git a/keyboards/percent/booster/readme.md b/keyboards/percent/booster/readme.md new file mode 100644 index 000000000..78b4b5a35 --- /dev/null +++ b/keyboards/percent/booster/readme.md | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | # Booster | ||
| 2 | |||
| 3 | Booster is a number pad designed for Canoe. Shared exactly the same angle and approximate design language, | ||
| 4 | |||
| 5 | Keyboard Maintainer: [MechMerlin](https://github.com/mechmerlin) | ||
| 6 | Hardware Supported: Booster PCB | ||
| 7 | Hardware Availability: [Percent Studio Store](https://percent.studio/products/booster-for-canoe-65) | ||
| 8 | |||
| 9 | Make example for this keyboard (after setting up your build environment): | ||
| 10 | |||
| 11 | make percent/booster:default | ||
| 12 | |||
| 13 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/percent/booster/rules.mk b/keyboards/percent/booster/rules.mk new file mode 100644 index 000000000..30e66537f --- /dev/null +++ b/keyboards/percent/booster/rules.mk | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | MCU = atmega32u4 | ||
| 2 | F_CPU = 16000000 | ||
| 3 | ARCH = AVR8 | ||
| 4 | F_USB = $(F_CPU) | ||
| 5 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 6 | |||
| 7 | |||
| 8 | # Bootloader selection | ||
| 9 | # Teensy halfkay | ||
| 10 | # Pro Micro caterina | ||
| 11 | # Atmel DFU atmel-dfu | ||
| 12 | # LUFA DFU lufa-dfu | ||
| 13 | # QMK DFU qmk-dfu | ||
| 14 | # atmega32a bootloadHID | ||
| 15 | BOOTLOADER = atmel-dfu | ||
| 16 | |||
| 17 | # Build Options | ||
| 18 | # change yes to no to disable | ||
| 19 | # | ||
| 20 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 21 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 22 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 23 | CONSOLE_ENABLE = yes # Console for debug | ||
| 24 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 25 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 26 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 27 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 28 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 29 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 30 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 31 | MIDI_ENABLE = no # MIDI support | ||
| 32 | UNICODE_ENABLE = no # Unicode | ||
| 33 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 34 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 35 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 36 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs | ||
| 37 | EXTRAFLAGS += -flto | ||
| 38 | |||
| 39 | LAYOUTS = numpad_5x4 \ No newline at end of file | ||
diff --git a/keyboards/percent/readme.md b/keyboards/percent/readme.md new file mode 100644 index 000000000..8028edf03 --- /dev/null +++ b/keyboards/percent/readme.md | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | # Percent Studio | ||
| 2 | |||
| 3 | [Website](https://percent.studio/) | ||
| 4 | [Facebook](https://www.facebook.com/PercentStudio.CN/) | ||
| 5 | [Instagram](https://www.instagram.com/percent.studio/) | ||
| 6 | [Taobao](https://shop140162967.world.taobao.com/?spm=a1z09.1.sellercard.15.15ec3606mPki7O) \ No newline at end of file | ||
