AMT630H_Datas.c 112 KB
Newer Older
1
#include "Components.h"
2 3


4
uint8_t Pic_mode = PIC_DAYTIME_CH;
5 6
uint8_t g_u8Display_Mode = ModeDAY;
uint8_t g_u8Language = CH;
7 8
uint8_t g_u8Backlight = Backlight_5 ;
uint8_t g_u8UnitSetting = Metric ;
9 10
// 菜单背景,菜单前必带
void AMT630H_GUI_BACKGRAND(void);
11 12
// 菜单调用函数
void AMT630H_GUI_SETTING(void);
13 14 15 16 17 18
// 一级菜单
void AMT630H_GUI_Quit(void);
void AMT630H_GUI_Phone_Connect(void);
void AMT630H_GUI_Fault_Information(void);
void AMT630H_GUI_Language_Information(void);
void AMT630H_GUI_Unit_Information(void);
19
void AMT630H_GUI_Display_Mode_Information(void);
20 21 22 23
void AMT630H_GUI_Backlight_Information(void);
void AMT630H_GUI_Bluetooth_Information(uint8_t sync_contacts, uint8_t Connect_ON);
void AMT630H_GUI_Clock_Information(uint8_t Clock_Hour, uint8_t Clock_Min);
// 二级菜单
24
static void AMT630H_GUI_Clock_Setting(uint8_t Clock_Hour, uint8_t Clock_Min, uint8_t Clock_BIT);       /*时钟设置*/
25
void AMT630H_GUI_Backlight_Setting(Menu_Item_en_t back_mode);                                                 /*背光设置*/
26
void AMT630H_GUI_Display_Mode_Setting(Menu_Item_en_t display_mode);                                           /*显示模式*/
27
void AMT630H_GUI_Bluetooth_Connect_Setting(uint8_t select, uint8_t sync_contacts, uint8_t Connect_ON); /*蓝牙连接*/
28 29
void AMT630H_GUI_Unit_Setting(Menu_Interface_en_t select);                                                         /*单位设置*/
void AMT630H_GUI_Language_Setting(Menu_Interface_en_t select);                                                     /*语言设置*/
30
void AMT630H_GUI_Phone_Connect_Win(void);                                                              /*手机互联*/
31
void AMT630H_GUI_ReadPosittion_Display(void);
32 33
void AMT630H_GUI_Background()
{
34 35
    if (SYS_OPR_STAT_IGN_ON)
    {
36
        AMT630H_GUI_ReadPosittion_Display();
37 38 39
    }
    else
    {
40

41 42
    }
}
43 44

/***********************************************一级菜单*******************************************/
45 46 47 48 49 50
/**
 * @brief 故障信息 一级菜单
 * @param[in] //暂无
 */
void AMT630H_GUI_Fault_Information(void)
{
51
    /*日间中文*/
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
    if (Pic_mode == PIC_DAYTIME_CH)
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0163_27_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0164_913_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0165_197_485);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0155_737_485);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0166_445_517);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0091_567_356);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0167_341_354);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0093_574_292);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0168_350_290);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0095_633_240);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0169_353_227);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0095_633_175);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0170_354_162);
    }
68 69

    /*夜间中文*/
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
    else if (Pic_mode == PIC_NIGHTTIME_CH)
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0350_27_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0351_913_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0352_197_485);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0342_737_485);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0353_445_517);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0279_567_356);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0354_341_354);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0281_574_292);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0355_350_290);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0283_633_240);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0356_353_227);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0283_633_175);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0357_354_162);
    }
}
/**
 * @brief 显示模式信息 一级菜单
 * @param[in] null
 */
91
void AMT630H_GUI_Display_Mode_Information()
92
{
93 94 95 96 97 98 99 100 101
    if (g_u8Display_Mode == ModeDAY)
    {
       if(g_u8Language == CH)/*日间中文*/
       {
           SetPagePic(GRAPHICS_PAGE_0, Pic_0190_27_396);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0191_903_396);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0161_207_485);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0185_737_485);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0192_445_517);
102 103 104 105
    
           SetPagePic(GRAPHICS_PAGE_0, Pic_0147_476_359);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0148_472_256);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0149_448_101);
106 107 108 109 110 111 112 113 114
       }
       else if(g_u8Language == EN)/*日间英文*/
       {
           SetPagePic(GRAPHICS_PAGE_0, Pic_0123_18_397);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0124_898_397);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0086_222_487);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0125_729_486);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0126_415_519);
           
115 116 117
           SetPagePic(GRAPHICS_PAGE_0, Pic_0072_454_360);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0073_456_257);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0074_422_103);     
118 119 120 121 122 123 124 125 126 127 128
       }
    }
    else if(g_u8Display_Mode == ModeNIGHT)
    {
       if(g_u8Language == CH)/*夜间中文*/
       {
           SetPagePic(GRAPHICS_PAGE_0, Pic_0377_27_396);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0378_903_396);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0348_207_485);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0372_737_485);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0379_445_517);
129 130 131
           SetPagePic(GRAPHICS_PAGE_0, Pic_0334_476_359);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0339_434_232);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0338_476_117);
132 133 134 135 136 137 138 139
       }
       else if(g_u8Language == EN)/*夜间英文*/
       {
           SetPagePic(GRAPHICS_PAGE_0, Pic_0311_18_397);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0312_898_397);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0272_222_487);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0313_729_486);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0314_415_519);
140 141 142
           SetPagePic(GRAPHICS_PAGE_0, Pic_0258_454_360);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0263_414_234);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0262_461_118);
143
       }
144
    } 
145 146

    /*else if自动模式没写*/
147 148
}

149 150 151 152 153

/**
 * @brief 背光设置 一级菜单
 * @param[in] null
 */
154 155
void AMT630H_GUI_Backlight_Information(void)
{
156
    /*日间中文*/
157
    if (g_u8Display_Mode = ModeDAY)/*日间模式下*/
158
    {
159
        /*语言*/
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
        if(g_u8Language == CH)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0187_37_396);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0188_904_396);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0156_197_485);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0181_737_485);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0189_446_517);
        }
        else if(g_u8Language == EN)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0118_52_398);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0119_891_398);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0120_174_486);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0121_732_486);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0122_436_519);
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230
        }
        /*背光等级选择*/
        if(g_u8Backlight == Backlight_5)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0059_509_353);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0060_504_307);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0061_505_264);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0062_503_219);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0063_495_145);
        }
        else if(g_u8Backlight == Backlight_4)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0059_509_353);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0060_504_307);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0061_505_264);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0064_493_190);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0065_504_136);
        }
        else if(g_u8Backlight == Backlight_3)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0059_509_353);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0060_504_307);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0066_496_236);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0062_503_186);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0065_504_136);
        }
        else if(g_u8Backlight == Backlight_2)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0059_509_353);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0067_495_281);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0068_505_236);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0062_503_186);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0065_504_136);
        }
        else if(g_u8Backlight == Backlight_1)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0069_506_332);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0060_504_286);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0068_505_236);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0062_503_186);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0065_504_136);
        }
        else if(g_u8Backlight == Backlight_ATUO)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0059_509_286);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0060_504_236);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0068_505_186);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0062_503_136);
            if(g_u8Language == CH)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0145_477_340);   
            }
            else if(g_u8Language == EN )
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0070_466_342);
            }
231
        }
232
    }
233
    else if(g_u8Display_Mode = ModeNIGHT)
234
    {
235 236
        if(g_u8Language == CH)
        {
237 238 239 240 241
            SetPagePic(GRAPHICS_PAGE_0, Pic_0374_37_396);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0375_904_396);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0343_197_485);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0368_737_485);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0376_446_517);
242 243 244 245 246 247 248 249 250
        }
        else if(g_u8Language == EN)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0306_52_398);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0307_891_398);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0308_174_486);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0309_732_486);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0310_436_519);
        }
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306
        /*背光等级选择*/
        if(g_u8Backlight == Backlight_5)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0245_509_353);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0246_504_307);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0247_505_264);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0248_503_219);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0249_495_145);
        }
        else if(g_u8Backlight == Backlight_4)
        {
           SetPagePic(GRAPHICS_PAGE_0, Pic_0245_509_353);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0246_504_307);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0247_505_264);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0250_493_190);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0251_504_136);
        }
        else if(g_u8Backlight == Backlight_3)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0245_509_353);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0246_504_307);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0252_496_236);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0248_503_186);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0251_504_136);
        }
        else if(g_u8Backlight == Backlight_2)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0245_509_353);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0253_495_281);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0254_505_236);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0248_503_186);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0251_504_136);
        }
        else if(g_u8Backlight == Backlight_1)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0255_506_332);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0246_504_286);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0254_505_236);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0248_503_186);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0251_504_136);
        }
        else if(g_u8Backlight == Backlight_ATUO)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0245_509_286);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0246_504_236);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0254_505_186);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0248_503_136);
            if(g_u8Language == CH)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0332_477_340);
            }
            else if(g_u8Language == EN )
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0256_466_342);
            }
        }
307
    }
308
}
309

310
static uint16_t Bluetooth_num_day[] = {
311 312 313 314 315 316 317 318 319
    Pic_0040_605_289,
    Pic_0041_606_290,
    Pic_0042_604_289,
    Pic_0043_604_289,
    Pic_0044_604_290,
    Pic_0045_604_290,
    Pic_0046_605_289,
    Pic_0047_605_290,
    Pic_0048_605_289,
320
    Pic_0049_605_289};
321 322 323 324 325 326 327 328 329 330 331 332
static uint16_t Bluetooth_num_night[] = {
    Pic_0225_605_289,
    Pic_0226_606_290,
    Pic_0227_604_289,
    Pic_0228_604_289,
    Pic_0229_604_290,
    Pic_0230_604_290,
    Pic_0231_605_289,
    Pic_0232_605_290,
    Pic_0233_605_289,
    Pic_0234_605_289,
};
333 334 335 336 337 338 339
/**
 * @brief 蓝牙连接 一级菜单
 * @param[in]  sync_contacts  同步联系人
 * @param[in]  Connect_ON  0 关 1 开
 */
void AMT630H_GUI_Bluetooth_Information(uint8_t sync_contacts, uint8_t Connect_ON)
{
340
    if(g_u8Display_Mode == ModeDAY)
341
    {
342
        if(g_u8Language == CH)
343
        {
344
            SetPagePic(GRAPHICS_PAGE_0, Pic_0137_26_396);
王雅楠's avatar
王雅楠 committed
345

346 347 348 349 350
            SetPagePic(GRAPHICS_PAGE_0, Pic_0136_489_345);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0139_369_287);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0142_367_226);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0055_570_165);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0143_367_163);
351

352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384
            if (Connect_ON == 0)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0141_584_226);
            }
            else
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0140_584_226);
            }
            DISPLAY_NUM_ST DisplayNumPara;
            uint8_t sync_contactsNumber;
            sync_contactsNumber = sync_contacts;
            if (sync_contacts < 10)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0038_590_287);
                DisplayNumPara.NumList = Bluetooth_num_day;
                DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 14;
                DisplayNumPara.x = 604;
                DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
                DisplayNumPara.DecimalNum = 0;
                DisplayNumPara.MinDigits = 1;
                DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, sync_contactsNumber);
            }
            else
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0039_583_287);
                DisplayNumPara.NumList = Bluetooth_num_day;
                DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 14;
                DisplayNumPara.x = 612;
                DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
                DisplayNumPara.DecimalNum = 0;
                DisplayNumPara.MinDigits = 2;
                DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, sync_contactsNumber);
            }
385
        }
386
        else if(g_u8Language == EN)
387
        {
388
            SetPagePic(GRAPHICS_PAGE_0, Pic_0034_14_397);
389

390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427
            SetPagePic(GRAPHICS_PAGE_0, Pic_0019_478_348);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0037_376_289);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0054_377_227);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0055_570_165);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0056_377_166);
            if (Connect_ON == 0)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0052_574_226);
            }
            else
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0053_573_226);
            }
            DISPLAY_NUM_ST DisplayNumPara;
            uint8_t sync_contactsNumber;
            sync_contactsNumber = sync_contacts;
            if (sync_contacts < 10)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0038_590_287);
                DisplayNumPara.NumList = Bluetooth_num_day;
                DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 14;
                DisplayNumPara.x = 604;
                DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
                DisplayNumPara.DecimalNum = 0;
                DisplayNumPara.MinDigits = 1;
                DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, sync_contactsNumber);
            }
            else
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0039_583_287);
                DisplayNumPara.NumList = Bluetooth_num_day;
                DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 14;
                DisplayNumPara.x = 612;
                DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
                DisplayNumPara.DecimalNum = 0;
                DisplayNumPara.MinDigits = 2;
                DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, sync_contactsNumber);
            }
428
        }
429
    }
430
    else if(g_u8Display_Mode == ModeNIGHT)
431
    {
432
        if(g_u8Language == CH)
433
        {
434
            SetPagePic(GRAPHICS_PAGE_0, Pic_0325_26_396);
435

436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473
            SetPagePic(GRAPHICS_PAGE_0, Pic_0324_489_345);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0326_369_287);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0329_367_226);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0241_570_165);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0330_367_163);
            if (Connect_ON == 0)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0328_584_226);
            }
            else
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0327_584_226);
            }
            DISPLAY_NUM_ST DisplayNumPara;
            uint8_t sync_contactsNumber;
            sync_contactsNumber = sync_contacts;
            if (sync_contacts < 10)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0038_590_287);
                DisplayNumPara.NumList = Bluetooth_num_night;
                DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 14;
                DisplayNumPara.x = 604;
                DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
                DisplayNumPara.DecimalNum = 0;
                DisplayNumPara.MinDigits = 1;
                DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, sync_contactsNumber);
            }
            else
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0039_583_287);
                DisplayNumPara.NumList = Bluetooth_num_night;
                DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 14;
                DisplayNumPara.x = 612;
                DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
                DisplayNumPara.DecimalNum = 0;
                DisplayNumPara.MinDigits = 2;
                DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, sync_contactsNumber);
            }
474
        }
475
        else if(g_u8Language == EN)
476
        {
477
            SetPagePic(GRAPHICS_PAGE_0, Pic_0222_14_397);
478

479 480 481 482 483
            SetPagePic(GRAPHICS_PAGE_0, Pic_0208_478_348);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0237_376_289);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0240_377_227);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0241_570_165);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0242_377_166);
484

485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517
            if (Connect_ON == 0)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0238_574_226);
            }
            else
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0239_573_226);
            }
            DISPLAY_NUM_ST DisplayNumPara;
            uint8_t sync_contactsNumber;
            sync_contactsNumber = sync_contacts;
            if (sync_contacts < 10)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0038_590_287);
                DisplayNumPara.NumList = Bluetooth_num_night;
                DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 14;
                DisplayNumPara.x = 604;
                DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
                DisplayNumPara.DecimalNum = 0;
                DisplayNumPara.MinDigits = 1;
                DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, sync_contactsNumber);
            }
            else
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0039_583_287);
                DisplayNumPara.NumList = Bluetooth_num_night;
                DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 14;
                DisplayNumPara.x = 612;
                DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
                DisplayNumPara.DecimalNum = 0;
                DisplayNumPara.MinDigits = 2;
                DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, sync_contactsNumber);
            }
518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584
        }
    }
}

static uint16_t Time_num_day[] = {
    Pic_0022_550_211,
    Pic_0023_564_211,
    Pic_0024_550_211,
    Pic_0025_552_211,
    Pic_0026_548_211,
    Pic_0027_550_211,
    Pic_0028_551_211,
    Pic_0029_549_211,
    Pic_0030_550_211,
    Pic_0031_551_211,
};
static uint16_t Time_num_night[] = {
    Pic_0210_550_211,
    Pic_0211_564_211,
    Pic_0212_550_211,
    Pic_0213_552_211,
    Pic_0214_548_211,
    Pic_0215_550_211,
    Pic_0216_551_211,
    Pic_0217_549_211,
    Pic_0218_550_211,
    Pic_0219_551_211,
};
/**
 * @brief 时钟设置 一级菜单
 * @param[in]  Clock_Hour  小时
 * @param[in]  Clock_Min   分钟
 */
void AMT630H_GUI_Clock_Information(uint8_t Clock_Hour, uint8_t Clock_Min)
{
    /*日间中文*/
    if (Pic_mode == PIC_DAYTIME_CH)
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0179_27_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0180_903_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0181_197_485);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0173_737_485);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0182_446_517);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0136_489_338);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0021_510_222);

        DISPLAY_NUM_ST DisplayNumPara;
        uint8_t Clock_HourNumber;
        uint8_t Clock_MinNumber;
        Clock_HourNumber = Clock_Hour;
        Clock_MinNumber = Clock_Min;

        DisplayNumPara.NumList = Time_num_day;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
        DisplayNumPara.x = 457;
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_HourNumber);

        DisplayNumPara.NumList = Time_num_day;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
        DisplayNumPara.x = 574;
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_MinNumber);
585
    }
586 587 588

    /*夜间中文*/
    else if (Pic_mode == PIC_NIGHTTIME_CH)
589
    {
590 591 592 593 594 595 596 597
        SetPagePic(GRAPHICS_PAGE_0, Pic_0366_27_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0367_903_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0368_197_485);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0360_737_485);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0369_446_517);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0324_489_338);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0209_510_222);

王雅楠's avatar
王雅楠 committed
598
        DISPLAY_NUM_ST DisplayNumPara;
599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614
        uint8_t Clock_HourNumber;
        uint8_t Clock_MinNumber;
        Clock_HourNumber = Clock_Hour;
        Clock_MinNumber = Clock_Min;

        DisplayNumPara.NumList = Time_num_night;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
        DisplayNumPara.x = 457;
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_HourNumber);

        DisplayNumPara.NumList = Time_num_night;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
        DisplayNumPara.x = 574;
王雅楠's avatar
王雅楠 committed
615
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
616 617 618
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_MinNumber);
619
    }
620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656

    /*日间英文*/
    else if (Pic_mode == PIC_DAYTIME_EN)
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0108_19_397);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0109_899_399);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0110_192_486);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0111_758_487);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0112_429_519);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0019_478_341);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0021_510_222);

        DISPLAY_NUM_ST DisplayNumPara;
        uint8_t Clock_HourNumber;
        uint8_t Clock_MinNumber;
        Clock_HourNumber = Clock_Hour;
        Clock_MinNumber = Clock_Min;

        DisplayNumPara.NumList = Time_num_day;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
        DisplayNumPara.x = 457;
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_HourNumber);

        DisplayNumPara.NumList = Time_num_day;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
        DisplayNumPara.x = 574;
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_MinNumber);
    }

    /*夜间英文*/
    else if (Pic_mode == PIC_NIGHTTIME_EN)
657
    {
658 659 660 661 662 663 664 665
        SetPagePic(GRAPHICS_PAGE_0, Pic_0296_19_397);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0297_899_399);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0298_192_486);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0299_758_487);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0300_429_519);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0208_478_341);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0209_510_222);

王雅楠's avatar
王雅楠 committed
666
        DISPLAY_NUM_ST DisplayNumPara;
667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682
        uint8_t Clock_HourNumber;
        uint8_t Clock_MinNumber;
        Clock_HourNumber = Clock_Hour;
        Clock_MinNumber = Clock_Min;

        DisplayNumPara.NumList = Time_num_night;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
        DisplayNumPara.x = 457;
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_HourNumber);

        DisplayNumPara.NumList = Time_num_night;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
        DisplayNumPara.x = 574;
王雅楠's avatar
王雅楠 committed
683
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
684 685 686
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_MinNumber);
687
    }
王雅楠's avatar
王雅楠 committed
688
}
689

690 691 692 693 694 695
/**
 * @brief 单位设置 一级菜单
 * @param[in] null
 */
void AMT630H_GUI_Unit_Information(void)
{
696
    if(g_u8Display_Mode == ModeDAY)
697
    {
698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725
        if(g_u8Language == CH)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0130_27_396);/*组*/
            if(g_u8UnitSetting == Metric)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0133_473_288);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0134_436_152);
            } 
            else if(g_u8UnitSetting == Imperial)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0131_435_272);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0132_474_168);
            }
        }
        else if(g_u8Language == EN)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0012_22_397);/*组*/
            if(g_u8UnitSetting == Metric)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0015_469_289);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0016_457_155);
            }
            else if(g_u8UnitSetting == Imperial)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0013_437_274);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0014_481_170);
            }
        }
726
    }
727
    else if(g_u8Display_Mode == ModeNIGHT)
728
    {
729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756
        if(g_u8Language == CH)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0318_27_396);
            if(g_u8UnitSetting == Metric)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0321_473_288);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0322_436_152);
            }
            else if(g_u8UnitSetting == Imperial)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0319_435_272);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0320_474_168);
            }
        }
        else if(g_u8Language == EN)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0201_22_397);
            if(g_u8UnitSetting == Metric)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0204_469_289);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0205_457_155);
            }
            else if(g_u8UnitSetting == Imperial)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0202_437_274);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0203_481_170);
            }
        }
757
    }
758
}
759

760 761 762 763 764 765
/**
 * @brief 语言设置 一级菜单
 * @param[in] null
 */
void AMT630H_GUI_Language_Information(void)
{
766
    if(g_u8Display_Mode == ModeDAY)
767
    {
768 769 770 771 772 773 774 775 776 777 778 779
        if(g_u8Language == CH)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0129_28_396);/*组*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0007_475_289);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0008_474_152);
        }
        else if(g_u8Language == EN)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0006_14_397);/*组*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0010_448_274);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0011_490_168);
        }
780
    }
781
    else if(g_u8Display_Mode == ModeNIGHT)
782
    {
783 784 785 786 787 788 789 790 791 792 793 794
        if(g_u8Language == CH)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0317_28_396);/*组*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0199_475_289);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0200_474_152);
        }
        else if(g_u8Language == EN)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0196_14_397);/*组*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0197_448_274);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0198_490_168);
        }
795 796 797
    }
}

798

799 800 801 802 803 804 805 806
/**
 * @brief 手机互联 一级菜单
 *
 */
void AMT630H_GUI_Phone_Connect(void)
{
    /*日间中文*/
    if (Pic_mode == PIC_DAYTIME_CH)
807 808 809 810 811 812 813 814
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0158_27_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0159_903_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0160_197_485);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0161_747_485);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0162_445_517);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0128_429_152);
    }
815 816

    /*夜间中文*/
817 818 819 820 821 822 823 824 825
    else if (Pic_mode == PIC_NIGHTTIME_CH)
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0345_27_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0346_903_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0347_197_485);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0348_747_485);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0349_445_517);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0316_429_152);
    }
826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847

    /*日间英文*/
    else if (Pic_mode == PIC_DAYTIME_EN)
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0083_23_399);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0084_869_397);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0085_188_486);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0086_762_487);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0087_435_519);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0005_304_155);
    }

    /*夜间中文*/
    else if (Pic_mode == PIC_NIGHTTIME_EN)
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0269_23_399);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0270_869_397);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0271_188_486);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0272_762_487);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0273_435_519);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0195_304_155);
    }
848
}
849

850 851 852 853 854 855
/**
 * @brief 退出 一级菜单
 * @param[in]  null
 */
void AMT630H_GUI_Quit(void)
{
856
    /*日间中文*/
857 858 859 860 861 862 863 864
    if (Pic_mode == PIC_DAYTIME_CH)
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0153_27_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0154_903_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0155_197_485);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0156_737_485);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0157_461_517);
    }
865 866

    /*夜间中文*/
867 868 869 870 871 872 873 874
    else if (Pic_mode == PIC_NIGHTTIME_CH)
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0340_27_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0341_903_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0342_197_485);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0343_737_485);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0344_461_517);
    }
875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894

    /*日间英文*/
    else if (Pic_mode == PIC_DAYTIME_EN)
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0078_18_397);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0079_895_397);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0080_188_486);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0081_714_486);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0082_481_519);
    }

    /*夜间英文*/
    else if (Pic_mode == PIC_NIGHTTIME_EN)
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0264_18_397);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0265_895_397);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0266_188_486);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0267_714_486);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0268_481_519);
    }
895 896
}

897
/***********************************************二级菜单*******************************************/
898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918
static uint16_t time_num_day[] = {
    Pic_0022_550_211,
    Pic_0023_564_211,
    Pic_0024_550_211,
    Pic_0025_552_211,
    Pic_0026_548_211,
    Pic_0027_550_211,
    Pic_0028_551_211,
    Pic_0029_549_211,
    Pic_0030_550_211,
    Pic_0031_551_211};
static uint16_t time_num_night[] = {
    Pic_0210_550_211,
    Pic_0211_564_211,
    Pic_0212_550_211,
    Pic_0213_552_211,
    Pic_0214_548_211,
    Pic_0215_550_211,
    Pic_0216_551_211,
    Pic_0217_549_211,
    Pic_0218_550_211,
919
    Pic_0219_551_211};
920 921 922 923 924 925 926 927 928
/**
 * @brief 时间设
        置 二级菜单
 * @param[in]  Clock_Hour  小时
 * @param[in]  Clock_Min   分钟
 * @param[in]  Clock_BIT   选中位数 5选中返回
 */
static void AMT630H_GUI_Clock_Setting(uint8_t Clock_Hour, uint8_t Clock_Min, uint8_t Clock_BIT)
{
929 930

    /*日间中文*/
931 932 933 934 935
    if (Pic_mode == PIC_DAYTIME_CH)
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0021_510_222);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0135_27_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0136_489_338);
936

937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957
        switch (Clock_BIT)
        {
        case 1:
            SetPagePic(GRAPHICS_PAGE_0, Pic_0020_408_209); // 小时第一位
            break;
        case 2:
            SetPagePic(GRAPHICS_PAGE_0, Pic_0020_455_209); // 小时第二位
            break;
        case 3:
            SetPagePic(GRAPHICS_PAGE_0, Pic_0020_525_209); // 分钟第一位
            break;
        case 4:
            SetPagePic(GRAPHICS_PAGE_0, Pic_0020_572_209); // 分钟第二位
            break;
        case 5:
            SetPagePic(GRAPHICS_PAGE_0, Pic_0018_441_335); // 返回
            break;
        default:
            break;
        }

958
        DISPLAY_NUM_ST DisplayNumPara;
959 960 961 962 963 964 965 966
        uint8_t Clock_HourNumber;
        uint8_t Clock_MinNumber;
        Clock_HourNumber = Clock_Hour;
        Clock_MinNumber = Clock_Min;

        DisplayNumPara.NumList = time_num_day;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
        DisplayNumPara.x = 455;
967
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
968 969 970 971 972 973 974
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_HourNumber);

        DisplayNumPara.NumList = time_num_day;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
        DisplayNumPara.x = 572;
975
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
976 977 978
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_MinNumber);
979
    }
980 981

    /*夜间中文*/
982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006
    else if (Pic_mode == PIC_NIGHTTIME_CH)
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0323_27_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0324_489_338);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0209_510_222);
        switch (Clock_BIT)
        {
        case 1:
            SetPagePic(GRAPHICS_PAGE_0, Pic_0020_408_209); // 小时第一位
            break;
        case 2:
            SetPagePic(GRAPHICS_PAGE_0, Pic_0020_455_209); // 小时第二位
            break;
        case 3:
            SetPagePic(GRAPHICS_PAGE_0, Pic_0020_525_209); // 分钟第一位
            break;
        case 4:
            SetPagePic(GRAPHICS_PAGE_0, Pic_0020_572_209); // 分钟第二位
            break;
        case 5:
            SetPagePic(GRAPHICS_PAGE_0, Pic_0207_437_316); // 返回
            break;
        default:
            break;
        }
1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111
        /*数据处理*/
        DISPLAY_NUM_ST DisplayNumPara;
        uint8_t Clock_HourNumber;
        uint8_t Clock_MinNumber;
        Clock_HourNumber = Clock_Hour;
        Clock_MinNumber = Clock_Min;

        DisplayNumPara.NumList = time_num_night;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
        DisplayNumPara.x = 455;
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_HourNumber);

        DisplayNumPara.NumList = time_num_night;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
        DisplayNumPara.x = 572;
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_MinNumber);
    }

    /*日间英文*/
    else if (Pic_mode == PIC_DAYTIME_EN)
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0017_19_397);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0019_478_341);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0021_510_222);

        /*光标*/
        switch (Clock_BIT)
        {
        case 1:
            SetPagePic(GRAPHICS_PAGE_0, Pic_0020_408_209); // 小时第一位
            break;
        case 2:
            SetPagePic(GRAPHICS_PAGE_0, Pic_0020_455_209); // 小时第二位
            break;
        case 3:
            SetPagePic(GRAPHICS_PAGE_0, Pic_0020_525_209); // 分钟第一位
            break;
        case 4:
            SetPagePic(GRAPHICS_PAGE_0, Pic_0020_572_209); // 分钟第二位
            break;
        case 5:
            SetPagePic(GRAPHICS_PAGE_0, Pic_0018_441_335); // 返回
            break;
        default:
            break;
        }

        /*数据处理*/
        DISPLAY_NUM_ST DisplayNumPara;
        uint8_t Clock_HourNumber;
        uint8_t Clock_MinNumber;
        Clock_HourNumber = Clock_Hour;
        Clock_MinNumber = Clock_Min;

        DisplayNumPara.NumList = time_num_day;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
        DisplayNumPara.x = 457;
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_HourNumber);

        DisplayNumPara.NumList = time_num_day;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
        DisplayNumPara.x = 574;
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_MinNumber);
    }

    /*夜间英文*/
    else if (Pic_mode == PIC_NIGHTTIME_EN)
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0206_19_397);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0208_478_341);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0209_510_222);

        /*光标*/
        switch (Clock_BIT)
        {
        case 1:
            SetPagePic(GRAPHICS_PAGE_0, Pic_0020_408_209); // 小时第一位
            break;
        case 2:
            SetPagePic(GRAPHICS_PAGE_0, Pic_0020_455_209); // 小时第二位
            break;
        case 3:
            SetPagePic(GRAPHICS_PAGE_0, Pic_0020_525_209); // 分钟第一位
            break;
        case 4:
            SetPagePic(GRAPHICS_PAGE_0, Pic_0020_572_209); // 分钟第二位
            break;
        case 5:
            SetPagePic(GRAPHICS_PAGE_0, Pic_0207_437_316); // 返回
            break;
        default:
            break;
        }
1112

1113
        /*数据处理*/
1114
        DISPLAY_NUM_ST DisplayNumPara;
1115 1116 1117 1118 1119 1120 1121 1122
        uint8_t Clock_HourNumber;
        uint8_t Clock_MinNumber;
        Clock_HourNumber = Clock_Hour;
        Clock_MinNumber = Clock_Min;

        DisplayNumPara.NumList = time_num_night;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
        DisplayNumPara.x = 457;
1123
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
1124 1125 1126 1127 1128 1129 1130
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_HourNumber);

        DisplayNumPara.NumList = time_num_night;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
        DisplayNumPara.x = 574;
1131
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
1132 1133 1134
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_MinNumber);
1135 1136
    }
}
1137

1138 1139 1140 1141
/**
 * @brief 显示模式设置 二级菜单
 * @param[in]  back_mode  显示模式 0为日间 1为夜间 2为自动
 */
1142

1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337
void AMT630H_GUI_Display_Mode_Setting(Menu_Item_en_t display_mode) /*图 显示模式*/
{
    if(g_u8Display_Mode == ModeDAY)
    {
        switch (display_mode)
        {
            case MENU_ITEM_SELECT_DAYTIME:
                if(g_u8Language == CH)/*处于日间模式 进入显示模式设置 :中文 光标选中日间模式*/
                {
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0146_27_396);/*组*/

                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_90);/*光标*/

                    SetPagePic(GRAPHICS_PAGE_0, Pic_0147_476_359);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0148_472_256);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0149_448_101);
                }   
                else if(g_u8Language == EN)/*处于日间模式 进入显示模式设置 :英文 光标选中日间模式*/
                {   
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0071_18_397);/*组*/
                    
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_90);/*光标*/

                    SetPagePic(GRAPHICS_PAGE_0, Pic_0072_454_360);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0073_456_257);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0074_422_103);
                }
                if(Menu_Item_Select_Get(MENU_ITEM_SELECT_DAYTIME))
                {
                    g_u8Display_Mode = ModeDAY;
                }
                else
                {
                    ;
                }
                break;
            case MENU_ITEM_SELECT_NIGHTTIME:
                if(g_u8Language == CH)/*处于日间模式 进入显示模式设置 :中文 光标选中夜间模式*/
                {
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0146_27_396);/*组*/

                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_221);/*光标*/

                    SetPagePic(GRAPHICS_PAGE_0, Pic_0147_476_359);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0152_434_232);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0151_476_117);
                }   
                else if(g_u8Language == EN)/*处于日间模式 进入显示模式设置 :英文 光标选中夜间模式*/
                {   
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0071_18_397);/*组*/
                    
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_221);/*光标*/
                    
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0072_454_360);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0077_414_234);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0076_461_118);
                }
                if(Menu_Item_Select_Get(MENU_ITEM_SELECT_NIGHTTIME))
                {
                    g_u8Display_Mode = ModeNIGHT;
                }
                else
                {
                    ;
                }
                break;
            case MENU_ITEM_SELECT_AUTO:
                if(g_u8Language == CH)/*处于日间模式 进入显示模式设置 :中文 光标选中自动模式*/
                {
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0146_27_396);/*组*/

                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_332);/*光标*/
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0150_448_343);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0148_472_231);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0151_476_117);
                }   
                else if(g_u8Language == EN)/*处于日间模式 进入显示模式设置 :英文 光标选中夜间模式*/
                {   
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0071_18_397);/*组*/

                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_332);/*光标*/

                    SetPagePic(GRAPHICS_PAGE_0, Pic_0075_409_345);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0073_456_232);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0076_461_118);
                }
                if(Menu_Item_Select_Get(MENU_ITEM_SELECT_AUTO))
                {
                    g_u8Display_Mode = ModeATUO;
                }
                else
                {
                    ;
                }
                break;
            default:
                break;
        }
    }
    else if(g_u8Display_Mode == ModeNIGHT)
    {
        switch (display_mode)
        {
            case MENU_ITEM_SELECT_DAYTIME:
                if(g_u8Language == CH)/*处于夜间模式 进入显示模式设置 :中文 光标选中日间模式*/
                {
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0333_27_396);/*组*/

                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_90);/*光标*/

                    SetPagePic(GRAPHICS_PAGE_0, Pic_0334_476_359);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0335_472_256);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0336_448_101);

                }   
                else if(g_u8Language == EN)/*处于夜间模式 进入显示模式设置 :英文 光标选中日间模式*/
                {   
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0257_18_397);/*组*/
                    
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_90);/*光标*/
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0258_454_360);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0259_456_257);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0260_422_103);
                }
                if(Menu_Item_Select_Get(MENU_ITEM_SELECT_DAYTIME))
                {
                    g_u8Display_Mode = ModeDAY;
                }
                else
                {
                    ;
                }
                break;
            case MENU_ITEM_SELECT_NIGHTTIME:
                if(g_u8Language == CH)/*处于夜间模式 进入显示模式设置 :中文 光标选中夜间模式*/
                {
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0333_27_396);/*组*/

                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_221);/*光标*/

                    SetPagePic(GRAPHICS_PAGE_0, Pic_0334_476_359);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0339_434_232);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0338_476_117);
                }   
                else if(g_u8Language == EN)/*处于夜间模式 进入显示模式设置 :英文 光标选中夜间模式*/
                {   
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0257_18_397);/*组*/
                    
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_221);/*光标*/
                    
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0258_454_360);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0263_414_234);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0262_461_118);
                }
                if(Menu_Item_Select_Get(MENU_ITEM_SELECT_NIGHTTIME))
                {
                    g_u8Display_Mode = ModeNIGHT;
                }
                else
                {
                    ;
                }
                break;
            case MENU_ITEM_SELECT_AUTO:
                if(g_u8Language == CH)/*处于夜间模式 进入显示模式设置 :中文 光标选中自动模式*/
                {
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0333_27_396);/*组*/

                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_332);/*光标*/

                    SetPagePic(GRAPHICS_PAGE_0, Pic_0337_448_343);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0335_472_231);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0338_476_117);
                }   
                else if(g_u8Language == EN)/*处于夜间模式 进入显示模式设置 :英文 光标选中夜间模式*/
                {   
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0257_18_397);/*组*/

                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_332);/*光标*/

                    SetPagePic(GRAPHICS_PAGE_0, Pic_0261_409_345);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0259_456_232);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0262_461_118);
                }
                if(Menu_Item_Select_Get(MENU_ITEM_SELECT_AUTO))
                {
                    g_u8Display_Mode = ModeATUO ;
                }
                else
                {
                    ;
                }
                break;
            default:
                break;
1338 1339
        }
    }
1340
}
1341

1342

1343 1344 1345 1346
/**
 * @brief 背光设置 二级菜单
 * @param[in]  back_mode  背光模式 0为自动
 */
1347
void AMT630H_GUI_Backlight_Setting(Menu_Item_en_t back_mode) /*图 背光*/
1348
{
1349 1350 1351 1352 1353 1354 1355
    /*case 0              自动*/
    /*case 1             选中1*/
    /*case 2             选中2*/
    /*case 3             选中3*/
    /*case 4             选中4*/
    /*case 5             选中5*/

1356
    if(g_u8Display_Mode == ModeDAY)/*日间模式*/
1357
    {
1358
        if(g_u8Language == CH)
1359
        {
1360
            SetPagePic(GRAPHICS_PAGE_0, Pic_0144_37_396);
1361
        }
1362
        else if(g_u8Language == EN)
1363
        {
1364
            SetPagePic(GRAPHICS_PAGE_0, Pic_0057_52_398);
1365 1366
        }

1367
        switch (back_mode)
1368
        {
1369 1370
            case MENU_ITEM_BACKLIGHT_5:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0058_360_138);
1371

1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485
                SetPagePic(GRAPHICS_PAGE_0, Pic_0059_509_353);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0060_504_307);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0061_505_264);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0062_503_219);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0063_495_145);
                /*记忆选择*/
                if(Menu_Item_Select_Get(MENU_ITEM_BACKLIGHT_5))
                {
                    g_u8Backlight = Backlight_5 ;
                }
                else
                {
                    ;
                }
                break;
            case MENU_ITEM_BACKLIGHT_4:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0058_360_183);

                SetPagePic(GRAPHICS_PAGE_0, Pic_0059_509_353);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0060_504_307);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0061_505_264);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0064_493_190);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0065_504_136);
                /*记忆选择*/
                if(Menu_Item_Select_Get(MENU_ITEM_BACKLIGHT_4))
                {
                    g_u8Backlight = Backlight_4 ;
                }
                else
                {
                    ;
                }
                break;
            case MENU_ITEM_BACKLIGHT_3:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0058_360_229);

                SetPagePic(GRAPHICS_PAGE_0, Pic_0059_509_353);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0060_504_307);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0066_496_236);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0062_503_186);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0065_504_136);
                /*记忆选择*/
                if(Menu_Item_Select_Get(MENU_ITEM_BACKLIGHT_3))
                {
                    g_u8Backlight = Backlight_3 ;
                }
                else
                {
                    ;
                }
                break;
            case MENU_ITEM_BACKLIGHT_2:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0058_360_274);

                SetPagePic(GRAPHICS_PAGE_0, Pic_0059_509_353);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0067_495_281);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0068_505_236);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0062_503_186);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0065_504_136);
                /*记忆选择*/
                if(Menu_Item_Select_Get(MENU_ITEM_BACKLIGHT_2))
                {
                    g_u8Backlight = Backlight_2 ;
                }
                else
                {
                    ;
                }
                break;
            case MENU_ITEM_BACKLIGHT_1:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0058_360_325);

                SetPagePic(GRAPHICS_PAGE_0, Pic_0069_506_332);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0060_504_286);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0068_505_236);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0062_503_186);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0065_504_136);
                /*记忆选择*/
                if(Menu_Item_Select_Get(MENU_ITEM_BACKLIGHT_1))
                {
                    g_u8Backlight = Backlight_1 ;
                }
                else
                {
                    ;
                }
                break;
            case MENU_ITEM_BACKLIGHT_AUTO:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0058_360_332);

                SetPagePic(GRAPHICS_PAGE_0, Pic_0059_509_286);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0060_504_236);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0068_505_186);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0062_503_136);
                if(g_u8Language == CH)
                {
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0145_477_340);   
                }
                else if(g_u8Language == EN )
                {
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0070_466_342);
                }
                /*记忆选择*/
                if(Menu_Item_Select_Get(MENU_ITEM_BACKLIGHT_AUTO))
                {
                    g_u8Backlight = Backlight_ATUO ;
                }
                else
                {
                    ;
                }
                break;
            default:
                break;
1486
        }
1487
    }
1488
    else if(g_u8Display_Mode == ModeNIGHT)
1489
    {
1490 1491 1492 1493 1494 1495 1496
        if(g_u8Language == CH)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0331_37_396);
        }
        else if(g_u8Language == EN)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0243_52_398);
1497
        }
1498 1499

        switch (back_mode)
1500
        {
1501 1502
            case MENU_ITEM_BACKLIGHT_5:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0058_360_138);
1503

1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615
                SetPagePic(GRAPHICS_PAGE_0, Pic_0245_509_353);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0246_504_307);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0247_505_264);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0248_503_219);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0249_495_145);
                /*记忆选择*/
                if(Menu_Item_Select_Get(MENU_ITEM_BACKLIGHT_5))
                {
                    g_u8Backlight = Backlight_5 ;
                }
                else
                {
                    ;
                }
                break;
            case MENU_ITEM_BACKLIGHT_4:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0058_360_183);

                SetPagePic(GRAPHICS_PAGE_0, Pic_0245_509_353);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0246_504_307);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0247_505_264);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0250_493_190);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0251_504_136);
                /*记忆选择*/
                if(Menu_Item_Select_Get(MENU_ITEM_BACKLIGHT_4))
                {
                    g_u8Backlight = Backlight_4 ;
                }
                else
                {
                    ;
                }
                break;
            case MENU_ITEM_BACKLIGHT_3:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0058_360_229);

                SetPagePic(GRAPHICS_PAGE_0, Pic_0245_509_353);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0246_504_307);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0252_496_236);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0248_503_186);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0251_504_136);
                /*记忆选择*/
                if(Menu_Item_Select_Get(MENU_ITEM_BACKLIGHT_3))
                {
                    g_u8Backlight = Backlight_3 ;
                }
                else
                {
                    ;
                }
                break;
            case MENU_ITEM_BACKLIGHT_2:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0058_360_274);

                SetPagePic(GRAPHICS_PAGE_0, Pic_0245_509_353);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0253_495_281);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0254_505_236);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0248_503_186);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0251_504_136);
                /*记忆选择*/
                if(Menu_Item_Select_Get(MENU_ITEM_BACKLIGHT_2))
                {
                    g_u8Backlight = Backlight_2 ;
                }
                else
                {
                    ;
                }
                break;
            case MENU_ITEM_BACKLIGHT_1:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0058_360_325);

                SetPagePic(GRAPHICS_PAGE_0, Pic_0255_506_332);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0246_504_286);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0254_505_236);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0248_503_186);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0251_504_136);
                /*记忆选择*/
                if(Menu_Item_Select_Get(MENU_ITEM_BACKLIGHT_1))
                {
                    g_u8Backlight = Backlight_1 ;
                }
                else
                {
                    ;
                }
                break;
            case MENU_ITEM_BACKLIGHT_AUTO:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0058_360_332);

                SetPagePic(GRAPHICS_PAGE_0, Pic_0245_509_286);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0246_504_236);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0254_505_186);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0248_503_136);
                if(g_u8Language == CH)
                {
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0332_477_340);
                }
                else if(g_u8Language == EN )
                {
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0256_466_342);
                }
                /*记忆选择*/
                if(Menu_Item_Select_Get(MENU_ITEM_BACKLIGHT_AUTO))
                {
                    g_u8Backlight = Backlight_ATUO ;
                }
                else
                {
                    ;
                }
                break;
1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648
        }
    }
}

static uint16_t Bluetooth_Connect_num_day[] = {
    Pic_0040_605_289,
    Pic_0041_606_290,
    Pic_0042_604_289,
    Pic_0043_604_289,
    Pic_0044_604_290,
    Pic_0045_604_290,
    Pic_0046_605_289,
    Pic_0047_605_290,
    Pic_0048_605_289,
    Pic_0049_605_289};

static uint16_t Bluetooth_Connect_num_night[] = {
    Pic_0225_605_289,
    Pic_0226_606_290,
    Pic_0227_604_289,
    Pic_0228_604_289,
    Pic_0229_604_290,
    Pic_0230_604_290,
    Pic_0231_605_289,
    Pic_0232_605_290,
    Pic_0233_605_289,
    Pic_0234_605_289};
/**
 * @brief 蓝牙连接 二级菜单
 * @param[in]  select  0为选择蓝牙连接 1选择同步联系人 2选择返回
 * @param[in]  sync_contacts  同步联系人
 * @param[in]  Connect_ON  0 关 1 开
 */
1649
void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_contacts, uint8_t Connect_ON)
1650
{
1651
    if(g_u8Display_Mode == ModeDAY)
1652
    {
1653
        if(g_u8Language == CH)
1654
        {
1655 1656 1657 1658 1659 1660
            SetPagePic(GRAPHICS_PAGE_0, Pic_0137_26_396);  /*下方菜单*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0136_489_345); /*返回*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0139_369_287); /*同步联系人*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0142_367_226); /*蓝牙连接*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0055_570_165); /*HI3EA0*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0143_367_163); /*蓝牙名称*/
1661

1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684
            switch (select)
            {
                case 0:
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_205);/*蓝牙连接 光标*/
                    break;
                case 1:
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0036_336_266);/*同步联系人 光标*/
                    break;
                case 2:
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0035_336_324);/*返回 光标*/
                    break;
                default:
                    break; 
            }
            /*蓝牙开关*/
            if (Connect_ON == 0)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0141_584_226);
            }
            else
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0140_584_226);
            }
1685

1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711
            /*同步联系人*/
            DISPLAY_NUM_ST DisplayNumPara;
            uint8_t sync_contactsNumber;
            sync_contactsNumber = sync_contacts;
            if (sync_contacts < 10)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0038_590_287);
                DisplayNumPara.NumList = Bluetooth_Connect_num_day;
                DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 14;
                DisplayNumPara.x = 604;
                DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
                DisplayNumPara.DecimalNum = 0;
                DisplayNumPara.MinDigits = 1;
                DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, sync_contactsNumber);
            }
            else
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0039_583_287);
                DisplayNumPara.NumList = Bluetooth_Connect_num_day;
                DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 14;
                DisplayNumPara.x = 612;
                DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
                DisplayNumPara.DecimalNum = 0;
                DisplayNumPara.MinDigits = 2;
                DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, sync_contactsNumber);
            }
1712
        }
1713
        else if(g_u8Language == EN)
1714
        {
1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745
            SetPagePic(GRAPHICS_PAGE_0, Pic_0034_14_397);/*下方菜单*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0019_478_348);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0037_376_289);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0054_377_227);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0055_570_165);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0056_377_166);
            switch (select)
            {
                case 0:
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_205);/*蓝牙连接 光标*/
                    
                    break;
                case 1:
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0036_336_266);/*同步联系人 光标*/
                    
                    break;
                case 2:
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0035_336_324);/*返回 光标*/
                    break;
                default:
                    break;
            }
            /*蓝牙连接*/    
            if (Connect_ON == 0)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0052_574_226);
            }
            else
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0053_573_226);
            }
1746

1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772
            /*蓝牙联系人*/
            DISPLAY_NUM_ST DisplayNumPara;
            uint8_t sync_contactsNumber;
            sync_contactsNumber = sync_contacts;
            if (sync_contacts < 10)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0038_590_287);
                DisplayNumPara.NumList = Bluetooth_Connect_num_day;
                DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 14;
                DisplayNumPara.x = 604;
                DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
                DisplayNumPara.DecimalNum = 0;
                DisplayNumPara.MinDigits = 1;
                DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, sync_contactsNumber);
            }
            else
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0039_583_287);
                DisplayNumPara.NumList = Bluetooth_Connect_num_day;
                DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 14;
                DisplayNumPara.x = 612;
                DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
                DisplayNumPara.DecimalNum = 0;
                DisplayNumPara.MinDigits = 2;
                DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, sync_contactsNumber);
            }
1773 1774
        }
    }
1775 1776 1777
    else if(g_u8Display_Mode == ModeNIGHT)
    {
        if(g_u8Language == CH)
1778
        {
1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798
            SetPagePic(GRAPHICS_PAGE_0, Pic_0325_26_396);/*下方菜单*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0324_489_345);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0326_369_287);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0329_367_226);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0241_570_165);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0330_367_163);
            switch (select)
            {
                case 0:
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_205);/*蓝牙连接 光标*/
                    break;
                case 1:
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0036_336_266);/*同步联系人 光标*/
                    break;
                case 2:
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0035_336_324);/*返回 光标*/
                    break;
                default:
                    break;
            }
1799

1800 1801 1802 1803 1804 1805 1806 1807 1808
            /*蓝牙连接*/
            if (Connect_ON == 0)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0328_584_226);
            }
            else
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0327_584_226);
            }
1809

1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835
            /*蓝牙联系人选择*/
            DISPLAY_NUM_ST DisplayNumPara;
            uint8_t sync_contactsNumber;
            sync_contactsNumber = sync_contacts;
            if (sync_contacts < 10)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0038_590_287);
                DisplayNumPara.NumList = Bluetooth_Connect_num_night;
                DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 14;
                DisplayNumPara.x = 604;
                DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
                DisplayNumPara.DecimalNum = 0;
                DisplayNumPara.MinDigits = 1;
                DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, sync_contactsNumber);
            }
            else
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0039_583_287);
                DisplayNumPara.NumList = Bluetooth_Connect_num_night;
                DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 14;
                DisplayNumPara.x = 612;
                DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
                DisplayNumPara.DecimalNum = 0;
                DisplayNumPara.MinDigits = 2;
                DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, sync_contactsNumber);
            }
1836
        }
1837
        else if(g_u8Language == EN)
1838
        {
1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871
            SetPagePic(GRAPHICS_PAGE_0, Pic_0222_14_397);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0208_478_348);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0237_376_289);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0240_377_227);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0241_570_165);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0242_377_166);
            switch (select)
            {
                case 0:
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_205);/*蓝牙连接 光标*/ 
                    break;
                case 1:
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0036_336_266);/*同步联系人 光标*/
                    
                    break;
                case 2:
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0035_336_324);/*返回 光标*/
                    break;
                default:
                    break;
            }

            /*蓝牙连接*/
            if (Connect_ON == 0)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0238_574_226);
            }
            else
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0239_573_226);
            }

            /*蓝牙联系人选择*/
1872
            DISPLAY_NUM_ST DisplayNumPara;
1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899
            uint8_t sync_contactsNumber;
            sync_contactsNumber = sync_contacts;
            if (sync_contacts < 10)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0223_590_287);
                DisplayNumPara.NumList = Bluetooth_Connect_num_night;
                DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 14;
                DisplayNumPara.x = 604;
                DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
                DisplayNumPara.DecimalNum = 0;
                DisplayNumPara.MinDigits = 1;
                DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, sync_contactsNumber);
            }
            else
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0224_583_287);
                DISPLAY_NUM_ST DisplayNumPara;
                uint8_t ArrivalNumber;
                ArrivalNumber = sync_contacts;
                DisplayNumPara.NumList = Bluetooth_Connect_num_night;
                DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 14;
                DisplayNumPara.x = 612;
                DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
                DisplayNumPara.DecimalNum = 0;
                DisplayNumPara.MinDigits = 2;
                DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, sync_contactsNumber);
            }
1900 1901 1902
        }
    }
}
1903

1904

1905 1906 1907 1908
/**
 * @brief 单位设置 二级菜单
 * @param[in]  select  0为公制 1为英制
 */
1909
void AMT630H_GUI_Unit_Setting(Menu_Interface_en_t select) /*图 单位设置*/
1910
{
1911
    if(g_u8Display_Mode == ModeDAY)
1912
    {
1913
        if(g_u8Language == CH)
1914
        {
1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939
            SetPagePic(GRAPHICS_PAGE_0, Pic_0130_27_396);/*组*/
            switch (select)
            {
                 case MENU_ITEM_UNIT_KM:
                     SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_141);
                     SetPagePic(GRAPHICS_PAGE_0, Pic_0133_473_288);
                     SetPagePic(GRAPHICS_PAGE_0, Pic_0134_436_152);
                     if(Menu_Item_Select_Get(MENU_ITEM_UNIT_KM) == 1)
                     {
                         g_u8UnitSetting = Metric;
                     }
                     break;
                 case MENU_ITEM_UNIT_MILE:
                     SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_261);
                     SetPagePic(GRAPHICS_PAGE_0, Pic_0131_435_272);
                     SetPagePic(GRAPHICS_PAGE_0, Pic_0132_474_168);
                     if(Menu_Item_Select_Get(MENU_ITEM_UNIT_MILE) == 1)
                     {
                         g_u8UnitSetting = Imperial;
                     }
                 default:
                     break;
            }
        } 
        else if(g_u8Language == EN)
1940
        {
1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963
            SetPagePic(GRAPHICS_PAGE_0, Pic_0012_22_397);/*组*/
            switch (select)
            {
                case MENU_ITEM_UNIT_KM:
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_141);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0015_469_289);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0016_457_155);
                    if(Menu_Item_Select_Get(MENU_ITEM_UNIT_KM) == 1)
                    {
                        g_u8UnitSetting = Metric;
                    }
                    break;
                case MENU_ITEM_UNIT_MILE:
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_261);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0013_437_274);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0014_481_170);
                    if(Menu_Item_Select_Get(MENU_ITEM_UNIT_MILE) == 1)
                    {
                        g_u8UnitSetting = Imperial;
                    }
                default:
                    break;
            }
1964 1965
        }
    }
1966
    else if(g_u8Display_Mode == ModeNIGHT)
1967
    {
1968 1969
        SetPagePic(GRAPHICS_PAGE_0, Pic_0318_27_396);/*组*/
        if(g_u8Language == CH)
1970
        {
1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992
            switch (select)
            {
                case MENU_ITEM_UNIT_KM:
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_141);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0321_473_288);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0322_436_152);
                    if(Menu_Item_Select_Get(MENU_ITEM_UNIT_KM) == 1)
                    {
                        g_u8UnitSetting = Metric;
                    }
                    break;
                case MENU_ITEM_UNIT_MILE:
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_261);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0319_435_272);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0320_474_168);
                    if(Menu_Item_Select_Get(MENU_ITEM_UNIT_MILE) == 1)
                    {
                        g_u8UnitSetting = Imperial;
                    }
                default:
                    break;
            }
1993
        }
1994
        else if(g_u8Language == EN)
1995
        {
1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018
            SetPagePic(GRAPHICS_PAGE_0, Pic_0201_22_397);/*组*/
            switch (select)
            {
                case MENU_ITEM_UNIT_KM:
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_141);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0204_469_289);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0205_457_155);
                    if(Menu_Item_Select_Get(MENU_ITEM_UNIT_KM) == 1)
                    {
                        g_u8UnitSetting = Metric;
                    }
                    break;
                case MENU_ITEM_UNIT_MILE:
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_261);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0202_437_274);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0203_481_170);
                    if(Menu_Item_Select_Get(MENU_ITEM_UNIT_MILE) == 1)
                    {
                        g_u8UnitSetting = Imperial;
                    }
                default:
                    break;
            }
2019 2020
        }
    }
2021
}
2022

2023 2024 2025 2026
/**
 * @brief 语言设置 二级菜单
 * @param[in]  select  0为中文 1为英文
 */
2027
void AMT630H_GUI_Language_Setting(Menu_Interface_en_t select) /*图 语言设置*/
2028
{
2029
    if(g_u8Display_Mode == ModeDAY)
2030
    {
2031
        if(g_u8Language == CH)
2032
        {
2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048
            SetPagePic(GRAPHICS_PAGE_0, Pic_0129_28_396);/*下方菜单*/
            switch (select)
            {
                case MENU_ITEM_LANGUAGE_CHINESE:/*在日间模式中文下  选择中文*/
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_140);/*光标*/
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0007_475_289);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0008_474_152);
                    break;
                case MENU_ITEM_LANGUAGE_ENGLISH:/*在日间模式中文下  选择英文*/
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0009_321_261);/*光标*/
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0010_448_274);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0011_490_168);
                    break;
                default:
                    break;
            }
2049
        }
2050
        else if(g_u8Language == EN)/*在日间英文模式下*/
2051
        {
2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067
            SetPagePic(GRAPHICS_PAGE_0, Pic_0006_14_397);/*下方菜单*/
            switch (select)
            {
                case MENU_ITEM_LANGUAGE_CHINESE:/*在日间英文模式下  选择中文*/
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_140);/*光标*/
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0007_475_289);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0008_474_152);
                    break;
                case MENU_ITEM_LANGUAGE_ENGLISH:/*在日间英文模式下  选择英文*/
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0009_321_261);/*光标*/
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0010_448_274);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0011_490_168);
                    break;
                default:
                    break;
            }
2068
        }
2069
        else if(g_u8Display_Mode == ModeNIGHT)
2070
        {
2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104
            if(g_u8Language == CH)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0317_28_396);/*下方菜单*/
                switch (select)
                {
                    case MENU_ITEM_LANGUAGE_CHINESE:/*在夜间中文模式下  选择中文*/
                        SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_140);/*光标*/
                        
                        break;
                    case MENU_ITEM_LANGUAGE_ENGLISH:/*在夜间英文模式下  选择英文*/
                        SetPagePic(GRAPHICS_PAGE_0, Pic_0009_321_261);/*光标*/
                        
                        break;
                    default:
                        break;
                }
            }
            else if(g_u8Language == EN)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0196_14_397);/*下方菜单*/
                switch (select)
                {
                    case MENU_ITEM_LANGUAGE_CHINESE:/*在夜间中文模式下  选择中文*/
                        SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_140);/*光标*/
                        
                        break;
                    case MENU_ITEM_LANGUAGE_ENGLISH:/*在夜间英文模式下  选择英文*/
                        SetPagePic(GRAPHICS_PAGE_0, Pic_0009_321_261);/*光标*/
                        
                        break;
                    default:
                        break;
                }
            }
2105
        }
2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138
        // switch (select)
        // {
        //     case MENU_ITEM_LANGUAGE_CHINESE:
        //         SetPagePic(GRAPHICS_PAGE_0, Pic_0129_28_396);/*组*/
        //         SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_140);/*光标*/
        //         SetPagePic(GRAPHICS_PAGE_0, Pic_0007_475_289);
        //         SetPagePic(GRAPHICS_PAGE_0, Pic_0008_474_152);
        //         if(Menu_Item_Select_Get(MENU_ITEM_LANGUAGE_CHINESE))
        //         {
        //             g_u8Language = CH;
        //         }
        //         else
        //         {
        //             ;
        //         }
        //         break;
        //     case MENU_ITEM_LANGUAGE_ENGLISH:
        //         SetPagePic(GRAPHICS_PAGE_0, Pic_0006_14_397);/*组*/
        //         SetPagePic(GRAPHICS_PAGE_0, Pic_0009_321_261);/*光标*/
        //         SetPagePic(GRAPHICS_PAGE_0, Pic_0010_448_274);
        //         SetPagePic(GRAPHICS_PAGE_0, Pic_0011_490_168);
        //         if(Menu_Item_Select_Get(MENU_ITEM_LANGUAGE_ENGLISH))
        //         {
        //             g_u8Language = EN;
        //         }
        //         else
        //         {
        //             ;
        //         }
        //         break;
        //     default:
        //         break;
        // }
2139
    }
2140
    else if(g_u8Display_Mode == ModeNIGHT)
2141
    {
2142 2143
        switch (select)
        {
2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173
            case MENU_ITEM_LANGUAGE_CHINESE:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0317_28_396);/*组*/
                SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_140);/*光标*/
                SetPagePic(GRAPHICS_PAGE_0, Pic_0199_475_289);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0200_474_152);
                if(Menu_Item_Select_Get(MENU_ITEM_LANGUAGE_CHINESE))
                {
                    g_u8Language = CH;
                }
                else
                {
                    ;
                }
                break;
            case MENU_ITEM_LANGUAGE_ENGLISH:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0196_14_397);/*组*/
                SetPagePic(GRAPHICS_PAGE_0, Pic_0009_321_261);/*光标*/
                SetPagePic(GRAPHICS_PAGE_0, Pic_0197_448_274);
                SetPagePic(GRAPHICS_PAGE_0, Pic_0198_490_168);
                if(Menu_Item_Select_Get(MENU_ITEM_LANGUAGE_ENGLISH))
                {
                    g_u8Language = EN;
                }
                else
                {
                    ;
                }
                break;
            default:
                break;
2174
        }
王雅楠's avatar
王雅楠 committed
2175 2176
    }
}
2177

王雅楠's avatar
王雅楠 committed
2178
/**
2179 2180
 * @brief 手机互联成功 二级菜单
 * @param[in]  NULL
王雅楠's avatar
王雅楠 committed
2181
 */
2182
void AMT630H_GUI_Phone_Connect_Win(void)
王雅楠's avatar
王雅楠 committed
2183
{
2184
    if (Pic_mode == PIC_DAYTIME_CH)
王雅楠's avatar
王雅楠 committed
2185
    {
2186 2187 2188
        SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_140);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0127_27_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0128_429_152);
王雅楠's avatar
王雅楠 committed
2189 2190 2191
    }
    else if (Pic_mode == PIC_NIGHTTIME_CH)
    {
2192 2193 2194
        SetPagePic(GRAPHICS_PAGE_0, Pic_0315_27_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_140);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0316_429_152);
2195
    }
王雅楠's avatar
王雅楠 committed
2196 2197
    else if (Pic_mode == PIC_DAYTIME_EN)
    {
2198 2199 2200
        SetPagePic(GRAPHICS_PAGE_0, Pic_0003_23_397);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_140);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0005_304_155);
王雅楠's avatar
王雅楠 committed
2201 2202 2203
    }
    else if (Pic_mode == PIC_NIGHTTIME_EN)
    {
2204 2205
        SetPagePic(GRAPHICS_PAGE_0, Pic_0194_23_397);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_140);
2206
        SetPagePic(GRAPHICS_PAGE_0, Pic_0195_304_155);
2207 2208 2209
    }
}

2210
/**************************************主界面************************************/
2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375
static const uint16_t NumbeList_TIME_DAY[] = {
    Pic_0523_950_491,
    Pic_0524_957_491,
    Pic_0525_951_491,
    Pic_0526_952_491,
    Pic_0527_950_491,
    Pic_0528_951_491,
    Pic_0529_951_491,
    Pic_0530_950_491,
    Pic_0531_951_491,
    Pic_0532_951_491,
    Pic_0533_959_511,
    Pic_0534_953_501,
};
static const uint16_t NumbeList_TIME_NIGHT[] = {
    Pic_0635_950_491,
    Pic_0636_957_491,
    Pic_0637_951_491,
    Pic_0638_952_491,
    Pic_0639_950_491,
    Pic_0640_951_491,
    Pic_0641_951_491,
    Pic_0642_950_491,
    Pic_0643_951_491,
    Pic_0644_951_491,
    Pic_0645_959_511,
    Pic_0646_953_501,
};
static const uint16_t NumbeList_Telephone[] = {
    Pic_0536_54_499,
    Pic_0537_55_499,
    Pic_0538_54_499,
    Pic_0539_54_499,
    Pic_0540_54_499,
    Pic_0541_54_499,
    Pic_0542_55_499,
    Pic_0543_54_499,
    Pic_0544_54_499,
    Pic_0545_54_499,
    Pic_0546_58_514,
    Pic_0547_57_510,
};
static const uint16_t NumbeList_Voltage_DAY[] = {
    Pic_0565_943_451,
    Pic_0567_948_451,
    Pic_0568_944_451,
    Pic_0569_944_451,
    Pic_0570_943_451,
    Pic_0571_943_451,
    Pic_0572_944_451,
    Pic_0573_943_451,
    Pic_0574_943_451,
    Pic_0575_944_451,
    Pic_0566_949_465,
    Pic_0576_945_458,
};
static const uint16_t NumbeList_Voltage_NIGHT[] = {
    Pic_0673_943_451,
    Pic_0675_948_451,
    Pic_0676_944_451,
    Pic_0677_944_451,
    Pic_0678_943_451,
    Pic_0679_943_451,
    Pic_0680_944_451,
    Pic_0681_943_451,
    Pic_0682_943_451,
    Pic_0683_944_451,
    Pic_0674_949_465,
    Pic_0684_945_458,
};
static const uint16_t NumbeList_ODO_DAY[] = {
    Pic_0579_53_328,
    Pic_0581_61_327,
    Pic_0582_54_327,
    Pic_0583_54_327,
    Pic_0584_52_327,
    Pic_0585_54_327,
    Pic_0586_54_327,
    Pic_0587_53_327,
    Pic_0588_53_327,
    Pic_0589_54_327,
    Pic_0590_62_349,
    Pic_0591_56_338,
};
static const uint16_t NumbeList_ODO_NIGHT[] = {
    Pic_0687_53_328,
    Pic_0689_61_327,
    Pic_0690_54_327,
    Pic_0691_54_327,
    Pic_0692_52_327,
    Pic_0693_54_327,
    Pic_0694_54_327,
    Pic_0695_53_327,
    Pic_0696_53_327,
    Pic_0697_54_327,
    Pic_0698_62_349,
    Pic_0699_56_338,
};
static const uint16_t NumbeList_VSpeed_DAY[] = {
    Pic_0594_456_256,
    Pic_0595_492_255,
    Pic_0596_458_255,
    Pic_0597_461_255,
    Pic_0598_451_255,
    Pic_0599_458_255,
    Pic_0600_459_255,
    Pic_0601_454_255,
    Pic_0602_456_255,
    Pic_0603_459_255,
    Pic_0604_500_361,
    Pic_0605_470_308,
};
static const uint16_t NumbeList_VSpeed_NIGHT[] = {
    Pic_0702_456_256,
    Pic_0703_492_255,
    Pic_0704_458_255,
    Pic_0705_461_255,
    Pic_0706_451_255,
    Pic_0707_458_255,
    Pic_0708_459_255,
    Pic_0709_454_255,
    Pic_0710_456_255,
    Pic_0711_459_255,
    Pic_0712_500_361,
    Pic_0713_470_308,
};
static const uint16_t PICList_ESpeed_DAY[] = {
    Pic_0619_94_123,
    Pic_0618_140_111,
    Pic_0617_193_110,
    Pic_0616_291_128,
    Pic_0615_381_149,
    Pic_0614_446_149,
    Pic_0613_511_149,
    Pic_0612_569_149,
    Pic_0611_623_119,
    Pic_0610_677_110,
    Pic_0609_731_111,
    Pic_0608_782_125,
};
static const uint16_t PICList_ESpeed_NIGHT[] = {
    Pic_0727_94_123,
    Pic_0726_138_111,
    Pic_0725_191_110,
    Pic_0724_292_128,
    Pic_0723_379_149,
    Pic_0722_94_114,
    Pic_0721_511_149,
    Pic_0720_570_149,
    Pic_0719_623_119,
    Pic_0718_677_110,
    Pic_0717_731_111,
    Pic_0716_782_125,
};
static const uint16_t PICList_Fuel[] = {
    Pic_0554_315_473,
    Pic_0555_366_473,
    Pic_0556_426_473,
    Pic_0557_469_473,
    Pic_0558_514_473,
    Pic_0559_550_473,
    Pic_0560_586_473,
    Pic_0561_623_473,
};

2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442
/*指示灯*/
static void AMT630H_GUI_Light()
{
    if(Get_TelltalesLedSts(em_LED_Turn_Left))
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0752_28_13);
    }
    if(Get_TelltalesLedSts(em_LED_Turn_Right))
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0736_941_13);
    }
    if(Get_TelltalesLedSts(em_LED_High_Beam))
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0744_402_21);
    }
    if(Get_TelltalesLedSts(em_LED_Efi_Fault))
    {
        ;
    }
    if(Get_TelltalesLedSts(em_LED_ABS))
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0743_476_20);
    }
    if(Get_TelltalesLedSts(em_LED_Auto_Start_Stop))
    {

    }
    if(Get_TelltalesLedSts(em_LED_Oil_Pressure_Alert))
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0738_792_25);
    }
    if(Get_TelltalesLedSts(em_LED_TCS))
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0750_106_26);
    }
    else
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0750_106_26);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0751_111_30);
    }
    if(Get_TelltalesLedSts(em_LED_HEV))
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0747_244_26);
    }
    if(Get_TelltalesLedSts(em_LED_Coolant_Temperature))
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0741_616_20);
    }
    if(Get_TelltalesLedSts(em_LED_WIFI))
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0737_875_23);
    }
    if(Get_TelltalesLedSts(em_LED_Bluetooth))
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0740_682_21);
    }
    if(Get_TelltalesLedSts(em_LED_E))
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0748_194_26);
    }
    if(Get_TelltalesLedSts(em_LED_S))
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0749_192_26);
    }
}


2443 2444 2445
/*时间显示函数*/
static void AMT630H_GUI_TIME(uint16_t Hour, uint16_t Minute)
{
2446
    if (g_u8Display_Mode == ModeDAY)
2447 2448
    {
        /*外部接收小时和分钟*/
2449
        if (FLASH_SYNC_1Hz)
2450
        {
2451
            SetPagePicFree(GRAPHICS_PAGE_0, Pic_0522_916_503, 918, 501);
2452
        }
2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474
        DISPLAY_NUM_ST DisplayNumPara;
        uint16_t HourNumber;
        uint16_t MinuteNumber;
        HourNumber = Hour;
        MinuteNumber = Minute;
        /*小时显示*/
        DisplayNumPara.NumList = NumbeList_TIME_DAY;
        DisplayNumPara.x = 891;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 23;
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, HourNumber);
        /*分钟显示*/
        DisplayNumPara.NumList = NumbeList_TIME_DAY;
        DisplayNumPara.x = 950;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 23;
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, MinuteNumber);
    }
2475
    else if (g_u8Display_Mode == ModeNIGHT)
2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522
    {
        /*外部接收小时和分钟*/
        SetPagePic(GRAPHICS_PAGE_0, Pic_0634_916_503);
        DISPLAY_NUM_ST DisplayNumPara;
        uint16_t HourNumber;
        uint16_t MinuteNumber;
        HourNumber = Hour;
        MinuteNumber = Minute;
        /*小时显示*/
        DisplayNumPara.NumList = NumbeList_TIME_NIGHT;
        DisplayNumPara.x = 891;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 23;
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, HourNumber);
        /*分钟显示*/
        DisplayNumPara.NumList = NumbeList_TIME_NIGHT;
        DisplayNumPara.x = 950;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 23;
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, MinuteNumber);
    }
}

/*手机号显示函数*/
// uint16_t Telephone[] = {1,2,3,4,5,6,7,8,9,1,1};
// static void AMT630H_GUI_Telephone(uint16_t Telephone[])
// {
//     DISPLAY_NUM_ST DisplayNumPara;
//     SetPagePic(GRAPHICS_PAGE_0, Pic_0548_62_401); /*电话图标*/
//     /*预留来电人显示*/
//     for(int i=0;i<11;i++)
//     {
//         DisplayNumPara.NumList = NumbeList_Telephone;
//         DisplayNumPara.x = XList_Telephone[i];
//         DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT |0;
//         DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
//         DisplayNumPara.DecimalNum = 0;
//         DisplayNumPara.MinDigits = 1;
//         DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara,Telephone[i]);
//     }
// }

/*燃油显示函数*/
2523 2524
uint8_t g_u16_GUI_PerFuelLevel = 1;
static void AMT630H_GUI_Fuel(uint8_t Fuel)
2525 2526 2527 2528 2529
{
    /*外部传参燃油处于数组第几格*/
    /*R>83且处于非开路状态时 黄色燃油灯闪烁*/
    /*R开路状态时 黄色燃油灯闪烁*/
    /*以上两种情况黄色燃油灯闪烁的频率不同*/
2530
    uint8_t FuelLevel;
2531
    FuelLevel = Fuel;
2532
    static uint8_t s_FuelLowTime = 0U;
2533
    if (g_u8Display_Mode == ModeDAY)
2534 2535 2536 2537 2538 2539
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0553_315_473); /*燃油格*/
        SetPagePic(GRAPHICS_PAGE_0, Pic_0549_299_533); /*E*/
        SetPagePic(GRAPHICS_PAGE_0, Pic_0550_715_533); /*F*/
        if (FuelLevel == 0)
        {
2540 2541 2542 2543
            if (FLASH_SYNC_1Hz)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0552_503_529); /*黄色燃油灯*/
            }
2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556
            s_FuelLowTime = 0;
        }
        else if (FuelLevel == 1)
        {
            s_FuelLowTime++;
            if (s_FuelLowTime < 15)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0552_503_529); /*黄色燃油灯*/
            }
            if (s_FuelLowTime == 20)
            {
                s_FuelLowTime = 0;
            }
2557 2558 2559 2560
        }
        else
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0551_503_529); /*黑色燃油灯*/
2561
            s_FuelLowTime = 0;
2562 2563
        }
    }
2564
    else if (g_u8Display_Mode == ModeNIGHT)
2565 2566 2567 2568 2569 2570
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0662_315_473); /*燃油格*/
        SetPagePic(GRAPHICS_PAGE_0, Pic_0549_299_533); /*E*/
        SetPagePic(GRAPHICS_PAGE_0, Pic_0660_715_533); /*F*/
        if (FuelLevel == 0)
        {
2571 2572 2573 2574
            if (FLASH_SYNC_1Hz)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0552_503_529); /*黄色燃油灯*/
            }
2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616
        }
        else
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0661_503_529); /*白色燃油灯*/
        }
    }

    /*燃油格数走格*/
    if (FuelLevel > 1)
    {
        if (FuelLevel != g_u16_GUI_PerFuelLevel)
        {
            if (FuelLevel > g_u16_GUI_PerFuelLevel)
            {
                g_u16_GUI_PerFuelLevel++;
            }
            else if ((FuelLevel < g_u16_GUI_PerFuelLevel) && (g_u16_GUI_PerFuelLevel != 0))
            {
                g_u16_GUI_PerFuelLevel--;
            }
            else if (FuelLevel == g_u16_GUI_PerFuelLevel)
            {
            }
        }
        else if (FuelLevel == g_u16_GUI_PerFuelLevel)
        {
        }

        for (uint8_t i = 0; i < g_u16_GUI_PerFuelLevel; i++)
        {
            SetPagePic(GRAPHICS_PAGE_0, PICList_Fuel[i]);
        }
    }
    else
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0562_315_473);
    }
}

/*电压显示函数*/
static void AMT630H_GUI_Voltage(uint16_t Voltage)
{
2617
    if (g_u8Display_Mode == ModeDAY)
2618 2619 2620 2621
    {
        DISPLAY_NUM_ST DisplayNumPara;
        uint16_t VoltageNumber;
        VoltageNumber = Voltage / 10;
2622 2623 2624 2625
        if (Voltage % 10 > 5)
        {
            VoltageNumber++;
        }
2626 2627 2628 2629
        uint16_t Voltage_Hundred;
        uint16_t Voltage_Ten;
        uint16_t Voltage_Unit;
        uint16_t Front;
2630 2631 2632 2633
        if ((VoltageNumber <= 120) || (VoltageNumber > 150))
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0563_923_407); /*电压图标*/
        }
2634 2635 2636 2637
        else
        {
            ;
        }
2638 2639 2640 2641
        /*数据处理*/
        Voltage_Hundred = VoltageNumber / 100;
        Voltage_Ten = (VoltageNumber % 100) / 10;
        Voltage_Unit = VoltageNumber % 10;
2642
        Front = Voltage_Hundred * 10 + Voltage_Ten;
2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680
        DisplayNumPara.NumList = NumbeList_Voltage_DAY;

        if ((VoltageNumber >= 100) && (VoltageNumber < 1000))
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0564_966_451); /* V */
            SetPagePic(GRAPHICS_PAGE_0, Pic_0566_946_465); /* . */
            DisplayNumPara.x = 951;
            DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 0;
            DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
            DisplayNumPara.DecimalNum = 0;
            DisplayNumPara.MinDigits = 1;
            DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Voltage_Unit);

            DisplayNumPara.x = 930;
            DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 15;
            DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
            DisplayNumPara.DecimalNum = 0;
            DisplayNumPara.MinDigits = 2;
            DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Front);
        }

        else if (0 <= VoltageNumber < 100)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0564_958_451); /* V */
            SetPagePic(GRAPHICS_PAGE_0, Pic_0566_938_465); /* . */
            DisplayNumPara.x = 943;
            DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 21;
            DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
            DisplayNumPara.DecimalNum = 1;
            DisplayNumPara.MinDigits = 2;
            DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, VoltageNumber);
        }

        else
        {
            ;
        }
    }
2681
    else if (g_u8Display_Mode == ModeNIGHT)
2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740
    {
        DISPLAY_NUM_ST DisplayNumPara;
        uint16_t VoltageNumber;
        VoltageNumber = Voltage / 10;
        uint16_t Voltage_Hundred;
        uint16_t Voltage_Ten;
        uint16_t Voltage_Unit;
        uint16_t Front;

        /*数据处理*/
        Voltage_Hundred = VoltageNumber / 100;
        Voltage_Ten = (VoltageNumber % 100) / 10;
        Voltage_Unit = VoltageNumber % 10;
        Front = Voltage_Ten * 10 + Voltage_Unit;
        DisplayNumPara.NumList = NumbeList_Voltage_NIGHT;

        if ((VoltageNumber >= 100) && (VoltageNumber < 1000))
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0672_966_451); /* V */
            SetPagePic(GRAPHICS_PAGE_0, Pic_0674_946_465); /* . */
            DisplayNumPara.x = 951;
            DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 0;
            DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
            DisplayNumPara.DecimalNum = 0;
            DisplayNumPara.MinDigits = 1;
            DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Voltage_Unit);

            DisplayNumPara.x = 930;
            DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 15;
            DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
            DisplayNumPara.DecimalNum = 0;
            DisplayNumPara.MinDigits = 2;
            DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Front);
        }

        else if (0 <= VoltageNumber < 100)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0672_958_451); /* V */
            SetPagePic(GRAPHICS_PAGE_0, Pic_0674_938_465); /* . */
            DisplayNumPara.x = 943;
            DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 21;
            DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
            DisplayNumPara.DecimalNum = 1;
            DisplayNumPara.MinDigits = 2;
            DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, VoltageNumber);
        }
        else
        {
            ;
        }
    }

    else
    {
        ;
    }
}

/*大计里程显示函数*/
2741
static void AMT630H_GUI_ODO(uint32_t ODO, uint8_t mode)
2742
{
2743
    if (g_u8Display_Mode == ModeDAY)
2744 2745
    {
        /*ODO位数不同 KM位置不同*/
2746 2747 2748
        SetPagePic(GRAPHICS_PAGE_0, Pic_0577_48_272);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0578_55_296);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0580_211_324);
2749 2750

        DISPLAY_NUM_ST DisplayNumPara;
2751
        uint16_t ODONumber;
2752
        ODONumber = ODO;
2753 2754

        DisplayNumPara.NumList = NumbeList_ODO_DAY;
2755
        DisplayNumPara.x = 173;
2756 2757
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 24;
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
2758
        DisplayNumPara.DecimalNum = 0;
2759 2760
        DisplayNumPara.MinDigits = 6;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, ODONumber);
2761 2762
    }

2763
    else if (g_u8Display_Mode == ModeNIGHT)
2764 2765
    {
        /*ODO位数不同 KM位置不同*/
2766 2767 2768
        SetPagePic(GRAPHICS_PAGE_0, Pic_0685_48_272);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0686_55_296);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0688_211_324);
2769 2770

        DISPLAY_NUM_ST DisplayNumPara;
2771
        uint16_t ODONumber;
2772
        ODONumber = ODO;
2773 2774

        DisplayNumPara.NumList = NumbeList_ODO_NIGHT;
2775
        DisplayNumPara.x = 173;
2776 2777
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 24;
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
2778
        DisplayNumPara.DecimalNum = 0;
2779 2780
        DisplayNumPara.MinDigits = 6;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, ODONumber);
2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791
    }

    else
    {
        ;
    }
}

/*车速显示函数*/
static void AMT630H_GUI_VSpeed(uint16_t VSpeed)
{
2792
    if (g_u8Display_Mode == ModeDAY)
2793 2794 2795 2796 2797 2798 2799 2800 2801 2802
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0592_617_271);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0593_889_310);

        /*数据处理*/
        DISPLAY_NUM_ST DisplayNumPara;
        uint16_t VSpeedNumber;
        VSpeedNumber = VSpeed;

        DisplayNumPara.NumList = NumbeList_VSpeed_DAY;
2803
        if (100 <= VSpeedNumber)
2804 2805 2806 2807 2808 2809 2810 2811 2812
        {
            DisplayNumPara.x = 574;
            DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 118;
            DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
            DisplayNumPara.DecimalNum = 0;
            DisplayNumPara.MinDigits = 3;
            DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, VSpeedNumber);
        }

2813
        else if ((10 <= VSpeedNumber))
2814 2815 2816 2817 2818 2819 2820 2821 2822
        {
            DisplayNumPara.x = 515;
            DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 118;
            DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
            DisplayNumPara.DecimalNum = 0;
            DisplayNumPara.MinDigits = 2;
            DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, VSpeedNumber);
        }

2823
        else if (0 <= VSpeedNumber)
2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838
        {
            if (VSpeedNumber == 1)
            {
                DisplayNumPara.x = 492; // 1的宽度与其他数字不同 坐标没给
            }
            else
            {
                DisplayNumPara.x = 456;
            }
            DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 118;
            DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
            DisplayNumPara.DecimalNum = 0;
            DisplayNumPara.MinDigits = 1;
            DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, VSpeedNumber);
        }
2839 2840 2841 2842
        else
        {
            ;
        }
2843
    }
2844
    else if (g_u8Display_Mode == ModeNIGHT)
2845 2846 2847 2848 2849 2850 2851 2852 2853 2854
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0700_617_271);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0701_889_310);

        /*数据处理*/
        DISPLAY_NUM_ST DisplayNumPara;
        uint16_t VSpeedNumber;
        VSpeedNumber = VSpeed;

        DisplayNumPara.NumList = NumbeList_VSpeed_NIGHT;
2855
        if (100 <= VSpeedNumber)
2856 2857 2858 2859 2860 2861 2862 2863 2864
        {
            DisplayNumPara.x = 574;
            DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 118;
            DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
            DisplayNumPara.DecimalNum = 0;
            DisplayNumPara.MinDigits = 3;
            DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, VSpeedNumber);
        }

2865
        else if (10 <= VSpeedNumber)
2866 2867 2868 2869 2870 2871 2872 2873 2874
        {
            DisplayNumPara.x = 515;
            DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 118;
            DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
            DisplayNumPara.DecimalNum = 0;
            DisplayNumPara.MinDigits = 2;
            DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, VSpeedNumber);
        }

2875
        else if (0 <= VSpeedNumber)
2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905
        {
            if (VSpeedNumber == 1)
            {
                DisplayNumPara.x = 492; // 1的宽度与其他数字不同 坐标没给
            }
            else
            {
                DisplayNumPara.x = 456;
            }
            DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 118;
            DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
            DisplayNumPara.DecimalNum = 0;
            DisplayNumPara.MinDigits = 1;
            DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, VSpeedNumber);
        }

        else
        {
            ;
        }
    }
    else
    {
        ;
    }
}

/*转速显示函数*/
static void AMT630H_GUI_ESpeed(uint16_t ESpeed)
{
2906
    uint8_t PIC = 0;
2907
    if (g_u8Display_Mode == ModeDAY)
2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0606_834_199); /* 1000r/min */
        SetPagePic(GRAPHICS_PAGE_0, Pic_0607_94_110);  /* 底 */
        SetPagePic(GRAPHICS_PAGE_0, Pic_0620_56_165);  /* 数字0-12 */
        SetPagePic(GRAPHICS_PAGE_0, Pic_0621_118_95);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0622_178_81);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0623_268_89);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0624_350_114);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0625_422_114);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0626_498_114);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0627_570_114);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0628_634_114);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0629_721_86);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0630_803_81);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0631_877_95);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0632_925_165);

        /*数据处理*/
        uint16_t ESpeedLevel;
        uint16_t ESpeedNumber;
        ESpeedNumber = ESpeed;

        if (ESpeedNumber > 0)
        {
            ESpeedLevel = (ESpeedNumber - 1) / 1000;
2933 2934 2935 2936
            for (PIC = 0; PIC <= ESpeedLevel; PIC++)
            {
                SetPagePic(GRAPHICS_PAGE_0, PICList_ESpeed_DAY[PIC]);
            }
2937 2938 2939
        }
        else if (ESpeedNumber == 0)
        {
2940
            ESpeedLevel = 0;
2941 2942 2943
        }
    }

2944
    else if (g_u8Display_Mode == ModeNIGHT)
2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969
    {
        SetPagePic(GRAPHICS_PAGE_0, Pic_0714_834_199); /* 1000r/min */
        SetPagePic(GRAPHICS_PAGE_0, Pic_0715_94_110);  /* 底 */
        SetPagePic(GRAPHICS_PAGE_0, Pic_0728_56_165);  /* 数字0-12 */
        SetPagePic(GRAPHICS_PAGE_0, Pic_0729_118_95);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0730_178_81);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0731_268_89);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0732_350_114);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0733_422_114);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0734_498_114);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0735_570_114);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0628_634_114);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0629_721_86);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0630_803_81);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0631_877_95);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0632_925_165);

        /*数据处理*/
        uint16_t ESpeedLevel;
        uint16_t ESpeedNumber;
        ESpeedNumber = ESpeed;

        if (ESpeedNumber > 0)
        {
            ESpeedLevel = (ESpeedNumber - 1) / 1000;
2970 2971 2972 2973
            for (PIC = 0; PIC <= ESpeedLevel; PIC++)
            {
                SetPagePic(GRAPHICS_PAGE_0, PICList_ESpeed_NIGHT[PIC]);
            }
2974 2975 2976
        }
        else if (ESpeedNumber == 0)
        {
2977
            ESpeedLevel = 0;
2978 2979 2980 2981 2982 2983 2984 2985 2986 2987
        }
    }
    else
    {
        ;
    }
}

/******************************************************************************************/
/**
2988
 * @brief 主界面显示
2989 2990 2991 2992
 *
 */
void AMT630H_GUI_BACKGRAND()
{
2993 2994
    /*背景图*/
    if(g_u8Display_Mode == ModeDAY)
2995
    {
2996 2997 2998 2999 3000 3001 3002 3003 3004 3005
        if(g_u8Language == CH)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0382_0_0);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0753_109_331);
        }
        else if(g_u8Language == EN)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0382_0_0);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0753_109_331);
        }
3006
    }
3007
    if(g_u8Display_Mode == ModeNIGHT)
3008
    {
3009 3010 3011 3012 3013 3014 3015 3016 3017 3018
        if(g_u8Language == CH)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0001_0_0);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0754_109_347);
        }
        else if(g_u8Language == EN)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0001_0_0);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0754_109_347);
        }
3019 3020
    }

3021 3022
    /*主界面函数*/
    
3023
    AMT630H_GUI_TIME(Get_Dis_Hour_Time(), Get_Dis_Minute_Time());
3024
    /* AMT630H_GUI_Telephone(Telephone); */
3025
    if (Get_Fuel_Sensor_State() == FuelSensorNormal)
3026 3027 3028 3029 3030 3031 3032 3033 3034
    {
        AMT630H_GUI_Fuel(Get_CurFuelSetp());
    }
    else
    {
        AMT630H_GUI_Fuel(0);
    }
    AMT630H_GUI_Voltage((ADC_Read_Signal(ADC_CH_KL30_VOLTAGE)) / 10);
    AMT630H_GUI_ODO(Get_ODO_Value() / 10, 0);
3035
    if (Get_VechileSpeedValid() == 1)
3036
    {
3037
        AMT630H_GUI_VSpeed(Get_DispVechileSpeed() / 10);
3038 3039 3040 3041 3042
    }
    else
    {
        AMT630H_GUI_VSpeed(0);
    }
3043 3044 3045 3046 3047 3048 3049 3050
    if (Get_EngineValid() == 1)
    {
        AMT630H_GUI_ESpeed(Get_DispEngineSpeed());
    }
    else
    {
        AMT630H_GUI_ESpeed(0);
    }
3051
}
3052

3053 3054
void AMT630H_GUI_SETTING()
{
3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085
    
   if (g_u8Display_Mode == ModeDAY)
   {
      if(g_u8Language == CH)
      {
          SetPagePic(GRAPHICS_PAGE_0, Pic_0382_0_0);/*修改为PNG格式*/
          SetPagePic(GRAPHICS_PAGE_0, Pic_0380_396_528);
          SetPagePic(GRAPHICS_PAGE_0, Pic_0381_615_528);
      }
      else if(g_u8Language == EN)
      {
          SetPagePic(GRAPHICS_PAGE_0, Pic_0002_0_0);
          SetPagePic(GRAPHICS_PAGE_0, Pic_0380_396_528);
          SetPagePic(GRAPHICS_PAGE_0, Pic_0381_615_528);
      }
   }
   else if(g_u8Display_Mode == ModeNIGHT)
   {
      if(g_u8Language == CH)
      {
          SetPagePic(GRAPHICS_PAGE_0, Pic_0193_0_0);
          SetPagePic(GRAPHICS_PAGE_0, Pic_0380_396_528);
          SetPagePic(GRAPHICS_PAGE_0, Pic_0381_615_528);
      }
      else if(g_u8Language == EN)
      {
          SetPagePic(GRAPHICS_PAGE_0, Pic_0193_0_0);
          SetPagePic(GRAPHICS_PAGE_0, Pic_0380_396_528);
          SetPagePic(GRAPHICS_PAGE_0, Pic_0381_615_528);
      }
   }
3086 3087 3088 3089
}

void AMT630H_GUI_DisplayProc(void)
{
3090
    SetPageGuid(GRAPHICS_PAGE_0, 1, 0, 0);
3091

3092
    AMT630H_GUI_Background();
3093

3094
    PackedTransfer_Page();
3095
}
3096 3097


3098 3099 3100 3101 3102
void AMT630H_GUI_ReadPosittion_Display(void)
{
    switch (g_u8Cursor_Posittion)
    {
    case MENU_ITEM_MAIN_ITEM:    /*主界面*/
3103 3104
        AMT630H_GUI_BACKGRAND();
        AMT630H_GUI_Light(); /*主界面*/
3105
        break;
3106
    case MENU_ITEM_DISPLAY_MODE: /*01 显示模式*/
3107 3108 3109
        AMT630H_GUI_SETTING();
        AMT630H_GUI_Display_Mode_Information();
        break;
3110
    case MENU_ITEM_SELECT_DAYTIME: /*10日间模式*/
3111
        AMT630H_GUI_SETTING();
3112
        AMT630H_GUI_Display_Mode_Setting(MENU_ITEM_SELECT_DAYTIME);
3113
        break;
3114
    case MENU_ITEM_SELECT_NIGHTTIME: /*11夜间模式*/
3115
        AMT630H_GUI_SETTING();
3116 3117
        AMT630H_GUI_Display_Mode_Setting(MENU_ITEM_SELECT_NIGHTTIME);
        break;            
3118
    case MENU_ITEM_SELECT_AUTO: /*12自动模式*/
3119
        AMT630H_GUI_SETTING();
3120
        AMT630H_GUI_Display_Mode_Setting(MENU_ITEM_SELECT_AUTO);
3121
        break;
3122
    case MENU_ITEM_BACKLIGHT_SETTING: /*02 背光设置*/
3123 3124 3125
        AMT630H_GUI_SETTING();
        AMT630H_GUI_Backlight_Information();
        break;
3126
    case MENU_ITEM_BACKLIGHT_5: /*13 背光_5*/
3127
        AMT630H_GUI_SETTING();
3128
        AMT630H_GUI_Backlight_Setting(MENU_ITEM_BACKLIGHT_5);
3129
        break;
3130
    case MENU_ITEM_BACKLIGHT_4: /*14 背光_4*/
3131
        AMT630H_GUI_SETTING();
3132
        AMT630H_GUI_Backlight_Setting(MENU_ITEM_BACKLIGHT_4);
3133
        break;
3134
    case MENU_ITEM_BACKLIGHT_3: /*15 背光_3*/
3135
        AMT630H_GUI_SETTING();
3136
        AMT630H_GUI_Backlight_Setting(MENU_ITEM_BACKLIGHT_3);
3137
        break;
3138
    case MENU_ITEM_BACKLIGHT_2: /*16 背光_2*/
3139
        AMT630H_GUI_SETTING();
3140
        AMT630H_GUI_Backlight_Setting(MENU_ITEM_BACKLIGHT_2);
3141
        break;
3142
    case MENU_ITEM_BACKLIGHT_1: /*17 背光_1*/
3143
        AMT630H_GUI_SETTING();
3144
        AMT630H_GUI_Backlight_Setting(MENU_ITEM_BACKLIGHT_1);
3145
        break;
3146
    case MENU_ITEM_BACKLIGHT_AUTO: /*18 背光自动*/
3147
        AMT630H_GUI_SETTING();
3148
        AMT630H_GUI_Backlight_Setting(MENU_ITEM_BACKLIGHT_AUTO);
3149 3150
        break;

3151
    case MENU_ITEM_BLUETOOTH_CONNECT: /*03 蓝牙连接*/
3152
        AMT630H_GUI_SETTING();
3153
        AMT630H_GUI_Bluetooth_Information(8, Get_Dis_Bluetooth_Open_Close());/*蓝牙开关和联系人接口没给*/
3154 3155 3156
        break;
    case MENU_ITEM_BLUETOOTH_OPEN_CLOSE: /*12 蓝牙_开*/
        AMT630H_GUI_SETTING();
3157
        AMT630H_GUI_Bluetooth_Connect_Setting(0, 8, Get_Dis_Bluetooth_Open_Close());/*蓝牙开关和联系人接口没给*/
3158 3159 3160
        break;
    case MENU_ITEM_BLUETOOTH_SYNC: /*13 蓝牙同步联系人*/
        AMT630H_GUI_SETTING();
3161
        AMT630H_GUI_Bluetooth_Connect_Setting(1, 8, Get_Dis_Bluetooth_Open_Close());/*蓝牙开关和联系人接口没给*/
3162 3163 3164
        break;
    case MENU_ITEM_BLUETOOTH_BACK: /*14 蓝牙返回*/
        AMT630H_GUI_SETTING();
3165
        AMT630H_GUI_Bluetooth_Connect_Setting(2, 8, Get_Dis_Bluetooth_Open_Close());/*蓝牙开关和联系人接口没给*/
3166 3167 3168 3169 3170 3171 3172
        break;
    case MENU_ITEM_CLOCK_SETTING: /*15 时钟设置*/
        AMT630H_GUI_SETTING();
        AMT630H_GUI_Clock_Information(Get_Dis_Hour_Time(), Get_Dis_Minute_Time());
        break;
    case MENU_ITEM_CLOCK_HOUR_TENB: /*20 时钟小时十位*/
        AMT630H_GUI_SETTING();
3173
        AMT630H_GUI_Clock_Setting(Get_Dis_Hour_Time(), Get_Dis_Minute_Time(), 1);
3174 3175 3176
        break;
    case MENU_ITEM_CLOCK_HOUR_BIT: /*19 时钟小时个位*/
        AMT630H_GUI_SETTING();
3177
        AMT630H_GUI_Clock_Setting(Get_Dis_Hour_Time(), Get_Dis_Minute_Time(), 2);
3178 3179 3180
        break;
    case MENU_ITEM_CLOCK_MIN_TENB: /*18 时钟分钟十位*/
        AMT630H_GUI_SETTING();
3181
        AMT630H_GUI_Clock_Setting(Get_Dis_Hour_Time(), Get_Dis_Minute_Time(), 3);
3182 3183 3184
        break;
    case MENU_ITEM_CLOCK_MIN_BIT: /*17 时钟分钟个位*/
        AMT630H_GUI_SETTING();
3185
        AMT630H_GUI_Clock_Setting(Get_Dis_Hour_Time(), Get_Dis_Minute_Time(), 4);
3186 3187 3188
        break;
    case MENU_ITEM_CLOCK_BACK: /*16 时钟返回*/
        AMT630H_GUI_SETTING();
3189
        AMT630H_GUI_Clock_Setting(Get_Dis_Hour_Time(), Get_Dis_Minute_Time(), 5);
3190 3191 3192 3193 3194 3195 3196
        break;
    case MENU_ITEM_UNIT_SETTING: /*21 单位设置*/
        AMT630H_GUI_SETTING();
        AMT630H_GUI_Unit_Information();
        break;
    case MENU_ITEM_UNIT_KM: /*22 选中公制*/
        AMT630H_GUI_SETTING();
3197
        AMT630H_GUI_Unit_Setting(MENU_ITEM_UNIT_KM);
3198 3199 3200
        break;
    case MENU_ITEM_UNIT_MILE: /*23 选中英制*/
        AMT630H_GUI_SETTING();
3201
        AMT630H_GUI_Unit_Setting(MENU_ITEM_UNIT_MILE);
3202 3203 3204 3205 3206 3207 3208
        break;
    case MENU_ITEM_LANGUAGE_SETTING: /*24 语言设置*/
        AMT630H_GUI_SETTING();
        AMT630H_GUI_Language_Information();
        break;
    case MENU_ITEM_LANGUAGE_CHINESE: /*25 选中中文*/
        AMT630H_GUI_SETTING();
3209
        AMT630H_GUI_Language_Setting(MENU_ITEM_LANGUAGE_CHINESE);
3210 3211 3212
        break;
    case MENU_ITEM_LANGUAGE_ENGLISH: /*26 选中英文*/
        AMT630H_GUI_SETTING();
3213
        AMT630H_GUI_Language_Setting(MENU_ITEM_LANGUAGE_ENGLISH);
3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235
        break;
    case MENU_ITEM_FAULT_INFORMATION: /*27 故障信息*/
        AMT630H_GUI_SETTING();
        AMT630H_GUI_Fault_Information();
        break;
    case MENU_ITEM_PHONE_CONNECT: /*28 手机互联*/
        AMT630H_GUI_SETTING();
        AMT630H_GUI_Phone_Connect();
        break;
    case MENU_ITEM_QUIT: /*29 退出*/
        AMT630H_GUI_SETTING();
        AMT630H_GUI_Quit();
        break;
    case MENU_ITEM_PHONE_CONNECT_SET:
        
    case MENU_ITEM_PHONE_CONNECT_APP: /*28 手机互联成功*/
        AMT630H_GUI_SETTING();
        AMT630H_GUI_Phone_Connect_Win();
        break;
    default:
        break;
    }
3236
}