BRT Community
General Category => Discussion - EVE => Topic started by: Cyrilou on December 10, 2020, 01:24:50 PM
-
I want to control backlight level of my screen with this function :
In C file:
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
}
In H file:
#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
But I get an error that I can't resolve:
"C:/Program Files (x86)/EVE Screen Designer/NewProject3/Usr_AnimateLogo.h:16: error: ',' expected (got "*")"
I don't understand what that means?