diff options
author | Takuya Urakawa <urkwtky@gmail.com> | 2022-03-07 12:27:41 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-06 19:27:41 -0800 |
commit | 5de86a05c31482b5c770888e33c98d933c42b34c (patch) | |
tree | 6c314f1e5d33fafe53c0ac76d14f4cc5f06600ce /keyboards/dm9records/lain/config.h | |
parent | de10757f057d31a148d0b881535d875ff4af5c9c (diff) |
[Keyboard] Add Lain keyboard (#16345)
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/dm9records/lain/config.h')
-rw-r--r-- | keyboards/dm9records/lain/config.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/keyboards/dm9records/lain/config.h b/keyboards/dm9records/lain/config.h new file mode 100644 index 0000000000..8bccf4bbb5 --- /dev/null +++ b/keyboards/dm9records/lain/config.h @@ -0,0 +1,47 @@ +// Copyright 2022 Takuya Urakawa @hsgw (dm9records.com, 5z6p.com) +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0x04D8 +#define PRODUCT_ID 0xE8F4 +#define DEVICE_VER 0x0001 +#define MANUFACTURER Dm9Records +#define PRODUCT lain + +/* key matrix size */ +#define MATRIX_ROWS 4 +#define MATRIX_COLS 13 + +/* + * Keyboard Matrix Assignments + */ +#define MATRIX_ROW_PINS \ + { C6, D7, D6, D4 } +#define MATRIX_COL_PINS \ + { C7, F7, F6, F5, F4, F1, F0, B3, B2, B1, D2, D3, D5 } + +/* COL2ROW, ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +/* LED Settings */ +#define LED_NUM 3 +#define LED_PINS \ + { B6, B5, B4 } + +/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ +#define DEBOUNCE 5 + +/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ +#define LOCKING_SUPPORT_ENABLE +/* Locking resynchronize hack */ +#define LOCKING_RESYNC_ENABLE + +/* disable these deprecated features by default */ +#define NO_ACTION_MACRO +#define NO_ACTION_FUNCTION + +#define DYNAMIC_KEYMAP_LAYER_COUNT 6 |