fix(pa01): backlight related issues (#6826)
This commit is contained in:
@@ -52,9 +52,10 @@ void backlightLowInit()
|
||||
|
||||
void backlightInit()
|
||||
{
|
||||
stm32_pulse_init(&_bl_timer, 10000);
|
||||
stm32_pulse_init(&_bl_timer, 100*20000);
|
||||
stm32_pulse_config_output(&_bl_timer, true, LL_TIM_OCMODE_PWM1, 0);
|
||||
LL_TIM_SetAutoReload(_bl_timer.TIMx, 100);
|
||||
stm32_pulse_set_cmp_val(&_bl_timer, 0);
|
||||
LL_TIM_EnableCounter(_bl_timer.TIMx);
|
||||
}
|
||||
|
||||
|
||||
@@ -269,7 +269,7 @@
|
||||
#define LCD_SPI_CLK GPIO_PIN(GPIOG, 11)
|
||||
#define LCD_SPI_MOSI GPIO_PIN(GPIOB, 5)
|
||||
#define LCD_SPI_MISO GPIO_PIN(GPIOG, 9)
|
||||
#define LCD_SPI_BAUD 100000000
|
||||
#define LCD_SPI_BAUD 50000000
|
||||
|
||||
// Backlight
|
||||
#define BACKLIGHT_GPIO GPIO_PIN(GPIOB, 03) // TIM2_CH2
|
||||
|
||||
Reference in New Issue
Block a user