summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/pteron/config.h
diff options
context:
space:
mode:
authorFilip Sund <filip.sund@gmail.com>2018-10-03 19:12:27 +0200
committerDrashna Jaelre <drashna@live.com>2018-10-03 10:12:27 -0700
commitf01133d08918b3d1dd7b349309b02ffd37273f5c (patch)
tree5aaf1555eb2a9fc25d5fa289994110abc7ac90ed /keyboards/handwired/pteron/config.h
parente58ea882e40eff146b9cebf9e1c99e89f25260ac (diff)
Keyboard: Add handwired/pteron config and keymaps (#4060)
* Added pteron files made via from kbfirmware.com. * Added readme. * Made some progress on Pteron keymap. * More keymap. * Updated bootloader, added some keymap illustrations. * Moved default keymap to FSund, made default keymap from default preonic keymap. * Fixed typo in default pteron keymap. * Made changes recommended by drashna.
Diffstat (limited to 'keyboards/handwired/pteron/config.h')
-rw-r--r--keyboards/handwired/pteron/config.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/keyboards/handwired/pteron/config.h b/keyboards/handwired/pteron/config.h
new file mode 100644
index 0000000000..9650839e30
--- /dev/null
+++ b/keyboards/handwired/pteron/config.h
@@ -0,0 +1,34 @@
+#pragma once
+
+#include "config_common.h"
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID 0xFEED
+#define PRODUCT_ID 0x6060
+#define DEVICE_VER 0x0001
+#define MANUFACTURER QMK Community
+#define PRODUCT Pteron Keyboard
+#define DESCRIPTION Pteron Keyboard
+
+/* key matrix size */
+#define MATRIX_ROWS 5
+#define MATRIX_COLS 12
+
+/* key matrix pins */
+#define MATRIX_ROW_PINS { D7, E6, B4, B5, B6 }
+#define MATRIX_COL_PINS { F4, F6, F5, F7, B1, B3, C6, D4, D0, D1, D2, D3 }
+#define UNUSED_PINS
+
+/* COL2ROW or ROW2COL */
+#define DIODE_DIRECTION ROW2COL
+
+/* Set 0 if debouncing isn't needed */
+#define DEBOUNCING_DELAY 5 // 5 is default
+
+/* key combination for command */
+#define IS_COMMAND() ( \
+ keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
+)
+
+/* prevent stuck modifiers */
+#define PREVENT_STUCK_MODIFIERS