16
Discussion - EVE / cmd_fillwidth not supported by ESD label in ESD 4.10
« on: April 08, 2021, 03:36:14 PM »
Function is declared but not used and it's the same for OPT_FILL options argument.
Welcome to the Bridgetek Community!
Please read our Welcome Note
Technical Support enquires
please contact the team @ Bridgetek Support
Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology
void APP_Screen_AdjustBrightness(Usr_Settings *context, int percentlevel)
{
Ft_Gpu_Hal_Context_t *phost = Ft_Esd_GetHost();
uint8_t Value = 0x80;//0 to 128
if(PercentLevel<=100)
{
Value = (uint8_t)((PercentLevel*128)/100);
}
EVE_Hal_wr8(phost, REG_PWM_DUTY, Value); // Backlight PWM duty
}
#include "Ft_Esd.h"
ESD_METHOD(APP_Screen_AdjustBrightness, Context = Usr_Settings, Type = void)
ESD_PARAMETER(percentlevel, Type = int, Default = 100, Min = 0, Max = 100)
void APP_Screen_AdjustBrightness(Usr_Settings *context, int percentlevel); //error here