aboutsummaryrefslogtreecommitdiff
path: root/keyboards/macro3/config.h
diff options
context:
space:
mode:
authorAlbert Y <76888457+filterpaper@users.noreply.github.com>2021-11-16 09:05:15 +0800
committerGitHub <noreply@github.com>2021-11-15 17:05:15 -0800
commit22eba600418696542a6b84125f4dff2f37638c1e (patch)
tree7bbc86cb9d13596abfc905b78c8a397c2b41753f /keyboards/macro3/config.h
parentd3ae937b50df8d98deb3dc3b9f8aa1635eac1c8b (diff)
downloadqmk_firmware-22eba600418696542a6b84125f4dff2f37638c1e.tar.gz
qmk_firmware-22eba600418696542a6b84125f4dff2f37638c1e.zip
[Keyboard] Add macro3 PCB support (#15131)
Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: filterpaper <filterpaper@localhost>
Diffstat (limited to 'keyboards/macro3/config.h')
-rw-r--r--keyboards/macro3/config.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/keyboards/macro3/config.h b/keyboards/macro3/config.h
new file mode 100644
index 000000000..59f7a151c
--- /dev/null
+++ b/keyboards/macro3/config.h
@@ -0,0 +1,55 @@
1/* Copyright 2020 David Philip Barr <@davidphilipbarr>
2 * Copyright 2021 @filterpaper
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#include "config_common.h"
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0xC88B
23#define PRODUCT_ID 0x3388
24#define DEVICE_VER 0x0003
25#define MANUFACTURER DPB
26#define PRODUCT Macro3
27
28/* key matrix size */
29#define MATRIX_ROWS 2
30#define MATRIX_COLS 4
31
32/* key matrix pins */
33#define DIRECT_PINS { \
34 { D7, C6, D4, D1 }, \
35 { B1, B4, B5, B3 } \
36}
37
38#define ENCODERS_PAD_A { D2, F7 }
39#define ENCODERS_PAD_B { D3, F6 }
40
41#define UNUSED_PINS
42
43/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
44#define DEBOUNCE 5
45
46/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
47#define LOCKING_SUPPORT_ENABLE
48
49/* Locking resynchronize hack */
50#define LOCKING_RESYNC_ENABLE
51
52/* Top right key */
53#define BOOTMAGIC_LITE_ROW 0
54#define BOOTMAGIC_LITE_COLUMN 3
55