|
| 1 | +/* |
| 2 | +Copyright 2022 Alexander Lee <[email protected]> |
| 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 0x4358 // "CX" - chlx |
| 24 | +#define PRODUCT_ID 0x0602 |
| 25 | +#define DEVICE_VER 0x0100 |
| 26 | +#define MANUFACTURER chlx bsmt |
| 27 | +#define PRODUCT chlx str.merro60 |
| 28 | + |
| 29 | +/* key matrix size */ |
| 30 | +#define MATRIX_ROWS 10 |
| 31 | +#define MATRIX_COLS 7 |
| 32 | + |
| 33 | +/* |
| 34 | + * Keyboard Matrix Assignments |
| 35 | + * |
| 36 | + * Change this to how you wired your keyboard |
| 37 | + * COLS: AVR pins used for columns, left to right |
| 38 | + * ROWS: AVR pins used for rows, top to bottom |
| 39 | + * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) |
| 40 | + * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) |
| 41 | + * |
| 42 | + */ |
| 43 | +#define MATRIX_ROW_PINS { C6, C7, F7, F6, F5, F4, F1, F0, B3, B7 } |
| 44 | +#define MATRIX_COL_PINS { D0, D1, D2, E6, B0, B1, B2 } |
| 45 | +#define UNUSED_PINS |
| 46 | +// #define UNUSED_PINS { B4, B5, B6, D4, D5, D6, D7 } |
| 47 | + |
| 48 | +/* COL2ROW, ROW2COL*/ |
| 49 | +#define DIODE_DIRECTION ROW2COL |
| 50 | + |
| 51 | +#define RGB_DI_PIN D3 |
| 52 | +#ifdef RGB_DI_PIN |
| 53 | +# define RGBLIGHT_EFFECT_BREATHING |
| 54 | +# define RGBLIGHT_EFFECT_RAINBOW_MOOD |
| 55 | +# define RGBLIGHT_EFFECT_RAINBOW_SWIRL |
| 56 | +# define RGBLIGHT_EFFECT_SNAKE |
| 57 | +# define RGBLIGHT_EFFECT_KNIGHT |
| 58 | +# define RGBLIGHT_EFFECT_CHRISTMAS |
| 59 | +# define RGBLIGHT_EFFECT_STATIC_GRADIENT |
| 60 | +# define RGBLIGHT_EFFECT_RGB_TEST |
| 61 | +# define RGBLIGHT_EFFECT_ALTERNATING |
| 62 | +# define RGBLIGHT_EFFECT_TWINKLE |
| 63 | +# define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL + 5 |
| 64 | +# define RGBLED_NUM 12 |
| 65 | +# define RGBLIGHT_LED_MAP { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 } |
| 66 | +# define RGBLIGHT_HUE_STEP 8 |
| 67 | +# define RGBLIGHT_SAT_STEP 8 |
| 68 | +# define RGBLIGHT_VAL_STEP 8 |
| 69 | +# define RGBLIGHT_SLEEP |
| 70 | +#endif |
| 71 | + |
| 72 | +/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
| 73 | +#define DEBOUNCE 5 |
| 74 | + |
| 75 | +/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
| 76 | +#define LOCKING_SUPPORT_ENABLE |
| 77 | +/* Locking resynchronize hack */ |
| 78 | +#define LOCKING_RESYNC_ENABLE |
| 79 | + |
| 80 | +/* VIA related config */ |
| 81 | +#define VIA_EEPROM_LAYOUT_OPTIONS_SIZE 2 |
0 commit comments