2019-11-27 21:54:02 +06:00
|
|
|
/**
|
|
|
|
* config.h
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-01-19 19:23:07 +06:00
|
|
|
#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE
|
|
|
|
|
2019-11-27 21:54:02 +06:00
|
|
|
/* key matrix size */
|
|
|
|
#define MATRIX_ROWS 5
|
|
|
|
#define MATRIX_COLS 15
|
|
|
|
|
|
|
|
// i2c setting
|
2021-09-12 20:41:33 +06:00
|
|
|
#define I2C1_SCL_PIN B8
|
|
|
|
#define I2C1_SDA_PIN B9
|
2019-11-27 21:54:02 +06: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 17:41:59 +06:00
|
|
|
#define IS31FL3731_I2C_ADDRESS_1 IS31FL3731_I2C_ADDRESS_GND
|
|
|
|
#define IS31FL3731_I2C_ADDRESS_2 IS31FL3731_I2C_ADDRESS_SDA
|