diff options
| author | binepad <69730862+binepad@users.noreply.github.com> | 2020-09-12 15:41:30 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-12 03:11:30 -0700 |
| commit | e4d46a1c00f60fa97d779f0c468c502416d29f02 (patch) | |
| tree | fc32f14d988b21ec5588a12a8c16ba3ffb7f8b6c | |
| parent | 7141de19d98be604587f269a2dc9a85b0a211e6f (diff) | |
| download | qmk_firmware-e4d46a1c00f60fa97d779f0c468c502416d29f02.tar.gz qmk_firmware-e4d46a1c00f60fa97d779f0c468c502416d29f02.zip | |
[Keyboard] add binepad/bn003 (#10276)
* ADD BINEPAD/BN003
* Update keyboards/binepad/bn003/config.h
* Update keyboards/binepad/bn003/config.h
* Update keyboards/binepad/bn003/rules.mk
* Update keyboards/binepad/bn003/keymaps/via/keymap.c
* Update readme.md
added macro pad info
* Update keyboards/binepad/bn003/readme.md
* Update keyboards/binepad/bn003/bn003.c
* Update keyboards/binepad/bn003/config.h
* Update keyboards/binepad/bn003/config.h
* Update keyboards/binepad/bn003/info.json
* Update keyboards/binepad/bn003/rules.mk
* Update keyboards/binepad/bn003/rules.mk
* Update keyboards/binepad/bn003/rules.mk
* Update bn003.c
* Update keyboards/binepad/bn003/readme.md
* Update keyboards/binepad/bn003/rules.mk
* Update keyboards/binepad/bn003/config.h
* Update keyboards/binepad/bn003/keymaps/via/rules.mk
* Update keyboards/binepad/bn003/rules.mk
| -rw-r--r-- | keyboards/binepad/bn003/bn003.c | 16 | ||||
| -rw-r--r-- | keyboards/binepad/bn003/bn003.h | 23 | ||||
| -rw-r--r-- | keyboards/binepad/bn003/config.h | 89 | ||||
| -rw-r--r-- | keyboards/binepad/bn003/info.json | 28 | ||||
| -rw-r--r-- | keyboards/binepad/bn003/keymaps/default/keymap.c | 19 | ||||
| -rw-r--r-- | keyboards/binepad/bn003/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/binepad/bn003/keymaps/via/keymap.c | 24 | ||||
| -rw-r--r-- | keyboards/binepad/bn003/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/binepad/bn003/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/binepad/bn003/rules.mk | 22 |
10 files changed, 238 insertions, 0 deletions
diff --git a/keyboards/binepad/bn003/bn003.c b/keyboards/binepad/bn003/bn003.c new file mode 100644 index 000000000..80a6d384c --- /dev/null +++ b/keyboards/binepad/bn003/bn003.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | /* Copyright 2020 BINEPAD | ||
| 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 "bn003.h" | ||
diff --git a/keyboards/binepad/bn003/bn003.h b/keyboards/binepad/bn003/bn003.h new file mode 100644 index 000000000..15311b534 --- /dev/null +++ b/keyboards/binepad/bn003/bn003.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | /* Copyright 2020 BINEPAD | ||
| 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 "quantum.h" | ||
| 17 | |||
| 18 | #define LAYOUT( \ | ||
| 19 | K00, K01, K02 \ | ||
| 20 | ) { \ | ||
| 21 | { K00, K01, K02 } \ | ||
| 22 | } | ||
| 23 | |||
diff --git a/keyboards/binepad/bn003/config.h b/keyboards/binepad/bn003/config.h new file mode 100644 index 000000000..de5fb533a --- /dev/null +++ b/keyboards/binepad/bn003/config.h | |||
| @@ -0,0 +1,89 @@ | |||
| 1 | /* Copyright 2020 BINEPAD | ||
| 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 | |||
| 17 | #pragma once | ||
| 18 | |||
| 19 | #include "config_common.h" | ||
| 20 | |||
| 21 | /* USB Device descriptor parameter */ | ||
| 22 | #define VENDOR_ID 0x4249 // Binepad | ||
| 23 | #define PRODUCT_ID 0x4287 | ||
| 24 | #define DEVICE_VER 0x0001 | ||
| 25 | #define MANUFACTURER Binepad | ||
| 26 | #define PRODUCT BN003 | ||
| 27 | |||
| 28 | /* Key matrix size */ | ||
| 29 | #define MATRIX_ROWS 1 | ||
| 30 | #define MATRIX_COLS 3 | ||
| 31 | |||
| 32 | #define MATRIX_ROW_PINS { C6 } | ||
| 33 | #define MATRIX_COL_PINS { B4, B5, B6 } | ||
| 34 | #define UNUSED_PINS | ||
| 35 | |||
| 36 | /* COL2ROW, ROW2COL*/ | ||
| 37 | #define DIODE_DIRECTION COL2ROW | ||
| 38 | |||
| 39 | |||
| 40 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 41 | #define DEBOUNCE 5 | ||
| 42 | |||
| 43 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 44 | //#define MATRIX_HAS_GHOST | ||
| 45 | |||
| 46 | |||
| 47 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 48 | #define LOCKING_SUPPORT_ENABLE | ||
| 49 | /* Locking resynchronize hack */ | ||
| 50 | #define LOCKING_RESYNC_ENABLE | ||
| 51 | |||
| 52 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 53 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 54 | */ | ||
| 55 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 56 | |||
| 57 | /* | ||
| 58 | * Force NKRO | ||
| 59 | * | ||
| 60 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 61 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 62 | * makefile for this to work.) | ||
| 63 | * | ||
| 64 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 65 | * until the next keyboard reset. | ||
| 66 | * | ||
| 67 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 68 | * fully operational during normal computer usage. | ||
| 69 | * | ||
| 70 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 71 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 72 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 73 | * power-up. | ||
| 74 | * | ||
| 75 | |||
| 76 | */ | ||
| 77 | //#define FORCE_NKRO | ||
| 78 | |||
| 79 | /* | ||
| 80 | * Magic Key Options | ||
| 81 | * | ||
| 82 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 83 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 84 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 85 | * | ||
| 86 | * The options below allow the magic key functionality to be changed. This is | ||
| 87 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 88 | * | ||
| 89 | */ | ||
diff --git a/keyboards/binepad/bn003/info.json b/keyboards/binepad/bn003/info.json new file mode 100644 index 000000000..fdf7e3fbb --- /dev/null +++ b/keyboards/binepad/bn003/info.json | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "BN003", | ||
| 3 | "url": "https://binepad.com", | ||
| 4 | "maintainer": "binepad", | ||
| 5 | "width": 3, | ||
| 6 | "height": 1, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | { | ||
| 11 | "label": "K0", | ||
| 12 | "x": 0, | ||
| 13 | "y": 0 | ||
| 14 | }, | ||
| 15 | { | ||
| 16 | "label": "K1", | ||
| 17 | "x": 1, | ||
| 18 | "y": 0 | ||
| 19 | }, | ||
| 20 | { | ||
| 21 | "label": "K2", | ||
| 22 | "x": 2, | ||
| 23 | "y": 0 | ||
| 24 | } | ||
| 25 | ] | ||
| 26 | } | ||
| 27 | } | ||
| 28 | } | ||
diff --git a/keyboards/binepad/bn003/keymaps/default/keymap.c b/keyboards/binepad/bn003/keymaps/default/keymap.c new file mode 100644 index 000000000..8e73f05bb --- /dev/null +++ b/keyboards/binepad/bn003/keymaps/default/keymap.c | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 4 | [0] = LAYOUT( | ||
| 5 | KC_0, | ||
| 6 | KC_1, | ||
| 7 | KC_2 | ||
| 8 | ), | ||
| 9 | [1] = LAYOUT( | ||
| 10 | KC_NO, | ||
| 11 | KC_NO, | ||
| 12 | KC_NO | ||
| 13 | ), | ||
| 14 | [2] = LAYOUT( | ||
| 15 | KC_NO, | ||
| 16 | KC_NO, | ||
| 17 | KC_NO | ||
| 18 | ) | ||
| 19 | }; | ||
diff --git a/keyboards/binepad/bn003/keymaps/default/readme.md b/keyboards/binepad/bn003/keymaps/default/readme.md new file mode 100644 index 000000000..be0a7d956 --- /dev/null +++ b/keyboards/binepad/bn003/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # bn003 - Default layout | |||
diff --git a/keyboards/binepad/bn003/keymaps/via/keymap.c b/keyboards/binepad/bn003/keymaps/via/keymap.c new file mode 100644 index 000000000..e0ffb3f80 --- /dev/null +++ b/keyboards/binepad/bn003/keymaps/via/keymap.c | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 4 | [0] = LAYOUT( | ||
| 5 | KC_0, | ||
| 6 | KC_1, | ||
| 7 | KC_2 | ||
| 8 | ), | ||
| 9 | [1] = LAYOUT( | ||
| 10 | KC_NO, | ||
| 11 | KC_NO, | ||
| 12 | KC_NO | ||
| 13 | ), | ||
| 14 | [2] = LAYOUT( | ||
| 15 | KC_NO, | ||
| 16 | KC_NO, | ||
| 17 | KC_NO | ||
| 18 | ), | ||
| 19 | [3] = LAYOUT( | ||
| 20 | KC_NO, | ||
| 21 | KC_NO, | ||
| 22 | KC_NO | ||
| 23 | ) | ||
| 24 | }; | ||
diff --git a/keyboards/binepad/bn003/keymaps/via/rules.mk b/keyboards/binepad/bn003/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/binepad/bn003/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/binepad/bn003/readme.md b/keyboards/binepad/bn003/readme.md new file mode 100644 index 000000000..daf406dbe --- /dev/null +++ b/keyboards/binepad/bn003/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # BINEPAD BN003 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A 3% macropad. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [BINEPAD] | ||
| 8 | * Hardware Supported: BN003 PCB (ATmega32U4) | ||
| 9 | * Hardware Availability: [Interest Check](https://www.binepad.com/bn003) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make binepad/bn003:default | ||
| 14 | |||
| 15 | 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/binepad/bn003/rules.mk b/keyboards/binepad/bn003/rules.mk new file mode 100644 index 000000000..7b15ae065 --- /dev/null +++ b/keyboards/binepad/bn003/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = atmel-dfu | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 11 | MOUSEKEY_ENABLE = yes # 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 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
