2023-10-12 23:35:39 +02:00
|
|
|
// Copyright 2023 jonylee@hfd (@jonylee1986)
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define ENCODER_DEFAULT_POS 0x3
|
|
|
|
|
|
|
|
/* I2C Config for LED Driver */
|
2023-10-22 19:32:27 +02:00
|
|
|
#define SNLED27351_I2C_ADDRESS_1 SNLED27351_I2C_ADDRESS_GND
|
|
|
|
#define SNLED27351_I2C_ADDRESS_2 SNLED27351_I2C_ADDRESS_VDDIO
|
2023-10-12 23:35:39 +02:00
|
|
|
#define I2C1_SDA_PIN B7
|
|
|
|
#define I2C1_SCL_PIN B6
|
|
|
|
#define I2C1_SCL_PAL_MODE 4
|
|
|
|
#define I2C1_OPMODE OPMODE_I2C
|
|
|
|
#define I2C1_CLOCK_SPEED 400000
|
|
|
|
|
|
|
|
#define RGB_MATRIX_LED_COUNT 92
|
2023-12-20 03:31:50 +01:00
|
|
|
#define RGB_MATRIX_SLEEP
|
2023-10-12 23:35:39 +02:00
|
|
|
|
|
|
|
/* SPI Config for spi flash*/
|
|
|
|
#define SPI_DRIVER SPIDQ
|
|
|
|
#define SPI_SCK_PIN B3
|
|
|
|
#define SPI_MOSI_PIN B5
|
|
|
|
#define SPI_MISO_PIN B4
|
|
|
|
#define SPI_MOSI_PAL_MODE 5
|
|
|
|
|
|
|
|
#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN C12
|
|
|
|
|
|
|
|
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
|
|
|
#define RGB_MATRIX_KEYPRESSES
|
|
|
|
#define RGB_MATRIX_KEYRELEASES
|