diff options
Diffstat (limited to 'keyboards/boston/config.h')
| -rw-r--r-- | keyboards/boston/config.h | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/keyboards/boston/config.h b/keyboards/boston/config.h new file mode 100644 index 000000000..7fa5d0ef5 --- /dev/null +++ b/keyboards/boston/config.h | |||
| @@ -0,0 +1,92 @@ | |||
| 1 | /* Copyright 2020 Pylon | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 3 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #pragma once | ||
| 18 | |||
| 19 | /* USB Device descriptor parameter */ | ||
| 20 | #define VENDOR_ID 0xAC11 | ||
| 21 | #define PRODUCT_ID 0x4175 | ||
| 22 | #define DEVICE_VER 0x0001 | ||
| 23 | #define MANUFACTURER Pylon | ||
| 24 | #define PRODUCT Boston | ||
| 25 | /* key matrix size */ | ||
| 26 | #define MATRIX_ROWS 7 | ||
| 27 | #define MATRIX_COLS 19 | ||
| 28 | |||
| 29 | #define MATRIX_COL_PINS \ | ||
| 30 | { B10, B11, B12, B13, B14, B15, A8, A9, A10, A15, B3, B4, B7, B8, B9, C14, C15, F0, A3 } | ||
| 31 | #define MATRIX_ROW_PINS \ | ||
| 32 | { B5, B6, A7, B0, B1, B2, A4 } | ||
| 33 | #define DIODE_DIRECTION COL2ROW | ||
| 34 | |||
| 35 | #define BACKLIGHT_PIN A6 | ||
| 36 | #define BACKLIGHT_PWM_DRIVER PWMD3 | ||
| 37 | #define BACKLIGHT_PWM_CHANNEL 1 | ||
| 38 | #define BACKLIGHT_PAL_MODE 1 | ||
| 39 | #define BACKLIGHT_LEVELS 6 | ||
| 40 | #define BACKLIGHT_BREATHING | ||
| 41 | #define BREATHING_PERIOD 6 | ||
| 42 | |||
| 43 | /* define if matrix has ghost */ | ||
| 44 | //#define MATRIX_HAS_GHOST | ||
| 45 | |||
| 46 | /* Set 0 if debouncing isn't needed */ | ||
| 47 | #define DEBOUNCE 5 | ||
| 48 | |||
| 49 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 50 | #define LOCKING_SUPPORT_ENABLE | ||
| 51 | /* Locking resynchronize hack */ | ||
| 52 | #define LOCKING_RESYNC_ENABLE | ||
| 53 | |||
| 54 | /* Define RGBLED */ | ||
| 55 | #define RGB_DI_PIN A5 | ||
| 56 | #define RGBLED_NUM 1 | ||
| 57 | #define RGBLIGHT_ANIMATIONS | ||
| 58 | #define RGBLIGHT_LAYERS | ||
| 59 | |||
| 60 | //The 3D-printed version of Boston uses APA106 LEDs, which are reversed | ||
| 61 | #define WS2812_BYTE_ORDER WS2812_BYTE_ORDER_RGB | ||
| 62 | |||
| 63 | /* Define encoder */ | ||
| 64 | #define ENCODERS_PAD_A \ | ||
| 65 | { C13 } | ||
| 66 | #define ENCODERS_PAD_B \ | ||
| 67 | { F1 } | ||
| 68 | #define ENCODER_RESOLUTION 2 | ||
| 69 | #define TAP_CODE_DELAY 15 | ||
| 70 | |||
| 71 | /* Lock LEDs */ | ||
| 72 | #define LED_NUM_LOCK_PIN A0 | ||
| 73 | #define LED_CAPS_LOCK_PIN A1 | ||
| 74 | #define LED_SCROLL_LOCK_PIN A2 | ||
| 75 | |||
| 76 | /* | ||
| 77 | * Feature disable options | ||
| 78 | * These options are also useful to firmware size reduction. | ||
| 79 | */ | ||
| 80 | |||
| 81 | /* disable debug print */ | ||
| 82 | //#define NO_DEBUG | ||
| 83 | |||
| 84 | /* disable print */ | ||
| 85 | //#define NO_PRINT | ||
| 86 | |||
| 87 | /* disable action features */ | ||
| 88 | //#define NO_ACTION_LAYER | ||
| 89 | //#define NO_ACTION_TAPPING | ||
| 90 | //#define NO_ACTION_ONESHOT | ||
| 91 | //#define NO_ACTION_MACRO | ||
| 92 | //#define NO_ACTION_FUNCTION | ||
