TM_LCD_Result_t TM_LCD_SetLayer2Opacity(uint8_t opacity) { /* Set opacity */ HAL_LTDC_SetAlpha(<DCHandle, opacity, 1); /* Return OK */ return TM_LCD_Result_Ok; }
/** * @brief Configures the transparency. * @param LayerIndex: Layer foreground or background. * @param Transparency: Transparency * This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF * @retval None */ void BSP_LCD_SetTransparency(uint32_t LayerIndex, uint8_t Transparency) { HAL_LTDC_SetAlpha(&hLtdcHandler, Transparency, LayerIndex); }
/** * @brief Configures the transparency. * @param LayerIndex: Layer foreground or background. * @param Transparency: Transparency * This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF * @retval None */ void BSP_LCD_SetTransparency(uint32_t LayerIndex, uint8_t Transparency) { HAL_LTDC_SetAlpha(&hltdc_eval, Transparency, LayerIndex); }