AMT630H_Datas.c 122 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
    if(g_u8Display_Mode == ModeDAY)
52
    {
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
        if(g_u8Language == 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);
        }
        else if(g_u8Language == EN)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0088_47_398);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0084_869_397);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0089_193_488);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0086_762_487);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0090_435_519);
77

78 79 80 81 82 83 84 85 86 87 88
            SetPagePic(GRAPHICS_PAGE_0, Pic_0091_567_356);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0092_368_356);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0093_574_292);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0094_375_292);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0095_633_240);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0096_338_228);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0095_633_175);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0097_334_163);
        }
    }
    else if(g_u8Display_Mode == ModeNIGHT)
89
    {
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
        if(g_u8Language == 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);
        }
        else if(g_u8Language == EN)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0274_47_398);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0275_916_398);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0276_193_488);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0277_728_486);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0278_435_519);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0279_567_356);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0280_368_356);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0281_574_292);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0282_375_292);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0283_633_240);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0284_338_228);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0283_633_175);
            SetPagePic(GRAPHICS_PAGE_0, Pic_0285_334_163);
        }
123 124 125 126 127 128
    }
}
/**
 * @brief 显示模式信息 一级菜单
 * @param[in] null
 */
129
void AMT630H_GUI_Display_Mode_Information()
130
{
131 132 133 134 135 136 137 138 139
    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);
140 141 142 143
    
           SetPagePic(GRAPHICS_PAGE_0, Pic_0147_476_359);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0148_472_256);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0149_448_101);
144 145 146 147 148 149 150 151 152
       }
       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);
           
153 154 155
           SetPagePic(GRAPHICS_PAGE_0, Pic_0072_454_360);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0073_456_257);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0074_422_103);     
156 157 158 159 160 161 162 163 164 165 166
       }
    }
    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);
167 168 169
           SetPagePic(GRAPHICS_PAGE_0, Pic_0334_476_359);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0339_434_232);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0338_476_117);
170 171 172 173 174 175 176 177
       }
       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);
178 179 180
           SetPagePic(GRAPHICS_PAGE_0, Pic_0258_454_360);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0263_414_234);
           SetPagePic(GRAPHICS_PAGE_0, Pic_0262_461_118);
181
       }
182
    } 
183 184

    /*else if自动模式没写*/
185 186
}

187 188 189 190 191

/**
 * @brief 背光设置 一级菜单
 * @param[in] null
 */
192 193
void AMT630H_GUI_Backlight_Information(void)
{
194
    /*日间中文*/
195
    if (g_u8Display_Mode == ModeDAY)/*日间模式下*/
196
    {
197
        /*语言*/
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
        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);
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268
        }
        /*背光等级选择*/
        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);
            }
269
        }
270
    }
271
    else if(g_u8Display_Mode == ModeNIGHT)
272
    {
273 274
        if(g_u8Language == CH)
        {
275 276 277 278 279
            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);
280 281 282 283 284 285 286 287 288
        }
        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);
        }
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344
        /*背光等级选择*/
        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);
            }
        }
345
    }
346
}
347

348
static uint16_t Bluetooth_num_day[] = {
349 350 351 352 353 354 355 356 357
    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,
358
    Pic_0049_605_289};
359 360 361 362 363 364 365 366 367 368 369 370
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,
};
371 372 373 374 375 376 377
/**
 * @brief 蓝牙连接 一级菜单
 * @param[in]  sync_contacts  同步联系人
 * @param[in]  Connect_ON  0 关 1 开
 */
void AMT630H_GUI_Bluetooth_Information(uint8_t sync_contacts, uint8_t Connect_ON)
{
378
    if(g_u8Display_Mode == ModeDAY)
379
    {
380
        if(g_u8Language == CH)
381
        {
382
            SetPagePic(GRAPHICS_PAGE_0, Pic_0137_26_396);
王雅楠's avatar
王雅楠 committed
383

384 385 386 387 388
            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);
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
            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);
            }
423
        }
424
        else if(g_u8Language == EN)
425
        {
426
            SetPagePic(GRAPHICS_PAGE_0, Pic_0034_14_397);
427

428 429 430 431 432 433 434 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
            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);
            }
466
        }
467
    }
468
    else if(g_u8Display_Mode == ModeNIGHT)
469
    {
470
        if(g_u8Language == CH)
471
        {
472
            SetPagePic(GRAPHICS_PAGE_0, Pic_0325_26_396);
473

474 475 476 477 478 479 480 481 482 483 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
            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);
            }
512
        }
513
        else if(g_u8Language == EN)
514
        {
515
            SetPagePic(GRAPHICS_PAGE_0, Pic_0222_14_397);
516

517 518 519 520 521
            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);
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
            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);
            }
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 585 586 587 588 589 590
        }
    }
}

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)
{
591 592 593 594 595
    DISPLAY_NUM_ST DisplayNumPara;
    uint8_t Clock_HourNumber;
    uint8_t Clock_MinNumber;
    Clock_HourNumber = Clock_Hour;
    Clock_MinNumber = Clock_Min;
596

597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618
    if(g_u8Display_Mode == ModeDAY)
    {
        if(g_u8Language == CH)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0135_27_396);/*下方菜单*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0136_489_338);/*返回*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0021_510_222);/* : */
        }
        else if(g_u8Language == 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);/* : */
        }
         
        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);
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
        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(g_u8Display_Mode == ModeNIGHT)
    {
        if(g_u8Language == CH)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0323_27_396);/*下方菜单*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0208_478_341);/*返回*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0209_510_222);/* : */
        }
        else if(g_u8Language == EN)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0206_19_397);/*下方菜单*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0324_489_338);/*返回*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0209_510_222);/* : */
        }
        
        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);
650

651 652 653 654 655 656 657 658
        DisplayNumPara.NumList = Time_num_night;
        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);
    }
王雅楠's avatar
王雅楠 committed
659
}
660

661 662 663 664 665 666
/**
 * @brief 单位设置 一级菜单
 * @param[in] null
 */
void AMT630H_GUI_Unit_Information(void)
{
667
    if(g_u8Display_Mode == ModeDAY)
668
    {
669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696
        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);
            }
        }
697
    }
698
    else if(g_u8Display_Mode == ModeNIGHT)
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 726 727
        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);
            }
        }
728
    }
729
}
730

731 732 733 734 735 736
/**
 * @brief 语言设置 一级菜单
 * @param[in] null
 */
void AMT630H_GUI_Language_Information(void)
{
737
    if(g_u8Display_Mode == ModeDAY)
738
    {
739 740 741 742 743 744 745 746 747 748 749 750
        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);
        }
751
    }
752
    else if(g_u8Display_Mode == ModeNIGHT)
753
    {
754 755 756 757 758 759 760 761 762 763 764 765
        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);
        }
766 767 768
    }
}

769

770 771 772 773 774 775
/**
 * @brief 手机互联 一级菜单
 *
 */
void AMT630H_GUI_Phone_Connect(void)
{
776
    if(g_u8Display_Mode == ModeDAY)
777
    {
778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795
        if(g_u8Language == CH)
        {
            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);
        }
        else if(g_u8Language == 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);
        }
796
    }
797
    else if(g_u8Display_Mode == ModeNIGHT)
798
    {
799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816
        if(g_u8Language == 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);
        }
        else if(g_u8Language == 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);
        }
817
    }
818
}
819

820 821 822 823 824 825
/**
 * @brief 退出 一级菜单
 * @param[in]  null
 */
void AMT630H_GUI_Quit(void)
{
826
    if(g_u8Display_Mode == ModeDAY)
827
    {
828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843
        if(g_u8Language == 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);
        }
        else if(g_u8Language == 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);
        }
844
    }
845
    else if(g_u8Display_Mode == ModeNIGHT)
846
    {
847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862
        if(g_u8Language == 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);
        }
        else if(g_u8Language == 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);
        }
863
    }
864 865
}

866
/***********************************************二级菜单*******************************************/
867 868 869 870 871 872 873 874 875 876
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,
877 878
    Pic_0031_551_211
};
879 880 881 882 883 884 885 886 887 888
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,
889 890
    Pic_0219_551_211
};
891 892 893 894 895 896 897 898 899
/**
 * @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)
{
900
    if(g_u8Display_Mode == ModeDAY)
901
    {
902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975
        SetPagePic(GRAPHICS_PAGE_0, Pic_0021_510_222);/* : */
        if(g_u8Language == CH)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0135_27_396);/*下方菜单*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0136_489_338);/*key 返回*/
            switch (Clock_BIT)
            {
            case MENU_ITEM_CLOCK_HOUR_TENB:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0020_408_209);/*cursor*/
                break;
            case MENU_ITEM_CLOCK_HOUR_BIT:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0020_455_209);/*cursor*/
                break;
            case MENU_ITEM_CLOCK_MIN_TENB:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0020_525_209);/*cursor*/
                break;
            case MENU_ITEM_CLOCK_MIN_BIT:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0020_572_209);/*cursor*/
                break;
            case MENU_ITEM_CLOCK_BACK:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0018_441_335);/*cursor*/
                break;
            case MENU_ITEM_CLOCK_HOUR_TENB_SET:
                /*Cursor blinking*/
                /*Digital changes*/  //Sava picked data and  
                break;
            case MENU_ITEM_CLOCK_HOUR_BIT_SET:
                /*Cursor blinking*/
                /*Digital changes*/
                break;
            case MENU_ITEM_CLOCK_MIN_TENB_SET:
                /*Cursor blinking*/
                /*Digital changes*/
                break;
            case MENU_ITEM_CLOCK_MIN_BIT_SET:
                /*Cursor blinking*/
                /*Digital changes*/
                break;
            default:
                break;
            }
        }
        else if(g_u8Language == EN)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0017_19_397);/*下方菜单*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0019_478_341);/*return*/
            switch (Clock_BIT)
            {
            case MENU_ITEM_CLOCK_HOUR_TENB:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0020_408_209);/*cursor*/
                break;
            case MENU_ITEM_CLOCK_HOUR_BIT:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0020_455_209);/*cursor*/
                break;
            case MENU_ITEM_CLOCK_MIN_TENB:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0020_525_209);/*cursor*/
                break;
            case MENU_ITEM_CLOCK_MIN_BIT:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0020_572_209);/*cursor*/
                break;
            case MENU_ITEM_CLOCK_BACK:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0018_441_335);/*cursor*/
                break;
            case MENU_ITEM_CLOCK_HOUR_TENB_SET:
                break;
            case MENU_ITEM_CLOCK_HOUR_BIT_SET:
                break;
            case MENU_ITEM_CLOCK_MIN_TENB_SET:
                break;
            case MENU_ITEM_CLOCK_MIN_BIT_SET:
                break;
            default:
                break;
            }
976 977
        }

978
        /*display time*/
979
        DISPLAY_NUM_ST DisplayNumPara;
980 981 982 983
        uint8_t Clock_HourNumber;
        uint8_t Clock_MinNumber;
        Clock_HourNumber = Clock_Hour;
        Clock_MinNumber = Clock_Min;
984
        /*Data processing*/
985 986 987
        DisplayNumPara.NumList = time_num_day;
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
        DisplayNumPara.x = 455;
988
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
989 990 991 992 993 994
        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;
995
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
996 997 998
        DisplayNumPara.DecimalNum = 0;
        DisplayNumPara.MinDigits = 2;
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_MinNumber);
999
    }
1000
    else if(g_u8Display_Mode == ModeNIGHT)
1001
    {
1002 1003 1004 1005 1006 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
        SetPagePic(GRAPHICS_PAGE_0, Pic_0209_510_222);/* : */
        if(g_u8Language == CH)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0323_27_396);/*下方菜单*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0324_489_338);/*return*/
            switch (Clock_BIT)
            {
            case MENU_ITEM_CLOCK_HOUR_TENB:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0020_408_209);/*cursor*/
                break;
            case MENU_ITEM_CLOCK_HOUR_BIT:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0020_455_209);/*cursor*/
                break;
            case MENU_ITEM_CLOCK_MIN_TENB:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0020_525_209);/*cursor*/
                break;
            case MENU_ITEM_CLOCK_MIN_BIT:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0020_572_209);/*cursor*/
                break;
            case MENU_ITEM_CLOCK_BACK:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0018_441_335);/*cursor*/
                break;
            case MENU_ITEM_CLOCK_HOUR_TENB_SET:
                break;
            case MENU_ITEM_CLOCK_HOUR_BIT_SET:
                break;
            case MENU_ITEM_CLOCK_MIN_TENB_SET:
                break;
            case MENU_ITEM_CLOCK_MIN_BIT_SET:
                break;
            default:
                break;
            }
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
        else if(g_u8Language == EN)
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0206_19_397);/*下方菜单*/
            SetPagePic(GRAPHICS_PAGE_0, Pic_0208_478_341);/*return*/
            switch (Clock_BIT)
            {
            case MENU_ITEM_CLOCK_HOUR_TENB:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0020_408_209);/*cursor*/
                break;
            case MENU_ITEM_CLOCK_HOUR_BIT:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0020_455_209);/*cursor*/
                break;
            case MENU_ITEM_CLOCK_MIN_TENB:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0020_525_209);/*cursor*/
                break;
            case MENU_ITEM_CLOCK_MIN_BIT:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0020_572_209);/*cursor*/
                break;
            case MENU_ITEM_CLOCK_BACK:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0018_441_335);/*cursor*/
                break;
            case MENU_ITEM_CLOCK_HOUR_TENB_SET:
                break;
            case MENU_ITEM_CLOCK_HOUR_BIT_SET:
                break;
            case MENU_ITEM_CLOCK_MIN_TENB_SET:
                break;
            case MENU_ITEM_CLOCK_MIN_BIT_SET:
                break;
            default:
                break;
            }
        }
        /*display time*/
1070 1071 1072 1073 1074
        DISPLAY_NUM_ST DisplayNumPara;
        uint8_t Clock_HourNumber;
        uint8_t Clock_MinNumber;
        Clock_HourNumber = Clock_Hour;
        Clock_MinNumber = Clock_Min;
1075
        /*data processing*/
1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091
        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);
    }

1092 1093 1094 1095 1096 1097
    // /*日间中文*/
    // 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);
1098

1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118
    //     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;
    //     }
1119

1120 1121 1122 1123 1124
    //     DISPLAY_NUM_ST DisplayNumPara;
    //     uint8_t Clock_HourNumber;
    //     uint8_t Clock_MinNumber;
    //     Clock_HourNumber = Clock_Hour;
    //     Clock_MinNumber = Clock_Min;
1125

1126 1127 1128 1129 1130 1131 1132
    //     DisplayNumPara.NumList = time_num_day;
    //     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);
1133

1134 1135 1136 1137 1138 1139 1140 1141
    //     DisplayNumPara.NumList = time_num_day;
    //     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);
    // }
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
    // /*夜间中文*/
    // 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;
    //     }
    //     /*数据处理*/
    //     DISPLAY_NUM_ST DisplayNumPara;
    //     uint8_t Clock_HourNumber;
    //     uint8_t Clock_MinNumber;
    //     Clock_HourNumber = Clock_Hour;
    //     Clock_MinNumber = Clock_Min;
1175

1176 1177 1178 1179 1180 1181 1182
    //     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);
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
    //     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;
    //     }

    //     /*数据处理*/
    //     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 = 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;
    //     DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
    //     DisplayNumPara.DecimalNum = 0;
    //     DisplayNumPara.MinDigits = 2;
    //     DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_MinNumber);
    // }
1298
}
1299

1300 1301 1302 1303
/**
 * @brief 显示模式设置 二级菜单
 * @param[in]  back_mode  显示模式 0为日间 1为夜间 2为自动
 */
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
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);
                }
1332
                if(Menu_Item_Select_Get(MENU_ITEM_SELECT_DAYTIME) == 1)
1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361
                {
                    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);
                }
1362
                if(Menu_Item_Select_Get(MENU_ITEM_SELECT_NIGHTTIME) == 1)
1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390
                {
                    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);
                }
1391
                if(Menu_Item_Select_Get(MENU_ITEM_SELECT_AUTO) == 1)
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
                {
                    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);
                }
1429
                if(Menu_Item_Select_Get(MENU_ITEM_SELECT_DAYTIME) == 1)
1430 1431 1432 1433 1434 1435 1436 1437
                {
                    g_u8Display_Mode = ModeDAY;
                }
                else
                {
                    ;
                }
                break;
1438

1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459
            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);
                }
1460
                if(Menu_Item_Select_Get(MENU_ITEM_SELECT_NIGHTTIME) == 1)
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 1486 1487 1488 1489
                {
                    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);
                }
1490
                if(Menu_Item_Select_Get(MENU_ITEM_SELECT_AUTO) == 1)
1491 1492 1493 1494 1495 1496 1497 1498 1499 1500
                {
                    g_u8Display_Mode = ModeATUO ;
                }
                else
                {
                    ;
                }
                break;
            default:
                break;
1501 1502
        }
    }
1503
}
1504

1505

1506 1507 1508 1509
/**
 * @brief 背光设置 二级菜单
 * @param[in]  back_mode  背光模式 0为自动
 */
1510
void AMT630H_GUI_Backlight_Setting(Menu_Item_en_t back_mode) /*图 背光*/
1511
{
1512 1513 1514 1515 1516 1517 1518
    /*case 0              自动*/
    /*case 1             选中1*/
    /*case 2             选中2*/
    /*case 3             选中3*/
    /*case 4             选中4*/
    /*case 5             选中5*/

1519
    if(g_u8Display_Mode == ModeDAY)/*日间模式*/
1520
    {
1521
        if(g_u8Language == CH)
1522
        {
1523
            SetPagePic(GRAPHICS_PAGE_0, Pic_0144_37_396);
1524
        }
1525
        else if(g_u8Language == EN)
1526
        {
1527
            SetPagePic(GRAPHICS_PAGE_0, Pic_0057_52_398);
1528 1529
        }

1530
        switch (back_mode)
1531
        {
1532 1533
            case MENU_ITEM_BACKLIGHT_5:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0058_360_138);
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 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
                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;
1649
        }
1650
    }
1651
    else if(g_u8Display_Mode == ModeNIGHT)
1652
    {
1653 1654 1655 1656 1657 1658 1659
        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);
1660
        }
1661 1662

        switch (back_mode)
1663
        {
1664 1665
            case MENU_ITEM_BACKLIGHT_5:
                SetPagePic(GRAPHICS_PAGE_0, Pic_0058_360_138);
1666

1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 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 1712 1713 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 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 1773 1774 1775 1776 1777 1778
                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;
1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811
        }
    }
}

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 开
 */
1812
void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_contacts, uint8_t Connect_ON)
1813
{
1814
    if(g_u8Display_Mode == ModeDAY)
1815
    {
1816
        if(g_u8Language == CH)
1817
        {
1818 1819 1820 1821 1822 1823
            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); /*蓝牙名称*/
1824

1825 1826
            switch (select)
            {
1827
                case MENU_ITEM_BLUETOOTH_OPEN_CLOSE:
1828 1829
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_205);/*蓝牙连接 光标*/
                    break;
1830
                case MENU_ITEM_BLUETOOTH_SYNC:
1831 1832
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0036_336_266);/*同步联系人 光标*/
                    break;
1833
                case MENU_ITEM_BLUETOOTH_BACK:
1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847
                    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);
            }
1848

1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874
            /*同步联系人*/
            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);
            }
1875
        }
1876
        else if(g_u8Language == EN)
1877
        {
1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908
            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);
            }
1909

1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935
            /*蓝牙联系人*/
            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);
            }
1936 1937
        }
    }
1938 1939 1940
    else if(g_u8Display_Mode == ModeNIGHT)
    {
        if(g_u8Language == CH)
1941
        {
1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961
            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;
            }
1962

1963 1964 1965 1966 1967 1968 1969 1970 1971
            /*蓝牙连接*/
            if (Connect_ON == 0)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0328_584_226);
            }
            else
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0327_584_226);
            }
1972

1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998
            /*蓝牙联系人选择*/
            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);
            }
1999
        }
2000
        else if(g_u8Language == EN)
2001
        {
2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034
            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);
            }

            /*蓝牙联系人选择*/
2035
            DISPLAY_NUM_ST DisplayNumPara;
2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062
            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);
            }
2063 2064 2065
        }
    }
}
2066

2067

2068 2069 2070 2071
/**
 * @brief 单位设置 二级菜单
 * @param[in]  select  0为公制 1为英制
 */
2072
void AMT630H_GUI_Unit_Setting(Menu_Interface_en_t select) /*图 单位设置*/
2073
{
2074
    if(g_u8Display_Mode == ModeDAY)
2075
    {
2076
        if(g_u8Language == CH)
2077
        {
2078 2079 2080
            SetPagePic(GRAPHICS_PAGE_0, Pic_0130_27_396);/*组*/
            switch (select)
            {
2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099
                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;
2100 2101 2102
            }
        } 
        else if(g_u8Language == EN)
2103
        {
2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126
            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;
            }
2127 2128
        }
    }
2129
    else if(g_u8Display_Mode == ModeNIGHT)
2130
    {
2131 2132
        SetPagePic(GRAPHICS_PAGE_0, Pic_0318_27_396);/*组*/
        if(g_u8Language == CH)
2133
        {
2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155
            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;
            }
2156
        }
2157
        else if(g_u8Language == EN)
2158
        {
2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181
            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;
            }
2182 2183
        }
    }
2184
}
2185

2186 2187 2188 2189
/**
 * @brief 语言设置 二级菜单
 * @param[in]  select  0为中文 1为英文
 */
2190
void AMT630H_GUI_Language_Setting(Menu_Interface_en_t select) /*图 语言设置*/
2191
{
2192
    if(g_u8Display_Mode == ModeDAY)
2193
    {
2194
        if(g_u8Language == CH)
2195
        {
2196 2197 2198
            SetPagePic(GRAPHICS_PAGE_0, Pic_0129_28_396);/*下方菜单*/
            switch (select)
            {
2199
                case MENU_ITEM_LANGUAGE_CHINESE:/*在日间模式中文下  光标选择中文*/
2200 2201 2202
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_140);/*光标*/
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0007_475_289);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0008_474_152);
2203 2204
                    if(Menu_Item_Select_Get(MENU_ITEM_LANGUAGE_CHINESE) == 1)
                    {
2205
                        g_u8Language = CH;
2206 2207 2208 2209 2210
                    }
                    else
                    {
                        ;
                    }
2211
                    break;
2212
                case MENU_ITEM_LANGUAGE_ENGLISH:/*在日间模式中文下  光标选择英文*/
2213 2214 2215
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0009_321_261);/*光标*/
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0010_448_274);
                    SetPagePic(GRAPHICS_PAGE_0, Pic_0011_490_168);
2216 2217
                    if(Menu_Item_Select_Get(MENU_ITEM_LANGUAGE_ENGLISH) == 1)
                    {
2218
                        g_u8Language = EN;
2219 2220 2221 2222 2223
                    }
                    else
                    {
                        ;
                    }
2224 2225 2226 2227
                    break;
                default:
                    break;
            }
2228
        }
2229
        else if(g_u8Language == EN)/*在日间英文模式下*/
2230
        {
2231 2232 2233 2234 2235 2236 2237
            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);
2238 2239
                    if(Menu_Item_Select_Get(MENU_ITEM_LANGUAGE_CHINESE) == 1)
                    {
2240
                        g_u8Language = CH;
2241 2242 2243 2244 2245
                    }
                    else
                    {
                        ;
                    }
2246 2247 2248 2249 2250
                    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);
2251 2252
                    if(Menu_Item_Select_Get(MENU_ITEM_LANGUAGE_ENGLISH) == 1)
                    {
2253
                        g_u8Language = EN;
2254 2255 2256 2257 2258
                    }
                    else
                    {
                        ;
                    }
2259 2260 2261 2262
                    break;
                default:
                    break;
            }
2263
        }
2264 2265 2266 2267
    }
    else if(g_u8Display_Mode == ModeNIGHT)
    {
        if(g_u8Language == CH)
2268
        {
2269 2270
            SetPagePic(GRAPHICS_PAGE_0, Pic_0317_28_396);/*下方菜单*/
            switch (select)
2271
            {
2272 2273 2274 2275 2276 2277
                case MENU_ITEM_LANGUAGE_CHINESE:/*在夜间中文模式下  光标选择中文*/
                    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) == 1)
                    {
2278
                        g_u8Language = CH;
2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290
                    }
                    else
                    {
                        ;
                    }
                    break;
                case MENU_ITEM_LANGUAGE_ENGLISH:/*在夜间英文模式下  光标选择英文*/
                    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) == 1)
                    {
2291
                        g_u8Language = EN;
2292 2293 2294 2295 2296 2297 2298 2299
                    }
                    else
                    {
                        ;
                    }
                    break;
                default:
                    break;
2300
            }
2301
        }
2302
        else if(g_u8Language == EN)
2303
        {
2304 2305 2306
            SetPagePic(GRAPHICS_PAGE_0, Pic_0196_14_397);/*下方菜单*/
            switch (select)
            {
2307
                case MENU_ITEM_LANGUAGE_CHINESE:/*在夜间英文模式下  选择中文*/
2308 2309 2310 2311 2312
                    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) == 1)
                    {
2313
                        g_u8Language = CH;
2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325
                    }
                    else
                    {
                        ;
                    }
                    break;
                case MENU_ITEM_LANGUAGE_ENGLISH:/*在夜间英文模式下  选择英文*/
                    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) == 1)
                    {
2326
                        g_u8Language = EN;
2327 2328 2329 2330 2331 2332 2333 2334 2335
                    }
                    else
                    {
                        ;
                    }
                    break;
                default:
                    break;
            }
2336
        }
2337
    } 
王雅楠's avatar
王雅楠 committed
2338
}
2339 2340
    

2341

王雅楠's avatar
王雅楠 committed
2342
/**
2343 2344
 * @brief 手机互联成功 二级菜单
 * @param[in]  NULL
王雅楠's avatar
王雅楠 committed
2345
 */
2346
void AMT630H_GUI_Phone_Connect_Win(void)
王雅楠's avatar
王雅楠 committed
2347
{
2348
    if (Pic_mode == PIC_DAYTIME_CH)
王雅楠's avatar
王雅楠 committed
2349
    {
2350 2351 2352
        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
2353 2354 2355
    }
    else if (Pic_mode == PIC_NIGHTTIME_CH)
    {
2356 2357 2358
        SetPagePic(GRAPHICS_PAGE_0, Pic_0315_27_396);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_140);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0316_429_152);
2359
    }
王雅楠's avatar
王雅楠 committed
2360 2361
    else if (Pic_mode == PIC_DAYTIME_EN)
    {
2362 2363 2364
        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
2365 2366 2367
    }
    else if (Pic_mode == PIC_NIGHTTIME_EN)
    {
2368 2369
        SetPagePic(GRAPHICS_PAGE_0, Pic_0194_23_397);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_140);
2370
        SetPagePic(GRAPHICS_PAGE_0, Pic_0195_304_155);
2371 2372 2373
    }
}

2374
/**************************************主界面************************************/
2375 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 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 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 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539
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,
};

2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 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
/*指示灯*/
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);
    }
}


2607 2608 2609
/*时间显示函数*/
static void AMT630H_GUI_TIME(uint16_t Hour, uint16_t Minute)
{
2610
    if (g_u8Display_Mode == ModeDAY)
2611 2612
    {
        /*外部接收小时和分钟*/
2613
        if (FLASH_SYNC_1Hz)
2614
        {
2615
            SetPagePicFree(GRAPHICS_PAGE_0, Pic_0522_916_503, 918, 501);
2616
        }
2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638
        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);
    }
2639
    else if (g_u8Display_Mode == ModeNIGHT)
2640 2641 2642 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 2681 2682 2683 2684 2685 2686
    {
        /*外部接收小时和分钟*/
        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]);
//     }
// }

/*燃油显示函数*/
2687 2688
uint8_t g_u16_GUI_PerFuelLevel = 1;
static void AMT630H_GUI_Fuel(uint8_t Fuel)
2689 2690 2691 2692 2693
{
    /*外部传参燃油处于数组第几格*/
    /*R>83且处于非开路状态时 黄色燃油灯闪烁*/
    /*R开路状态时 黄色燃油灯闪烁*/
    /*以上两种情况黄色燃油灯闪烁的频率不同*/
2694
    uint8_t FuelLevel;
2695
    FuelLevel = Fuel;
2696
    static uint8_t s_FuelLowTime = 0U;
2697
    if (g_u8Display_Mode == ModeDAY)
2698 2699 2700 2701 2702 2703
    {
        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)
        {
2704 2705 2706 2707
            if (FLASH_SYNC_1Hz)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0552_503_529); /*黄色燃油灯*/
            }
2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720
            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;
            }
2721 2722 2723 2724
        }
        else
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0551_503_529); /*黑色燃油灯*/
2725
            s_FuelLowTime = 0;
2726 2727
        }
    }
2728
    else if (g_u8Display_Mode == ModeNIGHT)
2729 2730 2731 2732 2733 2734
    {
        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)
        {
2735 2736 2737 2738
            if (FLASH_SYNC_1Hz)
            {
                SetPagePic(GRAPHICS_PAGE_0, Pic_0552_503_529); /*黄色燃油灯*/
            }
2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780
        }
        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)
{
2781
    if (g_u8Display_Mode == ModeDAY)
2782 2783 2784 2785
    {
        DISPLAY_NUM_ST DisplayNumPara;
        uint16_t VoltageNumber;
        VoltageNumber = Voltage / 10;
2786 2787 2788 2789
        if (Voltage % 10 > 5)
        {
            VoltageNumber++;
        }
2790 2791 2792 2793
        uint16_t Voltage_Hundred;
        uint16_t Voltage_Ten;
        uint16_t Voltage_Unit;
        uint16_t Front;
2794 2795 2796 2797
        if ((VoltageNumber <= 120) || (VoltageNumber > 150))
        {
            SetPagePic(GRAPHICS_PAGE_0, Pic_0563_923_407); /*电压图标*/
        }
2798 2799 2800 2801
        else
        {
            ;
        }
2802 2803 2804 2805
        /*数据处理*/
        Voltage_Hundred = VoltageNumber / 100;
        Voltage_Ten = (VoltageNumber % 100) / 10;
        Voltage_Unit = VoltageNumber % 10;
2806
        Front = Voltage_Hundred * 10 + Voltage_Ten;
2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844
        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
        {
            ;
        }
    }
2845
    else if (g_u8Display_Mode == ModeNIGHT)
2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 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
    {
        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
    {
        ;
    }
}

/*大计里程显示函数*/
2905
static void AMT630H_GUI_ODO(uint32_t ODO, uint8_t mode)
2906
{
2907
    if (g_u8Display_Mode == ModeDAY)
2908
    {
2909
        SetPagePic(GRAPHICS_PAGE_0, Pic_0577_48_272);
2910
        SetPagePic(GRAPHICS_PAGE_0, Pic_0578_55_296);/*ODO图标不动*/
2911 2912

        DISPLAY_NUM_ST DisplayNumPara;
2913
        uint16_t ODONumber;
2914
        ODONumber = ODO;
2915
        DisplayNumPara.NumList = NumbeList_ODO_DAY;
2916 2917
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 24;
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
2918
        DisplayNumPara.DecimalNum = 0;
2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958
        if((ODONumber<1000000)&&(ODONumber>=100000))
        {
            DisplayNumPara.x = 173;
            DisplayNumPara.MinDigits = 6; 
            SetPagePic(GRAPHICS_PAGE_0, Pic_0580_211_324);/*KM*/
        }
        else if((ODONumber<100000)&&(ODONumber>=10000))
        {
            DisplayNumPara.x = 149;
            DisplayNumPara.MinDigits = 5;
            SetPagePic(GRAPHICS_PAGE_0, Pic_0580_187_324);/*KM*/
        }
        else if((ODONumber<10000)&&(ODONumber>=1000))
        {
            DisplayNumPara.x = 125;
            DisplayNumPara.MinDigits = 4;
            SetPagePic(GRAPHICS_PAGE_0, Pic_0580_163_324);/*KM*/
        }
        else if((ODONumber<1000)&&(ODONumber>=100))
        {
            DisplayNumPara.x = 101;
            DisplayNumPara.MinDigits = 3;
            SetPagePic(GRAPHICS_PAGE_0, Pic_0580_139_324);/*KM*/
        }
        else if((ODONumber<100)&&(ODONumber>=10))
        {
            DisplayNumPara.x = 77;
            DisplayNumPara.MinDigits = 2;
            SetPagePic(GRAPHICS_PAGE_0, Pic_0580_115_324);/*KM*/
        }
        else if((ODONumber<10)&&(ODONumber>=0))
        {
            DisplayNumPara.x = 53;
            DisplayNumPara.MinDigits = 1;
            SetPagePic(GRAPHICS_PAGE_0, Pic_0580_91_324);/*KM*/
        }
        else
        {
            ;
        }
2959
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, ODONumber);
2960
    }
2961
    else if (g_u8Display_Mode == ModeNIGHT)
2962
    {
2963
        SetPagePic(GRAPHICS_PAGE_0, Pic_0685_48_272);
2964
        SetPagePic(GRAPHICS_PAGE_0, Pic_0686_55_296);/*ODO图标不动*/
2965 2966

        DISPLAY_NUM_ST DisplayNumPara;
2967
        uint16_t ODONumber;
2968
        ODONumber = ODO;
2969
        DisplayNumPara.NumList = NumbeList_ODO_NIGHT;
2970
        DisplayNumPara.x = 173;
2971 2972
        DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 24;
        DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
2973
        DisplayNumPara.DecimalNum = 0;
2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007
        if((ODONumber<1000000)&&(ODONumber>=100000))
        {
            DisplayNumPara.MinDigits = 6;
            SetPagePic(GRAPHICS_PAGE_0, Pic_0688_211_324);/*KM*/
        }
        else if((ODONumber<100000)&&(ODONumber>=10000))
        {
            DisplayNumPara.MinDigits = 5;
            SetPagePic(GRAPHICS_PAGE_0, Pic_0688_187_324);/*KM*/
        }
        else if((ODONumber<10000)&&(ODONumber>=1000))
        {
            DisplayNumPara.MinDigits = 4;
            SetPagePic(GRAPHICS_PAGE_0, Pic_0688_163_324);/*KM*/
        }
        else if((ODONumber<1000)&&(ODONumber>=100))
        {
            DisplayNumPara.MinDigits = 3;
            SetPagePic(GRAPHICS_PAGE_0, Pic_0688_139_324);/*KM*/
        }
        else if((ODONumber<100)&&(ODONumber>=10))
        {
            DisplayNumPara.MinDigits = 2;
            SetPagePic(GRAPHICS_PAGE_0, Pic_0688_115_324);/*KM*/
        }
        else if((ODONumber<10)&&(ODONumber>=0))
        {
            DisplayNumPara.MinDigits = 1;
            SetPagePic(GRAPHICS_PAGE_0, Pic_0688_91_324);/*KM*/
        }
        else
        {
            ;
        }
3008
        DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, ODONumber);
3009 3010 3011 3012 3013 3014 3015 3016 3017 3018
    }
    else
    {
        ;
    }
}

/*车速显示函数*/
static void AMT630H_GUI_VSpeed(uint16_t VSpeed)
{
3019
    if (g_u8Display_Mode == ModeDAY)
3020 3021 3022 3023 3024 3025 3026 3027 3028 3029
    {
        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;
3030
        if (100 <= VSpeedNumber)
3031 3032 3033 3034 3035 3036 3037 3038 3039
        {
            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);
        }

3040
        else if ((10 <= VSpeedNumber))
3041 3042 3043 3044 3045 3046 3047 3048 3049
        {
            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);
        }

3050
        else if (0 <= VSpeedNumber)
3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065
        {
            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);
        }
3066 3067 3068 3069
        else
        {
            ;
        }
3070
    }
3071
    else if (g_u8Display_Mode == ModeNIGHT)
3072 3073 3074 3075 3076 3077 3078 3079 3080 3081
    {
        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;
3082
        if (100 <= VSpeedNumber)
3083 3084 3085 3086 3087 3088 3089 3090 3091
        {
            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);
        }

3092
        else if (10 <= VSpeedNumber)
3093 3094 3095 3096 3097 3098 3099 3100 3101
        {
            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);
        }

3102
        else if (0 <= VSpeedNumber)
3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132
        {
            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)
{
3133
    uint8_t PIC = 0;
3134
    if (g_u8Display_Mode == ModeDAY)
3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159
    {
        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;
3160 3161 3162 3163
            for (PIC = 0; PIC <= ESpeedLevel; PIC++)
            {
                SetPagePic(GRAPHICS_PAGE_0, PICList_ESpeed_DAY[PIC]);
            }
3164 3165 3166
        }
        else if (ESpeedNumber == 0)
        {
3167
            ESpeedLevel = 0;
3168 3169 3170
        }
    }

3171
    else if (g_u8Display_Mode == ModeNIGHT)
3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196
    {
        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;
3197 3198 3199 3200
            for (PIC = 0; PIC <= ESpeedLevel; PIC++)
            {
                SetPagePic(GRAPHICS_PAGE_0, PICList_ESpeed_NIGHT[PIC]);
            }
3201 3202 3203
        }
        else if (ESpeedNumber == 0)
        {
3204
            ESpeedLevel = 0;
3205 3206 3207 3208 3209 3210 3211 3212 3213 3214
        }
    }
    else
    {
        ;
    }
}

/******************************************************************************************/
/**
3215
 * @brief 主界面显示
3216 3217
 *
 */
3218 3219
uint8_t VechileSpeed_time = 0;
uint8_t VechileSpeed = 0;
3220 3221
void AMT630H_GUI_BACKGRAND()
{
3222 3223
    /*背景图*/
    if(g_u8Display_Mode == ModeDAY)
3224
    {
3225 3226 3227 3228 3229 3230 3231 3232 3233 3234
        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);
        }
3235
    }
3236
    if(g_u8Display_Mode == ModeNIGHT)
3237
    {
3238 3239 3240 3241 3242 3243 3244 3245 3246 3247
        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);
        }
3248 3249
    }

3250
    /*主界面函数*/
3251
    AMT630H_GUI_Light();
3252
    AMT630H_GUI_TIME(Get_Dis_Hour_Time(), Get_Dis_Minute_Time());
3253
    /* AMT630H_GUI_Telephone(Telephone); */
3254
    if (Get_Fuel_Sensor_State() == FuelSensorNormal)
3255 3256 3257 3258 3259 3260 3261 3262 3263
    {
        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);
3264 3265 3266 3267 3268 3269 3270 3271 3272 3273
    if(VechileSpeed_time < 4)
    {
        VechileSpeed_time++;
    }
    else
    {
        VechileSpeed_time = 0;
        VechileSpeed = Get_DispVechileSpeed() / 10;
        
    }
3274
    if (Get_VechileSpeedValid() == 1)
3275
    {
3276
        AMT630H_GUI_VSpeed(VechileSpeed);
3277 3278 3279 3280 3281
    }
    else
    {
        AMT630H_GUI_VSpeed(0);
    }
3282 3283 3284 3285 3286 3287 3288 3289
    if (Get_EngineValid() == 1)
    {
        AMT630H_GUI_ESpeed(Get_DispEngineSpeed());
    }
    else
    {
        AMT630H_GUI_ESpeed(0);
    }
3290
}
3291

3292 3293
void AMT630H_GUI_SETTING()
{
3294 3295 3296 3297 3298
    
   if (g_u8Display_Mode == ModeDAY)
   {
      if(g_u8Language == CH)
      {
3299
        SetPagePic(GRAPHICS_PAGE_0, Pic_0002_0_0);
3300 3301
        SetPagePic(GRAPHICS_PAGE_0, Pic_0380_396_528);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0381_615_528);
3302 3303 3304
      }
      else if(g_u8Language == EN)
      {
3305
        SetPagePic(GRAPHICS_PAGE_0, Pic_0002_0_0);
3306 3307
        SetPagePic(GRAPHICS_PAGE_0, Pic_0380_396_528);
        SetPagePic(GRAPHICS_PAGE_0, Pic_0381_615_528);
3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324
      }
   }
   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);
      }
   }
3325 3326 3327 3328
}

void AMT630H_GUI_DisplayProc(void)
{
3329
    SetPageGuid(GRAPHICS_PAGE_0, 1, 0, 0);
3330

3331
    AMT630H_GUI_Background();
3332

3333
    PackedTransfer_Page();
3334
}
3335 3336


3337 3338 3339 3340 3341
void AMT630H_GUI_ReadPosittion_Display(void)
{
    switch (g_u8Cursor_Posittion)
    {
    case MENU_ITEM_MAIN_ITEM:    /*主界面*/
3342
        AMT630H_GUI_BACKGRAND();
3343
        break;
3344
    case MENU_ITEM_DISPLAY_MODE: /*01 显示模式*/
3345 3346 3347
        AMT630H_GUI_SETTING();
        AMT630H_GUI_Display_Mode_Information();
        break;
3348
    case MENU_ITEM_SELECT_DAYTIME: /*10日间模式*/
3349
        AMT630H_GUI_SETTING();
3350
        AMT630H_GUI_Display_Mode_Setting(MENU_ITEM_SELECT_DAYTIME);
3351
        break;
3352
    case MENU_ITEM_SELECT_NIGHTTIME: /*11夜间模式*/
3353
        AMT630H_GUI_SETTING();
3354 3355
        AMT630H_GUI_Display_Mode_Setting(MENU_ITEM_SELECT_NIGHTTIME);
        break;            
3356
    case MENU_ITEM_SELECT_AUTO: /*12自动模式*/
3357
        AMT630H_GUI_SETTING();
3358
        AMT630H_GUI_Display_Mode_Setting(MENU_ITEM_SELECT_AUTO);
3359
        break;
3360
    case MENU_ITEM_BACKLIGHT_SETTING: /*02 背光设置*/
3361 3362 3363
        AMT630H_GUI_SETTING();
        AMT630H_GUI_Backlight_Information();
        break;
3364
    case MENU_ITEM_BACKLIGHT_5: /*13 背光_5*/
3365
        AMT630H_GUI_SETTING();
3366
        AMT630H_GUI_Backlight_Setting(MENU_ITEM_BACKLIGHT_5);
3367
        break;
3368
    case MENU_ITEM_BACKLIGHT_4: /*14 背光_4*/
3369
        AMT630H_GUI_SETTING();
3370
        AMT630H_GUI_Backlight_Setting(MENU_ITEM_BACKLIGHT_4);
3371
        break;
3372
    case MENU_ITEM_BACKLIGHT_3: /*15 背光_3*/
3373
        AMT630H_GUI_SETTING();
3374
        AMT630H_GUI_Backlight_Setting(MENU_ITEM_BACKLIGHT_3);
3375
        break;
3376
    case MENU_ITEM_BACKLIGHT_2: /*16 背光_2*/
3377
        AMT630H_GUI_SETTING();
3378
        AMT630H_GUI_Backlight_Setting(MENU_ITEM_BACKLIGHT_2);
3379
        break;
3380
    case MENU_ITEM_BACKLIGHT_1: /*17 背光_1*/
3381
        AMT630H_GUI_SETTING();
3382
        AMT630H_GUI_Backlight_Setting(MENU_ITEM_BACKLIGHT_1);
3383
        break;
3384
    case MENU_ITEM_BACKLIGHT_AUTO: /*18 背光自动*/
3385
        AMT630H_GUI_SETTING();
3386
        AMT630H_GUI_Backlight_Setting(MENU_ITEM_BACKLIGHT_AUTO);
3387 3388
        break;

3389
    case MENU_ITEM_BLUETOOTH_CONNECT: /*03 蓝牙连接*/
3390
        AMT630H_GUI_SETTING();
3391
        AMT630H_GUI_Bluetooth_Information(8, Get_Dis_Bluetooth_Open_Close());/*蓝牙开关和联系人接口没给*/
3392 3393 3394
        break;
    case MENU_ITEM_BLUETOOTH_OPEN_CLOSE: /*12 蓝牙_开*/
        AMT630H_GUI_SETTING();
3395
        AMT630H_GUI_Bluetooth_Connect_Setting(MENU_ITEM_BLUETOOTH_OPEN_CLOSE, 8, Get_Dis_Bluetooth_Open_Close());/*蓝牙开关和联系人接口没给*/
3396 3397 3398
        break;
    case MENU_ITEM_BLUETOOTH_SYNC: /*13 蓝牙同步联系人*/
        AMT630H_GUI_SETTING();
3399
        AMT630H_GUI_Bluetooth_Connect_Setting(MENU_ITEM_BLUETOOTH_SYNC, 8, Get_Dis_Bluetooth_Open_Close());/*蓝牙开关和联系人接口没给*/
3400 3401 3402
        break;
    case MENU_ITEM_BLUETOOTH_BACK: /*14 蓝牙返回*/
        AMT630H_GUI_SETTING();
3403
        AMT630H_GUI_Bluetooth_Connect_Setting(MENU_ITEM_BLUETOOTH_BACK, 8, Get_Dis_Bluetooth_Open_Close());/*蓝牙开关和联系人接口没给*/
3404 3405 3406 3407 3408 3409 3410
        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();
3411
        AMT630H_GUI_Clock_Setting(Get_Dis_Hour_Time(), Get_Dis_Minute_Time(), MENU_ITEM_CLOCK_HOUR_TENB);
3412 3413 3414
        break;
    case MENU_ITEM_CLOCK_HOUR_BIT: /*19 时钟小时个位*/
        AMT630H_GUI_SETTING();
3415
        AMT630H_GUI_Clock_Setting(Get_Dis_Hour_Time(), Get_Dis_Minute_Time(), MENU_ITEM_CLOCK_HOUR_BIT);
3416 3417 3418
        break;
    case MENU_ITEM_CLOCK_MIN_TENB: /*18 时钟分钟十位*/
        AMT630H_GUI_SETTING();
3419
        AMT630H_GUI_Clock_Setting(Get_Dis_Hour_Time(), Get_Dis_Minute_Time(), MENU_ITEM_CLOCK_MIN_TENB);
3420 3421 3422
        break;
    case MENU_ITEM_CLOCK_MIN_BIT: /*17 时钟分钟个位*/
        AMT630H_GUI_SETTING();
3423
        AMT630H_GUI_Clock_Setting(Get_Dis_Hour_Time(), Get_Dis_Minute_Time(), MENU_ITEM_CLOCK_MIN_BIT);
3424 3425 3426
        break;
    case MENU_ITEM_CLOCK_BACK: /*16 时钟返回*/
        AMT630H_GUI_SETTING();
3427
        AMT630H_GUI_Clock_Setting(Get_Dis_Hour_Time(), Get_Dis_Minute_Time(), MENU_ITEM_CLOCK_BACK);
3428
        break;
3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445
    case MENU_ITEM_CLOCK_HOUR_TENB_SET:/*27 时钟小时十位*/
        AMT630H_GUI_SETTING();
        AMT630H_GUI_Clock_Setting(Get_Dis_Hour_Time(), Get_Dis_Minute_Time(), MENU_ITEM_CLOCK_HOUR_TENB_SET);
        break;
    case MENU_ITEM_CLOCK_HOUR_BIT_SET:/*28 时钟小时个位*/
        AMT630H_GUI_SETTING();
        AMT630H_GUI_Clock_Setting(Get_Dis_Hour_Time(), Get_Dis_Minute_Time(), MENU_ITEM_CLOCK_HOUR_BIT_SET);
        break;
    case MENU_ITEM_CLOCK_MIN_TENB_SET:/*29 时钟分钟十位*/
        AMT630H_GUI_SETTING();
        AMT630H_GUI_Clock_Setting(Get_Dis_Hour_Time(), Get_Dis_Minute_Time(), MENU_ITEM_CLOCK_MIN_TENB_SET);
        break;
    case MENU_ITEM_CLOCK_MIN_BIT_SET:/*30 时钟分钟个位*/
        AMT630H_GUI_SETTING();
        AMT630H_GUI_Clock_Setting(Get_Dis_Hour_Time(), Get_Dis_Minute_Time(), MENU_ITEM_CLOCK_MIN_BIT_SET);
        break;
    case MENU_ITEM_UNIT_SETTING: /*05 单位设置*/
3446 3447 3448
        AMT630H_GUI_SETTING();
        AMT630H_GUI_Unit_Information();
        break;
3449
    case MENU_ITEM_UNIT_KM: /*31 选中公制*/
3450
        AMT630H_GUI_SETTING();
3451
        AMT630H_GUI_Unit_Setting(MENU_ITEM_UNIT_KM);
3452
        break;
3453
    case MENU_ITEM_UNIT_MILE: /*32 选中英制*/
3454
        AMT630H_GUI_SETTING();
3455
        AMT630H_GUI_Unit_Setting(MENU_ITEM_UNIT_MILE);
3456 3457 3458 3459 3460 3461 3462
        break;
    case MENU_ITEM_LANGUAGE_SETTING: /*24 语言设置*/
        AMT630H_GUI_SETTING();
        AMT630H_GUI_Language_Information();
        break;
    case MENU_ITEM_LANGUAGE_CHINESE: /*25 选中中文*/
        AMT630H_GUI_SETTING();
3463
        AMT630H_GUI_Language_Setting(MENU_ITEM_LANGUAGE_CHINESE);
3464 3465 3466
        break;
    case MENU_ITEM_LANGUAGE_ENGLISH: /*26 选中英文*/
        AMT630H_GUI_SETTING();
3467
        AMT630H_GUI_Language_Setting(MENU_ITEM_LANGUAGE_ENGLISH);
3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489
        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;
    }
3490
}