Commit bfcb8b08 authored by 梁百峰's avatar 梁百峰

feat:白天,夜间亮度显示等级条,分别显示

parent 0b97e47d
......@@ -4067,51 +4067,104 @@ void Gui_Backlight(INT8U Backlight)
{
Draw_Image_Local(( uint8_t * )Set_icon_01_X103_Y76, 103, 76);
Draw_Image_Local(( uint8_t * )Set_CN_01_X85_Y128, 85, 128);
if ( g_Light.Duty == 0 )
if((Get_TelltalesLedSts(m_LED_Park_Lamp) == 1) || (Get_TelltalesLedSts(m_LED_High_Lamp) == 1))
{
Draw_Image_Local(( uint8_t * )Set_CN_01_1_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_0_X0_Y0, 114, 191);
}
else if ( g_Light.Duty == 150 )
{
Draw_Image_Local(( uint8_t * )Set_CN_01_2_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_1_X0_Y0, 114, 191);
}
else if ( g_Light.Duty == 200 )
{
Draw_Image_Local(( uint8_t * )Set_CN_01_3_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_2_X0_Y0, 114, 191);
}
else if ( g_Light.Duty == 250 )
{
Draw_Image_Local(( uint8_t * )Set_CN_01_4_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_3_X0_Y0, 114, 191);
}
else if ( g_Light.Duty == 300 )
{
Draw_Image_Local(( uint8_t * )Set_CN_01_5_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_4_X0_Y0, 114, 191);
}
else if ( g_Light.Duty == 350 )
{
Draw_Image_Local(( uint8_t * )Set_CN_01_6_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_5_X0_Y0, 114, 191);
}
else if ( g_Light.Duty == 400 )
{
Draw_Image_Local(( uint8_t * )Set_CN_01_7_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_6_X0_Y0, 114, 191);
}
else if ( g_Light.Duty == 450 )
{
Draw_Image_Local(( uint8_t * )Set_CN_01_8_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_7_X0_Y0, 114, 191);
if ((g_nightLight.Duty == 0))
{
Draw_Image_Local(( uint8_t * )Set_CN_01_1_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_0_X0_Y0, 114, 191);
}
else if ((g_nightLight.Duty == 100) )
{
Draw_Image_Local(( uint8_t * )Set_CN_01_2_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_1_X0_Y0, 114, 191);
}
else if ((g_nightLight.Duty == 200) )
{
Draw_Image_Local(( uint8_t * )Set_CN_01_3_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_2_X0_Y0, 114, 191);
}
else if ((g_nightLight.Duty == 250) )
{
Draw_Image_Local(( uint8_t * )Set_CN_01_4_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_3_X0_Y0, 114, 191);
}
else if ((g_nightLight.Duty == 300) )
{
Draw_Image_Local(( uint8_t * )Set_CN_01_5_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_4_X0_Y0, 114, 191);
}
else if ((g_nightLight.Duty == 350) )
{
Draw_Image_Local(( uint8_t * )Set_CN_01_6_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_5_X0_Y0, 114, 191);
}
else if ((g_nightLight.Duty == 400) )
{
Draw_Image_Local(( uint8_t * )Set_CN_01_7_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_6_X0_Y0, 114, 191);
}
else if ((g_nightLight.Duty == 450) )
{
Draw_Image_Local(( uint8_t * )Set_CN_01_8_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_7_X0_Y0, 114, 191);
}
else if ((g_nightLight.Duty == 500) )
{
Draw_Image_Local(( uint8_t * )Set_CN_01_9_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_8_X0_Y0, 114, 191);
}
}
else if ( g_Light.Duty == 500 )
else
{
Draw_Image_Local(( uint8_t * )Set_CN_01_9_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_8_X0_Y0, 114, 191);
if ( (g_Light.Duty == 0))
{
Draw_Image_Local(( uint8_t * )Set_CN_01_1_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_0_X0_Y0, 114, 191);
}
else if ( (g_Light.Duty == 100))
{
Draw_Image_Local(( uint8_t * )Set_CN_01_2_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_1_X0_Y0, 114, 191);
}
else if ( (g_Light.Duty == 200))
{
Draw_Image_Local(( uint8_t * )Set_CN_01_3_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_2_X0_Y0, 114, 191);
}
else if ( (g_Light.Duty == 250))
{
Draw_Image_Local(( uint8_t * )Set_CN_01_4_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_3_X0_Y0, 114, 191);
}
else if ( (g_Light.Duty == 300))
{
Draw_Image_Local(( uint8_t * )Set_CN_01_5_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_4_X0_Y0, 114, 191);
}
else if ( (g_Light.Duty == 350))
{
Draw_Image_Local(( uint8_t * )Set_CN_01_6_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_5_X0_Y0, 114, 191);
}
else if ( (g_Light.Duty == 400))
{
Draw_Image_Local(( uint8_t * )Set_CN_01_7_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_6_X0_Y0, 114, 191);
}
else if ( (g_Light.Duty == 450))
{
Draw_Image_Local(( uint8_t * )Set_CN_01_8_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_7_X0_Y0, 114, 191);
}
else if ( (g_Light.Duty == 500))
{
Draw_Image_Local(( uint8_t * )Set_CN_01_9_X35_Y169, 35, 169);
Draw_Image_Local(( uint8_t * )Number_18_White_8_X0_Y0, 114, 191);
}
}
}
/***********************************************************************************************************/
void Gui_Volume(INT8U Volume)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment