aboutsummaryrefslogtreecommitdiff
path: root/keyboards/z12/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/z12/config.h')
-rw-r--r--keyboards/z12/config.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/keyboards/z12/config.h b/keyboards/z12/config.h
new file mode 100644
index 000000000..7f897b795
--- /dev/null
+++ b/keyboards/z12/config.h
@@ -0,0 +1,53 @@
1/* Copyright 2020 Sergi Meseguer <zigotica@gmail.com>
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 0x7A74
23#define PRODUCT_ID 0x0001
24#define DEVICE_VER 0x0001
25#define MANUFACTURER zigotica
26#define PRODUCT z12
27
28#define ENCODERS_PAD_A { B4, B2 }
29#define ENCODERS_PAD_B { B5, B6 }
30#define ENCODER_DIRECTION_FLIP
31
32/* key matrix size */
33#define MATRIX_ROWS 4
34#define MATRIX_COLS 4
35
36/*Keyboard Matrix Assignments */
37
38#define DIRECT_PINS { \
39 { NO_PIN, E6, C6, NO_PIN }, \
40 { D2, D7, D4, D3 }, \
41 { F7, B1, B3, NO_PIN }, \
42 { F6, F5, F4, NO_PIN } \
43}
44
45#define UNUSED_PINS
46
47/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
48#define DEBOUNCE 5
49
50/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
51#define LOCKING_SUPPORT_ENABLE
52/* Locking resynchronize hack */
53#define LOCKING_RESYNC_ENABLE