fix(pa01): backlight related issues (#6826)
This commit is contained in:
@@ -1414,8 +1414,6 @@ void edgeTxInit()
|
|||||||
lcdSetContrast();
|
lcdSetContrast();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
BACKLIGHT_ENABLE(); // we start the backlight during the startup animation
|
|
||||||
|
|
||||||
#if defined(STARTUP_ANIMATION)
|
#if defined(STARTUP_ANIMATION)
|
||||||
if (WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) {
|
if (WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) {
|
||||||
pwrOn();
|
pwrOn();
|
||||||
@@ -1498,7 +1496,6 @@ void edgeTxInit()
|
|||||||
|
|
||||||
currentBacklightBright = requiredBacklightBright = g_eeGeneral.getBrightness();
|
currentBacklightBright = requiredBacklightBright = g_eeGeneral.getBrightness();
|
||||||
|
|
||||||
|
|
||||||
referenceSystemAudioFiles();
|
referenceSystemAudioFiles();
|
||||||
audioQueue.start();
|
audioQueue.start();
|
||||||
BACKLIGHT_ENABLE();
|
BACKLIGHT_ENABLE();
|
||||||
|
|||||||
@@ -52,9 +52,10 @@ void backlightLowInit()
|
|||||||
|
|
||||||
void backlightInit()
|
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);
|
stm32_pulse_config_output(&_bl_timer, true, LL_TIM_OCMODE_PWM1, 0);
|
||||||
LL_TIM_SetAutoReload(_bl_timer.TIMx, 100);
|
LL_TIM_SetAutoReload(_bl_timer.TIMx, 100);
|
||||||
|
stm32_pulse_set_cmp_val(&_bl_timer, 0);
|
||||||
LL_TIM_EnableCounter(_bl_timer.TIMx);
|
LL_TIM_EnableCounter(_bl_timer.TIMx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -269,7 +269,7 @@
|
|||||||
#define LCD_SPI_CLK GPIO_PIN(GPIOG, 11)
|
#define LCD_SPI_CLK GPIO_PIN(GPIOG, 11)
|
||||||
#define LCD_SPI_MOSI GPIO_PIN(GPIOB, 5)
|
#define LCD_SPI_MOSI GPIO_PIN(GPIOB, 5)
|
||||||
#define LCD_SPI_MISO GPIO_PIN(GPIOG, 9)
|
#define LCD_SPI_MISO GPIO_PIN(GPIOG, 9)
|
||||||
#define LCD_SPI_BAUD 100000000
|
#define LCD_SPI_BAUD 50000000
|
||||||
|
|
||||||
// Backlight
|
// Backlight
|
||||||
#define BACKLIGHT_GPIO GPIO_PIN(GPIOB, 03) // TIM2_CH2
|
#define BACKLIGHT_GPIO GPIO_PIN(GPIOB, 03) // TIM2_CH2
|
||||||
|
|||||||
Reference in New Issue
Block a user