summaryrefslogtreecommitdiff
path: root/keyboards/handwired/z150/config.h
diff options
context:
space:
mode:
authorDmitry Nosachev <quartz64@gmail.com>2020-07-27 00:44:50 +0300
committerGitHub <noreply@github.com>2020-07-26 22:44:50 +0100
commitdfa3017c92db3f9eef240fbc8f06150a8c35c9c9 (patch)
tree8783eae93e4ba19092d85c8d4d5f90f72fe1951c /keyboards/handwired/z150/config.h
parentb49c5a562d84aeefa331e450419a21bf9b61ea89 (diff)
[Keyboard] Add keyboard Zenith Z-150 (#9811)
* z150 black pill * z150 docs * z150: json layout * Update keyboards/handwired/z150/keymaps/zyxx/keymap.c Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/handwired/z150/rules.mk Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/handwired/z150/rules.mk Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/handwired/z150/z150.c Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/handwired/z150/config.h Co-authored-by: Joel Challis <git@zvecr.com> * Delete bootloader_defs.h Useless file * Update keyboards/handwired/z150/readme.md Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'keyboards/handwired/z150/config.h')
-rw-r--r--keyboards/handwired/z150/config.h92
1 files changed, 92 insertions, 0 deletions
diff --git a/keyboards/handwired/z150/config.h b/keyboards/handwired/z150/config.h
new file mode 100644
index 0000000000..ecdb739544
--- /dev/null
+++ b/keyboards/handwired/z150/config.h
@@ -0,0 +1,92 @@
+/*
+Copyright 2020 DmNosachev
+
+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 0x0000
+#define DEVICE_VER 0x0001
+#define MANUFACTURER ALPS
+#define PRODUCT Z150
+/* key matrix size */
+#define MATRIX_ROWS 11
+#define MATRIX_COLS 8
+
+#define MATRIX_ROW_PINS { B13, B14, B15, A8, A9, A3, A10, A1, A2, A15, A0 }
+#define MATRIX_COL_PINS { B11, B10, B1, B0, A7, A6, A5, A4 }
+#define UNUSED_PINS
+
+#define NUM_LOCK_LED_PIN B5
+#define SCROLL_LOCK_LED_PIN B4
+#define CAPS_LOCK_LED_PIN B3
+
+/* COL2ROW, ROW2COL */
+#define DIODE_DIRECTION COL2ROW
+
+/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
+#define DEBOUNCE 5
+
+/* define if matrix has ghost (lacks anti-ghosting diodes) */
+//#define MATRIX_HAS_GHOST
+
+/*
+ * Force NKRO
+ *
+ * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
+ * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
+ * makefile for this to work.)
+ *
+ * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
+ * until the next keyboard reset.
+ *
+ * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
+ * fully operational during normal computer usage.
+ *
+ * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
+ * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
+ * bootmagic, NKRO mode will always be enabled until it is toggled again during a
+ * power-up.
+ *
+ */
+//#define FORCE_NKRO
+
+/*
+ * Feature disable options
+ * These options are also useful to firmware size reduction.
+ */
+
+/* disable debug print */
+//#define NO_DEBUG
+
+/* disable print */
+//#define NO_PRINT
+
+/* disable action features */
+//#define NO_ACTION_LAYER
+//#define NO_ACTION_TAPPING
+//#define NO_ACTION_ONESHOT
+
+/* disable these deprecated features by default */
+#define NO_ACTION_MACRO
+#define NO_ACTION_FUNCTION
+
+/* Bootmagic Lite key configuration */
+//#define BOOTMAGIC_LITE_ROW 0
+//#define BOOTMAGIC_LITE_COLUMN 0