diff options
Diffstat (limited to 'keyboards/mlego/m65/rev2/config.h')
| -rw-r--r-- | keyboards/mlego/m65/rev2/config.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/keyboards/mlego/m65/rev2/config.h b/keyboards/mlego/m65/rev2/config.h new file mode 100644 index 000000000..a548b0182 --- /dev/null +++ b/keyboards/mlego/m65/rev2/config.h | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021-2022 Alin M Elena <alinm.elena@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 | #define DEVICE_VER 0x0002 | ||
| 21 | #define PRODUCT_ID 0x6060 | ||
| 22 | |||
| 23 | #define LED_NUM_LOCK_PIN B12 | ||
| 24 | #define LED_SCROLL_LOCK_PIN B13 | ||
| 25 | #define LED_CAPS_LOCK_PIN B2 | ||
| 26 | |||
| 27 | // 0 1 2 3 4 | ||
| 28 | #define MATRIX_ROW_PINS \ | ||
| 29 | { B11, B0, B1, A2, A3 } | ||
| 30 | // 0 1 2 3 4 5 6 7 8 9 10 11 12 | ||
| 31 | #define MATRIX_COL_PINS \ | ||
| 32 | { A10, A15, B3, B4, B5, B9, B8, B7, B6, C15, A0, A7, B10 } | ||
| 33 | |||
| 34 | #define ENCODERS_PAD_A \ | ||
| 35 | { A8 } | ||
| 36 | #define ENCODERS_PAD_B \ | ||
| 37 | { A9 } | ||
| 38 | |||
| 39 | #define RGB_DI_PIN B15 | ||
| 40 | |||
| 41 | #define UNUSED_PINS | ||
| 42 | #define RGBLIGHT_LAYERS | ||
| 43 | |||
| 44 | #define ENCODER_RESOLUTION 4 | ||
| 45 | |||
| 46 | #undef RGBLED_NUM | ||
| 47 | #define RGBLED_NUM 20 | ||
| 48 | #define RGBLIGHT_EFFECT_BREATHING | ||
| 49 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 50 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 51 | #define RGBLIGHT_EFFECT_SNAKE | ||
| 52 | #define RGBLIGHT_EFFECT_KNIGHT | ||
| 53 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 54 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 55 | #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 56 | #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 57 | #define RGBLIGHT_EFFECT_TWINKLE | ||
| 58 | #define RGBLIGHT_HUE_STEP 8 | ||
| 59 | #define RGBLIGHT_SAT_STEP 8 | ||
| 60 | |||
| 61 | #define EEPROM_PAGE_SIZE | ||
| 62 | #define FEE_PAGE_SIZE 0x800 | ||
| 63 | #define FEE_PAGE_COUNT 4 | ||
| 64 | |||
| 65 | #define FEE_MCU_FLASH_SIZE_IGNORE_CHECK | ||
| 66 | #define FEE_MCU_FLASH_SIZE \ | ||
| 67 | ({ \ | ||
| 68 | uint16_t flash_size = *(uint16_t*)FLASHSIZE_BASE; \ | ||
| 69 | (flash_size <= 512) ? flash_size : 512; \ | ||
| 70 | }) | ||
