|
| 1 | +/* |
| 2 | +Copyright 2021 Leon Stubbig <leonskeyboards@gmail.com> |
| 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 | + |
| 18 | +#pragma once |
| 19 | + |
| 20 | +#include "config_common.h" |
| 21 | + |
| 22 | +// USB Device descriptor parameter |
| 23 | +#define VENDOR_ID 0x0801 |
| 24 | +#define PRODUCT_ID 0x1133 |
| 25 | +#define DEVICE_VER 0x0001 |
| 26 | +#define MANUFACTURER LS Keyboards |
| 27 | +#define PRODUCT Macropad1x5 (rev1) |
| 28 | +#define DESCRIPTION 1x5 Macropad with Rotary Encoder |
| 29 | + |
| 30 | +// Keyboard Matrix Assignments |
| 31 | +#define MATRIX_ROWS 1 |
| 32 | +#define MATRIX_COLS 5 |
| 33 | +#define DIODE_DIRECTION COL2ROW |
| 34 | +#define MATRIX_COL_PINS { D1, D7, E6, B4, B5 } |
| 35 | +#define MATRIX_ROW_PINS { F7 } |
| 36 | + |
| 37 | +// layer toggle TT() |
| 38 | +#define TAPPING_TOGGLE 3 |
| 39 | + |
| 40 | +// encoder |
| 41 | +#define ENCODER_RESOLUTION 4 |
| 42 | +#define ENCODERS_PAD_A { D0 } |
| 43 | +#define ENCODERS_PAD_B { D4 } |
| 44 | + |
| 45 | +// backlight |
| 46 | +#define BACKLIGHT_PIN C6 |
| 47 | +#define BACKLIGHT_LEVELS 10 |
| 48 | +#define BACKLIGHT_BREATHING |
| 49 | +#define BREATHING_PERIOD 6 |
| 50 | + |
| 51 | +// RGB underglow |
| 52 | +#define RGB_DI_PIN F6 |
| 53 | +#define RGBLED_NUM 6 |
| 54 | +#define RGBLIGHT_ANIMATIONS |
| 55 | + |
| 56 | +/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
| 57 | +#define DEBOUNCE 5 |
| 58 | + |
| 59 | +/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
| 60 | +#define LOCKING_SUPPORT_ENABLE |
| 61 | +/* Locking resynchronize hack */ |
| 62 | +#define LOCKING_RESYNC_ENABLE |
| 63 | + |
| 64 | +/* Vial defines*/ |
| 65 | +#define DYNAMIC_KEYMAP_LAYER_COUNT 4 |
| 66 | +#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 } |
| 67 | +#define VIAL_UNLOCK_COMBO_COLS { 1, 4 } |
| 68 | +#define VIAL_KEYBOARD_UID {0x05, 0xE2, 0xE2, 0xAE, 0xF6, 0xED, 0xBE, 0x65} |
| 69 | +#define VIAL_ENCODER_DEFAULT { KC_VOLD, KC_VOLU, BL_DEC, BL_INC, LCTL(KC_MINUS), LCTL(KC_PLUS), KC_TRNS, KC_TRNS } |
0 commit comments