Code: Select all
void InitVTFTStack() {
Init_MCU();
Init_Ext_Mem();
SPI_Set_Active(SPI1_Read, SPI1_Write);
// Init all dynamic objects
InitObjects();
// Init FT800 controller core and library stack
FT800_Init();
FT800_Core_ClockSource(_FT800_CLK_SOURCE_EXTERNAL);
FT800_Core_ClockPLL(_FT800_CLK_PLL_48MHz);
// Internal modules setup
FT800_Display_SetConfig(&VTFT_FT800_CONFIG_DISPLAY);
FT800_Audio_SetConfig(&VTFT_FT800_CONFIG_AUDIO);
FT800_Sound_SetConfig(&VTFT_FT800_CONFIG_SOUND);
FT800_Interrupt_SetConfig(&VTFT_FT800_CONFIG_INTERRUPT);
FT800_PWM_SetConfig(&VTFT_FT800_CONFIG_PWM);
FT800_GPIO_SetConfig(&VTFT_FT800_CONFIG_GPIO);
FT800_Touch_SetConfig(&VTFT_FT800_CONFIG_TOUCH);
FT800_TouchTransform_SetConfig(&VTFT_FT800_CONFIG_TOUCHTRANSFORM);
// External memory setup
FT800_Register_GetExtData(VTFT_GetExtData);
// Draw start screen
//DrawScreen(&StartScreen);
}
When the DrawScreen function is called the Backlight switches off, new DL List is loaded at FT800 and display is swapped. after that the backlingt is tuned on. This is correct behavour.
But the problem is, that just after the FT800_Init(); call the backlight goes on, and it stays on untill the DrawScreen() function is called. So the big question why does the FT800_Init() turning on the backlight?