summaryrefslogtreecommitdiffstats
path: root/keyboards/beekeeb/piantor/config.h
diff options
context:
space:
mode:
authorLeo Lou <louyuhong@gmail.com>2022-11-28 10:03:58 +0800
committerGitHub <noreply@github.com>2022-11-28 02:03:58 +0000
commitcbedec64a42ddc408fc5053dc3a68afc6f48d4c1 (patch)
tree3e5f45b3e160bcbac5b4f88bd72620b3bb09185a /keyboards/beekeeb/piantor/config.h
parent4020674163fc80914059c4c9c3be5c0ae00bd150 (diff)
Add piantor (#18920)
* Add piantor * Update keyboards/beekeeb/piantor/readme.md Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/beekeeb/piantor/config.h')
-rw-r--r--keyboards/beekeeb/piantor/config.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/keyboards/beekeeb/piantor/config.h b/keyboards/beekeeb/piantor/config.h
new file mode 100644
index 0000000000..f8d74af211
--- /dev/null
+++ b/keyboards/beekeeb/piantor/config.h
@@ -0,0 +1,34 @@
+// Copyright 2022 beekeeb
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "config_common.h"
+
+#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
+#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 1000U
+
+#define SERIAL_USART_FULL_DUPLEX
+#define SERIAL_USART_TX_PIN GP0
+#define SERIAL_USART_RX_PIN GP1
+
+/* key matrix size */
+#define MATRIX_ROWS 8
+#define MATRIX_COLS 6
+
+#define DIRECT_PINS { \
+ { GP5, GP4, GP11, GP15, GP3, GP2}, \
+ { GP22, GP20, GP10, GP14, GP9, GP8}, \
+ { GP21, GP19, GP6, GP7, GP13, GP12}, \
+ { GP17, GP18, GP16, NO_PIN, NO_PIN, NO_PIN} \
+}
+
+#define DIRECT_PINS_RIGHT { \
+ { GP22, GP21, GP2, GP5, GP8, GP11}, \
+ { GP20, GP19, GP3, GP6, GP9, GP12}, \
+ { GP18, GP17, GP4, GP7, GP10, GP13}, \
+ { GP15, GP14, GP16, NO_PIN, NO_PIN, NO_PIN} \
+}
+
+#define BOOTMAGIC_LITE_ROW 0
+#define BOOTMAGIC_LITE_COLUMN 5