diff options
Diffstat (limited to 'keyboards/binepad')
20 files changed, 487 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..6bb5724e4 --- /dev/null +++ b/keyboards/binepad/bn003/info.json | |||
@@ -0,0 +1,26 @@ | |||
1 | { | ||
2 | "keyboard_name": "BN003", | ||
3 | "url": "https://binepad.com", | ||
4 | "maintainer": "binepad", | ||
5 | "layouts": { | ||
6 | "LAYOUT": { | ||
7 | "layout": [ | ||
8 | { | ||
9 | "label": "K0", | ||
10 | "x": 0, | ||
11 | "y": 0 | ||
12 | }, | ||
13 | { | ||
14 | "label": "K1", | ||
15 | "x": 1, | ||
16 | "y": 0 | ||
17 | }, | ||
18 | { | ||
19 | "label": "K2", | ||
20 | "x": 2, | ||
21 | "y": 0 | ||
22 | } | ||
23 | ] | ||
24 | } | ||
25 | } | ||
26 | } | ||
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..73ac281e0 --- /dev/null +++ b/keyboards/binepad/bn003/rules.mk | |||
@@ -0,0 +1,18 @@ | |||
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 = yes # Enable Bootmagic Lite | ||
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 | NKRO_ENABLE = yes # Enable N-Key Rollover | ||
16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
17 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
18 | AUDIO_ENABLE = no # Audio output | ||
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 | |||
19 | const 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 | |||
19 | const 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 |  | ||
4 | |||
5 | A 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 | |||
13 | Make example for this keyboard (after setting up your build environment): | ||
14 | |||
15 | make binepad/bn009:default | ||
16 | |||
17 | 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/bn009/rules.mk b/keyboards/binepad/bn009/rules.mk new file mode 100644 index 000000000..73ac281e0 --- /dev/null +++ b/keyboards/binepad/bn009/rules.mk | |||
@@ -0,0 +1,18 @@ | |||
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 = yes # Enable Bootmagic Lite | ||
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 | NKRO_ENABLE = yes # Enable N-Key Rollover | ||
16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
17 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
18 | AUDIO_ENABLE = no # Audio output | ||