summaryrefslogtreecommitdiff
path: root/keyboards/printedpad/config.h
diff options
context:
space:
mode:
authornoahbei <123449614+noahbei@users.noreply.github.com>2023-10-04 21:55:49 -0700
committerGitHub <noreply@github.com>2023-10-04 21:55:49 -0700
commit92873cc14f1ef66ae3c856dc6b5298c75e66f8d2 (patch)
tree5e60f7bd1e5c6228694ff8d1a2b89d0faf8314cf /keyboards/printedpad/config.h
parent2a8b3a809d8a6ca4f9dd23bc4cef1cbc23443539 (diff)
Add printedpad keyboard (#21202)
Co-authored-by: jack <0x6a73@protonmail.com> Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/printedpad/config.h')
-rw-r--r--keyboards/printedpad/config.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/keyboards/printedpad/config.h b/keyboards/printedpad/config.h
new file mode 100644
index 0000000000..58bf9c6ffe
--- /dev/null
+++ b/keyboards/printedpad/config.h
@@ -0,0 +1,15 @@
+// Copyright 2023 Noah Beidelman (@noahbei)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#define I2C_DRIVER I2CD1
+#define I2C1_SCL_PAL_MODE 1
+#define I2C1_SDA_PAL_MODE 1
+#define I2C1_TIMINGR_PRESC 0x00U
+#define I2C1_TIMINGR_SCLDEL 0x03U
+#define I2C1_TIMINGR_SDADEL 0x01U
+#define I2C1_TIMINGR_SCLH 0x03U
+#define I2C1_TIMINGR_SCLL 0x09U
+
+#define OLED_TIMEOUT 300000