summaryrefslogtreecommitdiff
path: root/keyboards/tronguylabs/m122_3270/bluepill/config.h
diff options
context:
space:
mode:
authorJames Young <18669334+noroadsleft@users.noreply.github.com>2021-08-11 09:48:25 -0700
committerJames Young <18669334+noroadsleft@users.noreply.github.com>2021-08-11 09:48:25 -0700
commit345f6dc4e6910ab11907dfa5382edb12d57a1d7b (patch)
treeb57d00ab7fe59a47f4035ab7463dec5090ef6464 /keyboards/tronguylabs/m122_3270/bluepill/config.h
parentf4c447f2dfd9146664e3e985cac743abf17ac060 (diff)
parent02ac0f89c4665f5fc6e57559a8c49d363117fbc0 (diff)
downloadqmk_firmware-345f6dc4e6910ab11907dfa5382edb12d57a1d7b.tar.gz
qmk_firmware-345f6dc4e6910ab11907dfa5382edb12d57a1d7b.zip
Merge remote-tracking branch 'upstream/master' into develop
Fixes merge conflicts in: - keyboards/poker87c/rules.mk and keyboards/poker87d/rules.mk - Conflicts from PR 13961 - keyboards/tronguylabs/m122_3270/keymaps/default/keymap.c - Conflict from PR 13947
Diffstat (limited to 'keyboards/tronguylabs/m122_3270/bluepill/config.h')
-rw-r--r--keyboards/tronguylabs/m122_3270/bluepill/config.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/keyboards/tronguylabs/m122_3270/bluepill/config.h b/keyboards/tronguylabs/m122_3270/bluepill/config.h
new file mode 100644
index 0000000000..f59eaaacb6
--- /dev/null
+++ b/keyboards/tronguylabs/m122_3270/bluepill/config.h
@@ -0,0 +1,29 @@
+/* Copyright 2021 James R. Maynard III <jaymaynard@gmail.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+// place overrides below
+
+// Blackpill pin assignments: reversed the rows from the Teensy version for easier PCB layout
+// DO NOT USE the following pins: A9 (has pulldown on it), A11/A12 (USB lines), B2 (external pulldown)
+// C13 has an LED, and C13/C14/C15 are best used as inputs (with DIODE_DIRECTION set to ROW2COL, the
+// rows are inputs). Note that every usable I/O pin is used.
+#define MATRIX_COL_PINS { B1, B10, B11, B12, B13, B14, B15, A8, B0, A10, A7, A6, A15, B3, B4, B5, B6, B7, B8, B9 }
+#define MATRIX_ROW_PINS { C13, C14, C15, A1, A2, A3, A4, A5 }
+
+// The BluePill version is version 3
+#define DEVICE_VER 0x0003