2019-11-27 15:54:02 +00:00
|
|
|
/**
|
|
|
|
* config.h
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-01-19 13:23:07 +00:00
|
|
|
#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE
|
|
|
|
|
2019-11-27 15:54:02 +00:00
|
|
|
/* key matrix size */
|
|
|
|
#define MATRIX_ROWS 5
|
|
|
|
#define MATRIX_COLS 15
|
|
|
|
|
|
|
|
// i2c setting
|
2021-09-12 14:41:33 +00:00
|
|
|
#define I2C1_SCL_PIN B8
|
|
|
|
#define I2C1_SDA_PIN B9
|
2019-11-27 15:54:02 +00:00
|
|
|
#define I2C1_CLOCK_SPEED 400000
|
|
|
|
#define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_2
|
|
|
|
#define PAL_MODE_STM32_ALTERNATE_OPENDRAIN (PAL_MODE_ALTERNATE(4) | PAL_STM32_OTYPE_OPENDRAIN)
|
|
|
|
|
|
|
|
// rgb matrix setting
|
2023-10-21 11:41:59 +00:00
|
|
|
#define IS31FL3731_I2C_ADDRESS_1 IS31FL3731_I2C_ADDRESS_GND
|
|
|
|
#define IS31FL3731_I2C_ADDRESS_2 IS31FL3731_I2C_ADDRESS_SDA
|