aboutsummaryrefslogtreecommitdiff
path: root/keyboards/hhkb_lite_2/config.h
diff options
context:
space:
mode:
authorYu-Xi Lim <thirteen37@users.noreply.github.com>2020-08-18 15:06:19 +0800
committerGitHub <noreply@github.com>2020-08-18 00:06:19 -0700
commit4237d35e83826d0d8949a45dffa27d6c68d3d4f9 (patch)
tree99c3e8b0310b3687cf083ebaecf1e4bc8a84aeaf /keyboards/hhkb_lite_2/config.h
parent0d65bbaa44b8b911744b5496fc9d8fca181d6ef5 (diff)
downloadqmk_firmware-4237d35e83826d0d8949a45dffa27d6c68d3d4f9.tar.gz
qmk_firmware-4237d35e83826d0d8949a45dffa27d6c68d3d4f9.zip
[Keyboard] HHKB Lite 2 (#9188)
* Initial commit for HHKB Lite 2 * Rearrange keymap * Clean up config * Fix pin assignments * Code and filename cleanup * Add README * Apply suggestions from code review Code cleanup * Update keyboards/hhkb_lite_2/README.md Documentation cleanup * Change Vendor ID to unused * One more LAYOUT * Via keymap for HHKB Lite 2 * Remove redundant keymap.c * Add README for Via keymap * Fix vendorId for Via keymap * Apply suggestions from code review Cleanup based on review feedback * Clean up via keymap makefile rules * Switch to C keymap instead of JSON for Via layout * Move bootmagic key config to main Moved to main keyboard config to be shared by all keymaps. * Address PR feedback * Reformat config comments * Format rules.mk comments * Rename README -> readme * Use `make` instead of `qmk` in examples
Diffstat (limited to 'keyboards/hhkb_lite_2/config.h')
-rw-r--r--keyboards/hhkb_lite_2/config.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/keyboards/hhkb_lite_2/config.h b/keyboards/hhkb_lite_2/config.h
new file mode 100644
index 000000000..d9dd64195
--- /dev/null
+++ b/keyboards/hhkb_lite_2/config.h
@@ -0,0 +1,29 @@
1#pragma once
2
3#include "config_common.h"
4
5/* USB Device descriptor parameter */
6#define VENDOR_ID 0x88B2
7#define PRODUCT_ID 0x88B2
8#define DEVICE_VER 0x0002
9#define MANUFACTURER PFU
10#define PRODUCT HHKB Lite 2
11
12/* key matrix size */
13#define MATRIX_ROWS 8
14#define MATRIX_COLS 14
15
16/* key matrix pins */
17#define MATRIX_ROW_PINS { F5, F4, F1, F0, B0, B1, B2, B3 }
18#define MATRIX_COL_PINS { F6, F7, B6, B5, B4, D7, D6, D4, D5, C7, C6, D3, D2, D1}
19#define UNUSED_PINS
20
21/* COL2ROW or ROW2COL */
22#define DIODE_DIRECTION COL2ROW
23
24/* Set 0 if debouncing isn't needed */
25#define DEBOUNCE 5
26
27/* Bootmagic keys are non-standard because of matrix */
28#define BOOTMAGIC_LITE_ROW 5
29#define BOOTMAGIC_LITE_COLUMN 9