Question
How to turn on/off LCD backlight in STM32F769-Discovery board?
Hi,
I am new on microcontrollers and I am starting with STM32F769-Discovery. I need to turn on/off the LCD backlight.
I have been taking a look on schematics and it seems it can be done by LCD_BL_CTRL, which is connected to PI14.
However, I have no clear how to configuring PI14 to use it to control the backlight. This is what I have
__HAL_RCC_GPIOI_CLK_ENABLE();
GPIO_InitTypeDef GPIO_InitStructure;
GPIO_InitStructure.Pin = GPIO_PIN_14;
GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP;
//GPIO_MODE_OUTPUT_OD not working too
HAL_GPIO_Init(GPIOI,&GPIO_InitStructure);Any idea?
Kind Regards,
Rafa
