How to set LCD brightness in STM32U5G9J-DK2 board
I have a new STM32U5G9J-DK2 board. I have to port an application running on STM32H747I-DiSCO board.
I have a big problem with setting brightness in the new board. In STM32H747I-DiSCO app I used:
extern "C"
{
void LCD_SetBrightness(int value);
}The LCD_SetBrightness() function is implemented in TouchGFXHAL.cpp file for the H7 processor. The same thing does not work with U5 processor because the TouchGFXHAL.cpp file does not contain the LCD_SetBrightness() function.
So, the question is how I can set the LCD brightness in STM32U5G9J-DK2 board.
I tried using the brightness control implemented in Board Support Package but calling BSP_LCD_SetBrightness(0, 50) (50% brightness) causes Hard_Fault() interrupt... Nice!
Can somebody help? Thanks,
Louis


