summaryrefslogtreecommitdiff
path: root/keyboards/k34/config.h
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-12-18 08:49:18 +0000
committerQMK Bot <hello@qmk.fm>2021-12-18 08:49:18 +0000
commit560386461e19fdf355dad3a22094e1397c7bbd57 (patch)
tree4eb1137fb2409dcd041eb40a6787576b04aeb7d2 /keyboards/k34/config.h
parent8d61218abec99eecb51004f7811d8914e0f4f524 (diff)
parentf79e1ab7481525cfa2b63e6bc062fb7d8250c8db (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/k34/config.h')
-rw-r--r--keyboards/k34/config.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/keyboards/k34/config.h b/keyboards/k34/config.h
new file mode 100644
index 0000000000..4d9910d50d
--- /dev/null
+++ b/keyboards/k34/config.h
@@ -0,0 +1,38 @@
+// Copyright 2021 jp_smasher (@jp_smasher)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "config_common.h"
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID 0xFEED
+#define PRODUCT_ID 0x0000
+#define DEVICE_VER 0x0001
+#define MANUFACTURER jp_smasher
+#define PRODUCT k34
+
+/* key matrix size */
+#define MATRIX_ROWS 4
+#define MATRIX_COLS 10
+
+/*
+ * Keyboard Matrix Assignments
+ *
+ * Change this to how you wired your keyboard
+ * COLS: AVR pins used for columns, left to right
+ * ROWS: AVR pins used for rows, top to bottom
+ * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
+ * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
+ *
+ */
+#define MATRIX_ROW_PINS { F4, B2, E6, B4 }
+#define MATRIX_COL_PINS { D1, D0, D4, C6, D7, F5, F6, F7, B1, B3 }
+#define UNUSED_PINS { B5, B6, D2, D3 }
+
+/* COL2ROW, ROW2COL */
+#define DIODE_DIRECTION COL2ROW
+
+/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
+#define DEBOUNCE 5
+