summaryrefslogtreecommitdiff
path: root/keyboards/cantor/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/cantor/config.h')
-rw-r--r--keyboards/cantor/config.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/keyboards/cantor/config.h b/keyboards/cantor/config.h
new file mode 100644
index 0000000000..650e06cf5e
--- /dev/null
+++ b/keyboards/cantor/config.h
@@ -0,0 +1,46 @@
+// Copyright 2022 Diego Palacios (@diepala)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "config_common.h"
+
+/* key matrix size */
+#define MATRIX_ROWS 8
+#define MATRIX_COLS 6
+
+#define DIRECT_PINS {{B1, B10, A8, B15, B14, B13}, \
+ {B9, B8, B5, B4, B3, A15}, \
+ {A3, A4, A5, A6, A7, B0}, \
+ {A2, A1, A0, NO_PIN, NO_PIN, NO_PIN}}
+#define DIRECT_PINS_RIGHT {{B13, B14, B15, A8, B10, B1}, \
+ {A15, B3, B4, B5, B8, B9}, \
+ {B0, A7, A6, A5, A4, A3}, \
+ {A0, A1, A2, NO_PIN, NO_PIN, NO_PIN}}
+
+#define SERIAL_USART_FULL_DUPLEX // Enable full duplex operation mode.
+#define SERIAL_USART_TX_PIN B6 // USART TX pin
+#define SERIAL_USART_RX_PIN B7 // USART RX pin
+
+/* Top left key on left half */
+#define BOOTMAGIC_LITE_ROW 0
+#define BOOTMAGIC_LITE_COLUMN 0
+/* Top right key on right half */
+#define BOOTMAGIC_LITE_ROW_RIGHT 4
+#define BOOTMAGIC_LITE_COLUMN_RIGHT 5
+
+/*
+ * Feature disable options
+ * These options are also useful to firmware size reduction.
+ */
+
+/* disable debug print */
+//#define NO_DEBUG
+
+/* disable print */
+//#define NO_PRINT
+
+/* disable action features */
+//#define NO_ACTION_LAYER
+//#define NO_ACTION_TAPPING
+//#define NO_ACTION_ONESHOT