|
| 1 | +/* |
| 2 | +Copyright 2021 John Mueller |
| 3 | +
|
| 4 | +This program is free software: you can redistribute it and/or modify |
| 5 | +it under the terms of the GNU General Public License as published by |
| 6 | +the Free Software Foundation, either version 2 of the License, or |
| 7 | +(at your option) any later version. |
| 8 | +
|
| 9 | +This program is distributed in the hope that it will be useful, |
| 10 | +but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | +GNU General Public License for more details. |
| 13 | +
|
| 14 | +You should have received a copy of the GNU General Public License |
| 15 | +along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | +*/ |
| 17 | +#pragma once |
| 18 | + |
| 19 | +#include "config_common.h" |
| 20 | + |
| 21 | +/* USB Device descriptor parameter */ |
| 22 | +#define VENDOR_ID 0x1209 |
| 23 | +#define PRODUCT_ID 0x3304 |
| 24 | +#define DEVICE_VER 0x0001 |
| 25 | +#define MANUFACTURER 3-Key-Ecosystem |
| 26 | +#define PRODUCT 2key2 |
| 27 | + |
| 28 | +/* key matrix size */ |
| 29 | +#define MATRIX_ROWS 1 |
| 30 | +#define MATRIX_COLS 2 |
| 31 | + |
| 32 | +/* Keyboard Matrix Assignments */ |
| 33 | +#define MATRIX_ROW_PINS { F6 } |
| 34 | +#define MATRIX_COL_PINS { F4, D7 } |
| 35 | +#define UNUSED_PINS |
| 36 | + |
| 37 | +// LED on kbmount base board is on B7 |
| 38 | +#define LED_CAPS_LOCK_PIN B7 // onboard LED for testing |
| 39 | + |
| 40 | +/* COL2ROW, ROW2COL */ |
| 41 | +#define DIODE_DIRECTION COL2ROW |
| 42 | + |
| 43 | +/* RGB matrix key backlighting */ |
| 44 | +#define RGB_DI_PIN B2 |
| 45 | +#define DRIVER_LED_TOTAL 2 |
| 46 | +#define RGB_MATRIX_KEYPRESSES |
| 47 | +#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_REACTIVE |
| 48 | +#define RGB_MATRIX_STARTUP_HUE 90 |
| 49 | +#define RGB_MATRIX_STARTUP_SPD 20 |
| 50 | +#define RGB_MATRIX_STARTUP_VAL 128 |
| 51 | +#define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 52 | +#define RGB_DISABLE_WHEN_USB_SUSPENDED true |
| 53 | + |
| 54 | +/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
| 55 | +#define DEBOUNCE 5 |
| 56 | + |
| 57 | +/* disable these deprecated features by default */ |
| 58 | +#define NO_ACTION_MACRO |
| 59 | +#define NO_ACTION_FUNCTION |
0 commit comments