aboutsummaryrefslogtreecommitdiff
path: root/keyboards/a_dux/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/a_dux/config.h')
-rw-r--r--keyboards/a_dux/config.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/keyboards/a_dux/config.h b/keyboards/a_dux/config.h
new file mode 100644
index 000000000..b00794577
--- /dev/null
+++ b/keyboards/a_dux/config.h
@@ -0,0 +1,83 @@
1/* Copyright 2018-2020 ENDO Katsuhiro <[email protected]> David Philip Barr <@davidphilipbarr> Pierre Chevalier <[email protected]>
2
3This program is free software: you can redistribute it and/or modify
4it under the terms of the GNU General Public License as published by
5the Free Software Foundation, either version 2 of the License, or
6(at your option) any later version.
7
8This program is distributed in the hope that it will be useful,
9but WITHOUT ANY WARRANTY; without even the implied warranty of
10MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License
14along 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 0xC2AB
23#define PRODUCT_ID 0x3939
24#define DEVICE_VER 0x0001
25#define MANUFACTURER tapioki
26#define PRODUCT Architeuthis dux
27
28/* key matrix size */
29#define MATRIX_ROWS 8
30#define MATRIX_COLS 5
31
32/*
33 * Keyboard Matrix Assignments
34 *
35 * Change this to how you wired your keyboard
36 * COLS: AVR pins used for columns, left to right
37 * ROWS: AVR pins used for rows, top to bottom
38 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
39 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
40 * NO_DIODE = switches are directly connected to AVR pins
41 *
42*/
43#define DIRECT_PINS { \
44 { C6, D2, F7, B2, F4 }, \
45 { D7, D0, F6, B3, F5 }, \
46 { E6, D4, D3, B1, B6 }, \
47 { B4, B5, NO_PIN, NO_PIN, NO_PIN } \
48}
49
50#define DIRECT_PINS_RIGHT { \
51 { F4, B2, F7, D2, C6 }, \
52 { F5, B3, F6, D0, D7 }, \
53 { B6, B1, D3, D4, E6 }, \
54 { B5, B4, NO_PIN, NO_PIN, NO_PIN } \
55}
56
57
58
59#define UNUSED_PINS
60
61/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
62#define DEBOUNCE 5
63
64/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
65#define LOCKING_SUPPORT_ENABLE
66
67/* Locking resynchronize hack */
68#define LOCKING_RESYNC_ENABLE
69
70/* Serial settings */
71#define USE_SERIAL
72
73/* serial.c configuration for split keyboard */
74#define SOFT_SERIAL_PIN D1
75
76#define EE_HANDS
77
78/* Top left key on left half */
79#define BOOTMAGIC_LITE_ROW 0
80#define BOOTMAGIC_LITE_COLUMN 0
81/* Top right key on right half */
82#define BOOTMAGIC_LITE_ROW_RIGHT 4
83#define BOOTMAGIC_LITE_COLUMN_RIGHT 4