config.h (2239B)
1 /* 2 Copyright 2022 Moritz Plattner 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 This program is distributed in the hope that it will be useful, 8 but WITHOUT ANY WARRANTY; without even the implied warranty of 9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 GNU General Public License for more details. 11 You should have received a copy of the GNU General Public License 12 along with this program. If not, see <http://www.gnu.org/licenses/>. 13 */ 14 15 #pragma once 16 17 /* i2C Config */ 18 #define I2C_DRIVER I2CD1 19 #define I2C1_SCL_PIN B6 20 #define I2C1_SDA_PIN B7 21 #define I2C1_SCL_PAL_MODE 4 22 #define I2C1_SDA_PAL_MODE 4 23 24 #define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_16_9 25 #define I2C1_CLOCK_SPEED 400000 26 27 #define IS31FL3733_I2C_ADDRESS_1 IS31FL3733_I2C_ADDRESS_GND_GND 28 #define IS31FL3733_I2C_ADDRESS_2 IS31FL3733_I2C_ADDRESS_GND_VCC 29 #define IS31FL3733_SDB_PIN B9 30 31 #define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_CUSTOM_SINGLE_COLOR_RAINDROPS 32 33 #define ENABLE_RGB_MATRIX_CUSTOM_SINGLE_COLOR_RAINDROPS // 0 Single color raindrops, random keys lighting up at randomized intensity 34 #define ENABLE_RGB_MATRIX_CUSTOM_STATIC_GAME_MODE // - Game mode sets the entire matrix (static) once, then stops LED refreshes 35 36 /* Define indicator LED indices, used for lighting effects */ 37 #define W_LED_INDEX 33 38 #define A_LED_INDEX 47 39 #define S_LED_INDEX 48 40 #define D_LED_INDEX 49 41 42 #define CAPS_LED_INDEX 46 43 44 #define WIN_LED_INDEX 76 45 46 #define ANV_A_LED_INDEX 15 47 #define ANV_N_LED_INDEX 30 48 #define ANV_V_LED_INDEX 45 49 #define ANV_I_LED_INDEX 59 50 #define ANV_L_LED_INDEX 74 51 52 #define NUM_1_LED_INDEX 17 53 #define NUM_2_LED_INDEX 18 54 #define NUM_3_LED_INDEX 19 55 #define NUM_4_LED_INDEX 20 56 #define NUM_5_LED_INDEX 21 57 58 #define M_LED_INDEX 68 59 #define K_LED_INDEX 54 60 #define O_LED_INDEX 40 61 #define NUM_0_LED_INDEX 26 62 #define P_LED_INDEX 41 63 #define SCLN_LED_INDEX 56 64 #define SLSH_LED_INDEX 71 65 66 /* Since the typing heatmap is broken on duplex matrix boards, force it to "slim" mode */ 67 #ifdef ENABLE_RGB_MATRIX_TYPING_HEATMAP 68 #define RGB_MATRIX_TYPING_HEATMAP_SLIM 69 #endif