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