summaryrefslogtreecommitdiff
path: root/keyboards/emi20/config.h
diff options
context:
space:
mode:
authorAquaCylinder <56627792+AquaCylinder@users.noreply.github.com>2021-07-29 17:49:51 +0200
committerGitHub <noreply@github.com>2021-07-29 08:49:51 -0700
commitae268596ce9c591b28e80b04516b3ed8936f5aa5 (patch)
tree1165d9ff0d8e9f0dad0da56f519767fece63adb5 /keyboards/emi20/config.h
parentad6acb3a03b826ce64bc1171d84fe9c364e2031d (diff)
downloadqmk_firmware-ae268596ce9c591b28e80b04516b3ed8936f5aa5.tar.gz
qmk_firmware-ae268596ce9c591b28e80b04516b3ed8936f5aa5.zip
[Keyboard] Add Emi20 (#13603)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/emi20/config.h')
-rw-r--r--keyboards/emi20/config.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/keyboards/emi20/config.h b/keyboards/emi20/config.h
new file mode 100644
index 0000000000..98eefdc6ad
--- /dev/null
+++ b/keyboards/emi20/config.h
@@ -0,0 +1,57 @@
+/* Copyright 2021 Aquacylinder
+ *
+ * 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 0xFEED
+#define PRODUCT_ID 0x6060
+#define DEVICE_VER 0x0001
+#define MANUFACTURER Aquacylinder
+#define PRODUCT emi20
+
+/* key matrix size */
+#define MATRIX_ROWS 5
+#define MATRIX_COLS 4
+
+/* key matrix pins */
+#define MATRIX_ROW_PINS { F4, F5, F6, F7, B6 }
+#define MATRIX_COL_PINS { C7, C6, B5, B4 }
+#define UNUSED_PINS
+
+/* COL2ROW or ROW2COL */
+#define DIODE_DIRECTION COL2ROW
+
+/* number of backlight levels */
+
+#ifdef BACKLIGHT_PIN
+#define BACKLIGHT_LEVELS 3
+#endif
+
+/* Set 0 if debouncing isn't needed */
+#define DEBOUNCE 5
+
+
+
+#ifdef RGB_DI_PIN
+#define RGBLIGHT_ANIMATIONS
+#define RGBLED_NUM 0
+#define RGBLIGHT_HUE_STEP 8
+#define RGBLIGHT_SAT_STEP 8
+#define RGBLIGHT_VAL_STEP 8
+#endif