diff options
Diffstat (limited to 'keyboards/mt64rgb/config.h')
| -rw-r--r-- | keyboards/mt64rgb/config.h | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/keyboards/mt64rgb/config.h b/keyboards/mt64rgb/config.h new file mode 100644 index 000000000..8574d7236 --- /dev/null +++ b/keyboards/mt64rgb/config.h | |||
| @@ -0,0 +1,102 @@ | |||
| 1 | /* Copyright 2020 MT | ||
| 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 2 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 | #pragma once | ||
| 17 | |||
| 18 | #include "config_common.h" | ||
| 19 | |||
| 20 | /* USB Device descriptor parameter */ | ||
| 21 | #define VENDOR_ID 0x4D54 // "MT" | ||
| 22 | #define PRODUCT_ID 0x0001 | ||
| 23 | #define DEVICE_VER 0x0001 | ||
| 24 | #define MANUFACTURER MT | ||
| 25 | #define PRODUCT MT64RGB | ||
| 26 | |||
| 27 | |||
| 28 | /* key matrix size */ | ||
| 29 | #define MATRIX_ROWS 5 | ||
| 30 | #define MATRIX_COLS 14 | ||
| 31 | |||
| 32 | /* | ||
| 33 | * Keyboard Matrix Assignments | ||
| 34 | * | ||
| 35 | * Change this to how you wired your keyboard | ||
| 36 | * COLS: AVR pins used for columns, left to right | ||
| 37 | * ROWS: AVR pins used for rows, top to bottom | ||
| 38 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 39 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 40 | * | ||
| 41 | */ | ||
| 42 | #define MATRIX_ROW_PINS { D7, D6, D5, D3, D2 } | ||
| 43 | #define MATRIX_COL_PINS {B5, B6, C6, C7, F7, F6,F5, F4, F1, F0, B1, B2, B3, B7 } | ||
| 44 | #define UNUSED_PINS | ||
| 45 | |||
| 46 | /* COL2ROW, ROW2COL*/ | ||
| 47 | #define DIODE_DIRECTION COL2ROW | ||
| 48 | |||
| 49 | #ifdef RGB_MATRIX_ENABLE | ||
| 50 | #define RGB_MATRIX_KEYPRESSES | ||
| 51 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
| 52 | #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS | ||
| 53 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 160 | ||
| 54 | #define RGB_MATRIX_LED_PROCESS_LIMIT 20 | ||
| 55 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | ||
| 56 | #define DRIVER_ADDR_1 0b1010000 | ||
| 57 | #define DRIVER_ADDR_2 0b1010000 | ||
| 58 | |||
| 59 | #define DRIVER_COUNT 2 | ||
| 60 | #define DRIVER_1_LED_TOTAL 64 | ||
| 61 | #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
| 62 | |||
| 63 | |||
| 64 | #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE | ||
| 65 | #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS | ||
| 66 | #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS | ||
| 67 | #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS | ||
| 68 | #define DISABLE_RGB_MATRIX_BAND_SAT | ||
| 69 | #define DISABLE_RGB_MATRIX_BAND_VAL | ||
| 70 | #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | ||
| 71 | #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL | ||
| 72 | #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT | ||
| 73 | #define DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL | ||
| 74 | #define DISABLE_RGB_MATRIX_DIGITAL_RAIN | ||
| 75 | #define DISABLE_RGB_MATRIX_TYPING_HEATMAP | ||
| 76 | #define DISABLE_RGB_MATRIX_RAINBOW_BEACON | ||
| 77 | #define DISABLE_RGB_MATRIX_ALPHAS_MODS | ||
| 78 | #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS | ||
| 79 | #define DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL | ||
| 80 | |||
| 81 | #endif | ||
| 82 | |||
| 83 | #define RGB_DI_PIN B0 | ||
| 84 | #ifdef RGB_DI_PIN | ||
| 85 | #define RGBLIGHT_ANIMATIONS | ||
| 86 | #define RGBLED_NUM 18 | ||
| 87 | #define RGBLIGHT_HUE_STEP 5 | ||
| 88 | #define RGBLIGHT_SAT_STEP 5 | ||
| 89 | #define RGBLIGHT_VAL_STEP 5 | ||
| 90 | #define RGBLIGHT_SLEEP | ||
| 91 | #endif | ||
| 92 | |||
| 93 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 94 | #define DEBOUNCE 5 | ||
| 95 | |||
| 96 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 97 | #define LOCKING_SUPPORT_ENABLE | ||
| 98 | /* Locking resynchronize hack */ | ||
| 99 | #define LOCKING_RESYNC_ENABLE | ||
| 100 | |||
| 101 | /* VIA related config */ | ||
| 102 | #define VIA_EEPROM_LAYOUT_OPTIONS_SIZE 2 | ||
