aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbinepad <69730862+binepad@users.noreply.github.com>2021-10-27 20:37:58 +0530
committerGitHub <noreply@github.com>2021-10-27 08:07:58 -0700
commit59738955293c85abcc5d9bd6998e3ed90ced4733 (patch)
treefeeb1396bc23402c25564a91c485802d234a1052
parent2e3514f21c718e0f99e12433a96d6916f1a2fb73 (diff)
downloadqmk_firmware-59738955293c85abcc5d9bd6998e3ed90ced4733.tar.gz
qmk_firmware-59738955293c85abcc5d9bd6998e3ed90ced4733.zip
[Keyboard] binepad bn009 (#14881)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r--keyboards/binepad/bn009/bn009.c16
-rw-r--r--keyboards/binepad/bn009/bn009.h28
-rw-r--r--keyboards/binepad/bn009/config.h78
-rw-r--r--keyboards/binepad/bn009/info.json10
-rw-r--r--keyboards/binepad/bn009/keymaps/default/keymap.c42
-rw-r--r--keyboards/binepad/bn009/keymaps/default/readme.md1
-rw-r--r--keyboards/binepad/bn009/keymaps/via/keymap.c44
-rw-r--r--keyboards/binepad/bn009/keymaps/via/rules.mk1
-rw-r--r--keyboards/binepad/bn009/readme.md17
-rw-r--r--keyboards/binepad/bn009/rules.mk21
10 files changed, 258 insertions, 0 deletions
diff --git a/keyboards/binepad/bn009/bn009.c b/keyboards/binepad/bn009/bn009.c
new file mode 100644
index 000000000..48bfb44da
--- /dev/null
+++ b/keyboards/binepad/bn009/bn009.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 "bn009.h"
diff --git a/keyboards/binepad/bn009/bn009.h b/keyboards/binepad/bn009/bn009.h
new file mode 100644
index 000000000..9a3a23fbc
--- /dev/null
+++ b/keyboards/binepad/bn009/bn009.h
@@ -0,0 +1,28 @@
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 k10, k11, k12, \
21 k20, k21, k22 \
22) \
23{ \
24 { k00, k01, k02 }, \
25 { k10, k11, k12 }, \
26 { k20, k21, k22 } \
27}
28
diff --git a/keyboards/binepad/bn009/config.h b/keyboards/binepad/bn009/config.h
new file mode 100644
index 000000000..0b12f54c7
--- /dev/null
+++ b/keyboards/binepad/bn009/config.h
@@ -0,0 +1,78 @@
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 0x4295
24#define DEVICE_VER 0x0001
25#define MANUFACTURER Binepad
26#define PRODUCT BN009
27
28/* Key matrix size */
29#define MATRIX_ROWS 3
30#define MATRIX_COLS 3
31
32#define MATRIX_ROW_PINS { D2, D1, D0 }
33#define MATRIX_COL_PINS { B6, B5, B4 }
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
diff --git a/keyboards/binepad/bn009/info.json b/keyboards/binepad/bn009/info.json
new file mode 100644
index 000000000..2d439c825
--- /dev/null
+++ b/keyboards/binepad/bn009/info.json
@@ -0,0 +1,10 @@
1{
2 "keyboard_name": "BN009",
3 "url": "https://binepad.com",
4 "maintainer": "binepad",
5 "layouts": {
6 "LAYOUT": {
7 "layout": [{"label":"k00", "x":0, "y":0}, {"label":"k01", "x":1, "y":0}, {"label":"k02", "x":2, "y":0}, {"label":"k10", "x":0, "y":1}, {"label":"k11", "x":1, "y":1}, {"label":"k12", "x":2, "y":1}, {"label":"k20", "x":0, "y":2}, {"label":"k21", "x":1, "y":2}, {"label":"k22", "x":2, "y":2}]
8 }
9 }
10} \ No newline at end of file
diff --git a/keyboards/binepad/bn009/keymaps/default/keymap.c b/keyboards/binepad/bn009/keymaps/default/keymap.c
new file mode 100644
index 000000000..573a25d01
--- /dev/null
+++ b/keyboards/binepad/bn009/keymaps/default/keymap.c
@@ -0,0 +1,42 @@
1/* Copyright 2021 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#include QMK_KEYBOARD_H
18
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20
21
22[0] = LAYOUT(
23 KC_7, KC_8, KC_9,
24 KC_4, KC_5, KC_6,
25 KC_1, KC_2, KC_3
26),
27
28
29[1] = LAYOUT(
30 KC_NO, KC_NO, KC_NO,
31 KC_NO, KC_NO, KC_NO,
32 KC_NO, KC_NO, KC_NO
33),
34
35
36[2] = LAYOUT(
37 KC_NO, KC_NO, KC_NO,
38 KC_NO, KC_NO, KC_NO,
39 KC_NO, KC_NO, KC_NO
40)
41
42};
diff --git a/keyboards/binepad/bn009/keymaps/default/readme.md b/keyboards/binepad/bn009/keymaps/default/readme.md
new file mode 100644
index 000000000..b3c7ba28d
--- /dev/null
+++ b/keyboards/binepad/bn009/keymaps/default/readme.md
@@ -0,0 +1 @@
# bn009 - Default layout
diff --git a/keyboards/binepad/bn009/keymaps/via/keymap.c b/keyboards/binepad/bn009/keymaps/via/keymap.c
new file mode 100644
index 000000000..4ce3d1ae7
--- /dev/null
+++ b/keyboards/binepad/bn009/keymaps/via/keymap.c
@@ -0,0 +1,44 @@
1/* Copyright 2021 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#include QMK_KEYBOARD_H
18
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20 [0] =
21 LAYOUT(
22 KC_7 , KC_8 , KC_9,
23 KC_4 , KC_5 , KC_6,
24 KC_1 , KC_2 , KC_3
25 ),
26 [1] =
27 LAYOUT(
28 KC_NO , KC_NO, KC_NO,
29 KC_NO , KC_NO, KC_NO,
30 KC_NO , KC_NO, KC_NO
31 ),
32 [2] =
33 LAYOUT(
34 KC_NO , KC_NO, KC_NO,
35 KC_NO , KC_NO, KC_NO,
36 KC_NO , KC_NO, KC_NO
37 ),
38 [3] =
39 LAYOUT(
40 KC_NO , KC_NO, KC_NO,
41 KC_NO , KC_NO, KC_NO,
42 KC_NO , KC_NO, KC_NO
43 ),
44};
diff --git a/keyboards/binepad/bn009/keymaps/via/rules.mk b/keyboards/binepad/bn009/keymaps/via/rules.mk
new file mode 100644
index 000000000..1e5b99807
--- /dev/null
+++ b/keyboards/binepad/bn009/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/binepad/bn009/readme.md b/keyboards/binepad/bn009/readme.md
new file mode 100644
index 000000000..dc0442fa8
--- /dev/null
+++ b/keyboards/binepad/bn009/readme.md
@@ -0,0 +1,17 @@
1# BINEPAD BN009
2
3![BINEPAD BN009](https://imgur.com/fu0iXD0h.jpg)
4
5A 9% macropad.
6
7* Keyboard Maintainer: [BINEPAD]
8* Hardware Supported: BN009 PCB (ATmega32U4)
9* Hardware Availability: [Interest Check](https://www.binepad.com/bn009)
10
11**Physical reset button**: There's a small hole at the bottom of macropad. Use the reset pin provided in box and push it hard through the hole, so that it press the reset button on pcb.
12
13Make example for this keyboard (after setting up your build environment):
14
15 make binepad/bn009:default
16
17See 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/bn009/rules.mk b/keyboards/binepad/bn009/rules.mk
new file mode 100644
index 000000000..10e9616d6
--- /dev/null
+++ b/keyboards/binepad/bn009/rules.mk
@@ -0,0 +1,21 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = yes # Console for debug
14COMMAND_ENABLE = yes # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_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
18NKRO_ENABLE = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21AUDIO_ENABLE = no # Audio output