summaryrefslogtreecommitdiff
path: root/keyboards/mb44/config.h
diff options
context:
space:
mode:
authormelonbred <61572569+melonbred@users.noreply.github.com>2021-06-15 22:24:16 -0700
committerGitHub <noreply@github.com>2021-06-15 22:24:16 -0700
commit5c3991cb90108115a269e0b9f7e4b71019851cc1 (patch)
tree7b68ff03b35c82563ba530ece154020edfbce131 /keyboards/mb44/config.h
parentabee0610eefc4ce84d461787e58d7e62e63282db (diff)
[Keyboard] add mb44 keyboard (#12798)
Co-authored-by: ridingqwerty <george.g.koenig@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/mb44/config.h')
-rw-r--r--keyboards/mb44/config.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/keyboards/mb44/config.h b/keyboards/mb44/config.h
new file mode 100644
index 0000000000..013efa8570
--- /dev/null
+++ b/keyboards/mb44/config.h
@@ -0,0 +1,61 @@
+/*
+Copyright 2021 melonbred
+
+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
+
+#include "config_common.h"
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID 0x6d62
+#define PRODUCT_ID 0x6d62
+#define DEVICE_VER 0x0001
+#define MANUFACTURER melonbred
+
+
+/* key matrix size */
+#define MATRIX_ROWS 4
+#define MATRIX_COLS 12
+
+/*
+ * 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 { D1, D6, D5, D4 }
+#define MATRIX_COL_PINS { C4, C5, C6, C7, B7, B6, B5, B4, B3, B2, B1, B0 }
+#define UNUSED_PINS { C2 }
+
+/* COL2ROW, ROW2COL*/
+#define DIODE_DIRECTION COL2ROW
+
+/*Encoder Definition*/
+#define ENCODERS_PAD_A { D3 }
+#define ENCODERS_PAD_B { D2 }
+
+/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
+#define DEBOUNCE 5
+
+
+/* disable these deprecated features by default */
+#define NO_ACTION_MACRO
+#define NO_ACTION_FUNCTION
+