/************************** Copyright (c) ********************************** ** FUZHOU FUGUANG ELECTRONICS Co.,LTD. ** ¸£Öݸ£¹âµç×ÓÓÐÏÞ¹«Ë¾ ** http://www.fuguang.com ** **-------------- File Info ------------------------------------------------- ** File name: AboutPage.c ** Last modified Date: 2008-11-16 ** Last Version: 1.0 ** Descriptions: Test parms view and set ** **-------------------------------------------------------------------------- ** Created by: mxpopstar ** Created date: 2008-11-16 ** Version: 1.0 ** Descriptions: The original version ** **-------------------------------------------------------------------------- ** Modified by: mxpopstar ** Modified date: 2008-11-20 ** Version: ** Descriptions: Test parms view and set ** ***************************************************************************/ // #include "AboutPage.h" #include "Define.h" #include #include "WorkingPage.h" #include "TFT_Driver.h" #include "AD7843_Driver.h" #include "SingleVol.h" #include "SYSSetPage.h" #include "NRF905_Driver.h" extern FBO_Data GB_FBO_Data; extern SYS_State GB_SYS_State; extern File_Inf GB_TestDataInf; extern unsigned int GB_TestingParm[16]; extern unsigned int EEPTestingParm[8][16] __attribute__((section(".eeprom"))); const unsigned int PROGMEMTestingParm[8][16] PROGMEM = { { 0, //²âÊÔģʽ 0, //ÊеçÖжϴ¦Àí 100, //±ê³ÆÈÝÁ¿ 10, //СʱÂÊ 10, //Ô¤·ÅµçÁ÷ 100, //Ô¤·ÅÈÝÁ¿ 600, //Ô¤·Åʱ¼ä(·ÖÖÓ) 180, //µ¥ÌåÏÂÏÞ 600, //×é¶ËÏÂÏÞ 30, //ÿ×éµç³Ø½ÚÊý 1, //µç³Ø×éÊý 1, //µ¥ÌåÏÂÏÞÊýÁ¿ 1, //Êý¾Ý±£´æ¼ä¸ô 240, //ÔÚÏß·§Öµ----------13 0, //²âÊÔģʽ----------14 50, //Ô¤·Å¹¦ÂÊ----------15 },//----------------------------------Ô¤ÖòÎÊý0 { 0, //²âÊÔģʽ 0, //ÊеçÖжϴ¦Àí 200, //±ê³ÆÈÝÁ¿ 10, //СʱÂÊ 20, //Ô¤·ÅµçÁ÷ 200, //Ô¤·ÅÈÝÁ¿ 600, //Ô¤·Åʱ¼ä(·ÖÖÓ) 180, //µ¥ÌåÏÂÏÞ 600, //×é¶ËÏÂÏÞ 30, //ÿ×éµç³Ø½ÚÊý 1, //µç³Ø×éÊý 1, //µ¥ÌåÏÂÏÞÊýÁ¿ 1, //Êý¾Ý±£´æ¼ä¸ô 240, //ÔÚÏß·§Öµ 0, //²âÊÔģʽ 50, //Ô¤·Å¹¦ÂÊ },//----------------------------------Ô¤ÖòÎÊý1 { 0, //²âÊÔģʽ 0, //ÊеçÖжϴ¦Àí 300, //±ê³ÆÈÝÁ¿ 10, //СʱÂÊ 30, //Ô¤·ÅµçÁ÷ 300, //Ô¤·ÅÈÝÁ¿ 600, //Ô¤·Åʱ¼ä(·ÖÖÓ) 180, //µ¥ÌåÏÂÏÞ 600, //×é¶ËÏÂÏÞ 30, //ÿ×éµç³Ø½ÚÊý 1, //µç³Ø×éÊý 1, //µ¥ÌåÏÂÏÞÊýÁ¿ 1, //Êý¾Ý±£´æ¼ä¸ô 240, //ÔÚÏß·§Öµ 0, //²âÊÔģʽ 50, //Ô¤·Å¹¦ÂÊ },//----------------------------------Ô¤ÖòÎÊý2 { 0, //²âÊÔģʽ 0, //ÊеçÖжϴ¦Àí 500, //±ê³ÆÈÝÁ¿ 10, //СʱÂÊ 50, //Ô¤·ÅµçÁ÷ 500, //Ô¤·ÅÈÝÁ¿ 600, //Ô¤·Åʱ¼ä(·ÖÖÓ) 180, //µ¥ÌåÏÂÏÞ 435, //×é¶ËÏÂÏÞ 24, //ÿ×éµç³Ø½ÚÊý 1, //µç³Ø×éÊý 1, //µ¥ÌåÏÂÏÞÊýÁ¿ 1, //Êý¾Ý±£´æ¼ä¸ô 240, //ÔÚÏß·§Öµ 0, //²âÊÔģʽ 50, //Ô¤·Å¹¦ÂÊ },//----------------------------------Ô¤ÖòÎÊý3 { 0, //²âÊÔģʽ 0, //ÊеçÖжϴ¦Àí 100, //±ê³ÆÈÝÁ¿ 10, //СʱÂÊ 10, //Ô¤·ÅµçÁ÷ 100, //Ô¤·ÅÈÝÁ¿ 600, //Ô¤·Åʱ¼ä(·ÖÖÓ) 180, //µ¥ÌåÏÂÏÞ 200, //×é¶ËÏÂÏÞ 12, //ÿ×éµç³Ø½ÚÊý 1, //µç³Ø×éÊý 1, //µ¥ÌåÏÂÏÞÊýÁ¿ 1, //Êý¾Ý±£´æ¼ä¸ô 240, //ÔÚÏß·§Öµ 0, //²âÊÔģʽ 50, //Ô¤·Å¹¦ÂÊ },//----------------------------------Ô¤ÖòÎÊý4 { 0, //²âÊÔģʽ 0, //ÊеçÖжϴ¦Àí 200, //±ê³ÆÈÝÁ¿ 10, //СʱÂÊ 20, //Ô¤·ÅµçÁ÷ 200, //Ô¤·ÅÈÝÁ¿ 600, //Ô¤·Åʱ¼ä(·ÖÖÓ) 1080, //µ¥ÌåÏÂÏÞ 600, //×é¶ËÏÂÏÞ 9, //ÿ×éµç³Ø½ÚÊý 1, //µç³Ø×éÊý 1, //µ¥ÌåÏÂÏÞÊýÁ¿ 1, //Êý¾Ý±£´æ¼ä¸ô 240, //ÔÚÏß·§Öµ 0, //²âÊÔģʽ 50, //Ô¤·Å¹¦ÂÊ },//----------------------------------Ô¤ÖòÎÊý5 { 0, //²âÊÔģʽ 0, //ÊеçÖжϴ¦Àí 300, //±ê³ÆÈÝÁ¿ 10, //СʱÂÊ 30, //Ô¤·ÅµçÁ÷ 300, //Ô¤·ÅÈÝÁ¿ 600, //Ô¤·Åʱ¼ä(·ÖÖÓ) 1080, //µ¥ÌåÏÂÏÞ 600, //×é¶ËÏÂÏÞ 9, //ÿ×éµç³Ø½ÚÊý 1, //µç³Ø×éÊý 1, //µ¥ÌåÏÂÏÞÊýÁ¿ 1, //Êý¾Ý±£´æ¼ä¸ô 240, //ÔÚÏß·§Öµ 0, //²âÊÔģʽ 50, //Ô¤·Å¹¦ÂÊ },//----------------------------------Ô¤ÖòÎÊý6 { 0, //²âÊÔģʽ 0, //ÊеçÖжϴ¦Àí 500, //±ê³ÆÈÝÁ¿ 10, //СʱÂÊ 50, //Ô¤·ÅµçÁ÷ 500, //Ô¤·ÅÈÝÁ¿ 600, //Ô¤·Åʱ¼ä(·ÖÖÓ) 1080, //µ¥ÌåÏÂÏÞ 600, //×é¶ËÏÂÏÞ 9, //ÿ×éµç³Ø½ÚÊý 1, //µç³Ø×éÊý 1, //µ¥ÌåÏÂÏÞÊýÁ¿ 1, //Êý¾Ý±£´æ¼ä¸ô 240, //ÔÚÏß·§Öµ 0, //²âÊÔģʽ 50, //Ô¤·Å¹¦ÂÊ },//----------------------------------Ô¤ÖòÎÊý7 }; // #if(SoftLanguage == CN) const prog_uchar APCaption[2][5] = { {195, 36, 90, 94},//²ÎÊýÔ¤Öà {90, 94, 195,36, 59},//Ô¤ÖòÎÊý }; // const prog_uchar APText[11][5] = { {60, 61, 62, 63, 59},//±ê³ÆÈÝÁ¿ {66, 64, 67, 166,59},//СʱÂʦΠ{90, 54, 56, 82, 59},//Ô¤·ÅµçÁ÷ {90, 54, 62, 63, 59},//Ô¤·ÅÈÝÁ¿ {90, 54, 64, 65, 59},//Ô¤·Åʱ¼ä {70, 71, 48, 72, 59},//µ¥ÌåÏÂÏÞ {68, 69, 48, 72, 59},//×é¶ËÏÂÏÞ {226,68, 70, 71, 59},//ÿ×éµ¥Ìå {57, 58, 68, 36, 59},//²âÊÔ×éÊý {48, 72, 36, 63, 59},//ÏÂÏÞÊýÁ¿ {40, 41, 65, 79, 59},//±£´æ¼ä¸ô-22 }; // const prog_uchar APSubText[2][1] = { {68}, //×é {227}, //¸ö }; // const prog_uchar APButtonItem[10][3] = { { 90, 94, 101},//Ô¤Öà { 196, 197, 198},//³ö³§Öµ { 70, 71},// { 99, 100},//Ó¦Óà { 52, 53},//Í˳ö { 97, 98},//È¡Ïû {115, 101},//- {114, 101},//+ { 95, 96},//ÐÞ¸Ä { 50, 51},//Ñ¡Ôñ }; // #else const prog_uchar APCaption[2][14] = { {108,76,64,63,79,77,78,59,73,74,61,70,68}, //²ÎÊýÔ¤ÖÃ13 {103,74,73,80,68,62,79,76,59,82,68,91,26}, //Ô¤ÖòÎÊý13 }; // const prog_uchar APText[13][15] = { {106,74,72,68,73,14,65,72,70,26}, //±ê³ÆÈÝÁ¿10 {111,68,75,0,76,59,67,76,91,63,59,26}, //СʱÂʦΠ12 {109,64,66,14,78,64,77,78,59,26}, //²âÊÔģʽ10 {111,74,70,0,76,59,67,76,91,63,59,26}, //Ô¤·ÅµçÁ÷12 {105,74,85,73,74,77,78,88,26}, //Ô¤·Å¹¦ÂÊ9 {107,62,76,14,65,72,70,14,76,59,67,76,26}, //Ô¤·ÅÈÝÁ¿13 {107,62,76,14,61,76,64,72,14,76,59,67,76,26}, //Ô¤·Åʱ¼ä14 {107,62,76,14,73,59,75,76,14,89,71,26}, //µ¥ÌåÏÂÏÞ12 {107,62,76,14,73,59,75,76,14,62,76,26}, //×é¶ËÏÂÏÞ12 {103,74,71,14,89,71,26}, //ÿ×éµ¥Ìå7 {103,74,71,14,62,76,26}, //²âÊÔ×éÊý7 {103,74,71,14,89,71,14,53,73,68,67,26}, //ÏÂÏÞÊýÁ¿12 {101,73,78,64,76,61,14,77,74,81,76,26}, //±£´æ¼ä¸ô12 }; // const prog_uchar APModeSelText[3][10] = ////RU.ºã¹¦ÂÊ£¬ºãµçÁ÷,ºãµç×è { {108,74,77,78,14,78,74,70,0}, //ºãµçÁ÷9 {108,74,77,78,14,72,74,85,73},//ºã¹¦ÂÊ9 {108,74,77,78,14,77,74,75,76},//ºã×èÖµ9 }; const prog_uchar APSubText[4][3] = { {62,76}, //×é2 {89,71}, //¸ö# {116}, {70,94,78}, //¶íÎÄKW£¬kBt }; // const prog_uchar APButtonItem[10][9] = { {103,74,73,80}, //Ô¤ÖÃ4 {110,60,76,74,77}, //³ö³§Öµ5 {0},// {110,74,81,76,59,73}, //Ó¦ÓÃ6 {94,87,81,74,63}, //Í˳ö5 {107,78,72,64,73,59}, //È¡Ïû6 {13},//-1 {11},//+1 {101,67,72,64,73,68,78,88}, //ÐÞ¸Ä8 {94,87,60,74,76}, //Ñ¡Ôñ5 }; // #endif // static unsigned char (*APParentPage)(void) = DSPAboutPage; static unsigned char APModifyItemIndex = 0; static unsigned char APTestingParmIndex = 0; static unsigned int APCurrentTestingParm[16] = {0};//µ±Ç°ËùÐ޸ĵÄÔ¤ÖòÎÊý unsigned char DSPAboutPage(void) { DisableCustomInput(); APParentPage = GB_SYS_State.CurrentPage;//±£´æ¸¸Ò³ÃæÖ¸Õë GB_SYS_State.CurrentPage = DSPAboutPage; GB_SYS_State.GetInput = GetAboutPageButtonDown; APTestingParmIndex = 0; APModifyItemIndex = 0; eeprom_busy_wait(); eeprom_read_block(APCurrentTestingParm, EEPTestingParm[APTestingParmIndex], sizeof(APCurrentTestingParm)); DSP16x24Str(APCaption[0], 13, 14, 24, 16, blue, yellow);//²ÎÊýÔ¤Öà #if(SoftLanguage == CN) DrawLine(24, 42, 12, 0, blue, white, linebold, 2); #else DrawLine(24, 42, 23, 0, blue, white, linebold, 2); #endif DSPAPTestingParmItem(APModifyItemIndex, white, green7); APUpdateTestingParm(APCurrentTestingParm); DrawAPControlButton(APModifyItemIndex); return 0; } // void DSPAPTestingParmItem(unsigned char index, unsigned char Bcolor, unsigned char Fcolor) { unsigned char n = 0; unsigned char Bcl,Fcl; DSP12x16Str(APCaption[1], 13, 12, 24, 64, blue, white);//Ô¤ÖòÎÊý: for(n=1; n<16; n++) { if((index>0) && (n==index)) { Bcl = Bcolor; Fcl = Fcolor; } else { Bcl = blue; Fcl = green7; } switch(n) { case 1: DSP12x16Str(APText[n-1], 10, 12, 24, 64+32*n, Bcl, Fcl); break; case 2: DSP12x16Str(APText[n-1], 12, 12, 24, 64+32*n, Bcl, Fcl); break; case 3: DSP12x16Str(APText[n-1], 10, 12, 24, 64+32*n, Bcl, Fcl);//²âÊÔģʽ break; case 4: DSP12x16Str(APText[n-1], 12, 12, 24, 64+32*n, Bcl, Fcl); break; case 5: DSP12x16Str(APText[n-1], 9, 12, 24, 64+32*n, Bcl, Fcl); //Ô¤·Å¹¦ÂÊ break; case 6: DSP12x16Str(APText[n-1], 13, 12, 282, 96, Bcl, Fcl);//Ô¤·ÀÈÝÁ¿ break; case 7: DSP12x16Str(APText[n-1], 14, 12, 282, 96+32, Bcl, Fcl);//Ô¤·Àʱ¼ä break; /////////// case 8: DSP12x16Str(APText[n-1], 12, 12, 282, 64+32*(n-7)+64, Bcl, Fcl);//µ¥ÌåÏÂÏÞ break; case 9: DSP12x16Str(APText[n-1], 12, 12, 282, 64+32*(n-7)+64, Bcl, Fcl);//×é¶ËÏÂÏÞ break; // case 10: DSP12x16Str(APText[n-1], 7, 12, 282, 64+32*(n-7)+64, Bcl, Fcl); break; case 11: DSP12x16Str(APText[n-1], 7, 12, 282, 64+32*(n-7)+64, Bcl, Fcl); break; case 12: DSP12x16Str(APText[n-1], 12, 12, 282, 64+32*(n-7)+64, Bcl, Fcl); break; case 13: //DSP12x16Str(APText[n-1], 12, 12, 292, 64+32*(n-7), Bcl, Fcl); DSP12x16Str(APText[n-1], 12, 12, 24, 256, Bcl, Fcl); break; default : break; } } DSP12x16Str(APSubText[1], 2, 12, 440, 96+64+64, blue, green7); //¸ö DSP12x16Str(APSubText[0], 2, 12, 440, 128+64+64, blue, green7); //×é DSP12x16Str(APSubText[1], 2, 12, 470, 160+64+64, blue, green7); //¸ö } // void APUpdateTestingParm(const unsigned int *Parm) { Test_Time tmptime; tmptime.hour = Parm[6]/60; tmptime.minute = Parm[6]%60; PrintValue1(4, 0, APTestingParmIndex+1, "/", 12, 180, 64, blue, white);//1/8 PrintValue1(4, 0, 8, "", 16, 204, 64, blue, white); PrintValue1(1, 0, Parm[2], " AH", 12, 180, 96, blue, green7);//±ê³ÆÈÝÁ¿ //DSP12x16Str( APSubText[2], 1, 12, 220, 96, blue, green7);//H //PrintValue1(3, 0, Parm[3], " H", 12, 180, 128, blue, green7); //СʱÂÊ PrintValue1(3, 0, Parm[3]/60, "H", 12, 180, 128, blue, green7); //СʱÂÊ PrintValue1(3, 0, Parm[3]%60, "M", 12, 216, 128, blue, green7); //СʱÂÊ DSP12x16Str(APModeSelText[Parm[14]], 9, 12, 170, 128+32, blue, green7);//²âÊÔģʽ£ººãµçÁ÷£¬ºã¹¦ÂÊ PrintValue1(2, 0, Parm[4], " A", 12, 180, 160+32, blue, green7); //Ô¤·ÅµçÁ÷ PrintValue1(2, 1, Parm[15], "", 12, 180, 160+64, blue, green7); //Ô¤É蹦ÂÊ DSP12x16Str( APSubText[3], 3, 12, 240, 160+64, blue, green7);//KW PrintValue1(1, 0, Parm[5], " AH", 12, 438, 96, blue, green7); //Ô¤·ÅÈÝÁ¿ //DSP12x16Str( APSubText[2], 1, 12, 246, 192+32+32, blue, green7);//H PrintTime1(&tmptime, ':', HM, 450, 96+32, blue, green7); //Ô¤·Åʱ¼ä // PrintValue1(1, 2, Parm[7], " B", 12, 428, 96+64, blue, green7); //µ¥ÌåÏÂÏÞ PrintValue1(1, 1, Parm[8], " B", 12, 428, 96+32+64, blue, green7); //×é¶ËÏÂÏÞ PrintValue1(2, 0, Parm[9], "", 12, 390, 96+64+64, blue, green7); //µ¥ÌåÊýÁ¿ PrintValue1(2, 0, Parm[10], "", 12, 390, 128+64+64, blue, green7); //µç³Ø×éÊý PrintValue1(2, 0, Parm[11], "", 12, 430, 160+64+64, blue, green7); //µ¥ÌåÏÂÏÞÊýÁ¿ // PrintValue1(2, 0, Parm[12], " M", 12, 440, 192+64, blue, green7); //Êý¾Ý±£´æ¼ä¸ô PrintValue1(2, 0, Parm[12], " M", 12, 180, 192+64, blue, green7); //Êý¾Ý±£´æ¼ä¸ô } // void DrawAPControlButton(const unsigned char index) { unsigned char fcl = white; DrawButtonH48(2, APButtonItem[0], 4, 16, 10, 24, 400, gray1, white); //Ô¤Öà DrawButtonH48(2, APButtonItem[1], 5, 16, 6, 149, 400, gray1, white); //³ö³§Öµ DrawButtonH48(2, APButtonItem[4],5, 14, 10, 524, 400, gray1, red); //Í˳ö if(index == 0) { fcl = gray2; DrawButtonH481(2, APButtonItem[8], 8, 11, 2, 524, 48, gray1, white); //ÐÞ¸Ä } else { fcl = white; DrawButtonH48(2, APButtonItem[9], 5, 14, 12, 524, 48, gray1, white); //Ñ¡Ôñ } DrawButtonH48(2, APButtonItem[3], 6, 14, 4, 399, 400, gray1, fcl); //Ó¦Óà DrawButtonH48(2, APButtonItem[5], 6, 14, 2, 524, 306, gray1, fcl); //È¡Ïû DrawButtonH48(2, APButtonItem[6], 1, 30, 40, 524, 220, gray1, fcl); //- DrawButtonH48(2, APButtonItem[7], 1, 30, 40, 524, 134, gray1, fcl); //+ } // void GetTestingParm(const unsigned char index) { unsigned char parm1 = 0; unsigned char parm2 = 0; //------- ¶ÁÈ¡µ±Ç°µÄÔ¤ÖòÎÊý ------------------------ parm1 = GB_TestingParm[0]; parm2 = GB_TestingParm[1]; eeprom_busy_wait(); eeprom_read_block(GB_TestingParm, EEPTestingParm[index], sizeof(GB_TestingParm)); GB_TestingParm[0] = parm1; GB_TestingParm[1] = parm2; if(GB_TestingParm[9] > 150) GB_TestingParm[9] = 150; if((GB_TestingParm[10]>2) || (GB_TestingParm[10]==0)) GB_TestingParm[10] = 1; //------- »ñÈ¡µ¥ÌåÊýÁ¿,²¢×Ô¶¯Éú³Éµ¥ÌåÄ£¿éµÄÊýÁ¿ ------- GB_FBO_Data.BattSum = GB_TestingParm[9]*GB_TestingParm[10]; GB_FBO_Data.BattGroup = GB_TestingParm[10]; //»ñÈ¡µç³Ø×éÊý SetEachGroupBattSum(GB_TestingParm[9]); SetMonomerSum(GB_TestingParm[9], (unsigned char)(GB_TestingParm[10])); GB_SYS_State.OnlineLowLimit = GB_TestingParm[13]*10; if(GB_TestingParm[14] > 2) //·Åµçģʽ GB_TestingParm[14] = 0; } // void GetAboutPageButtonDown(void) { static unsigned char lastkey = ButtonNull; static unsigned char getlastkeycount = 0; unsigned char touched_item; touched_item = GetTouchLocal(); if(touched_item == ButtonNull)//Èç¹û°´¼üΪ¿ÕÔòÖ±½Ó·µ»Ø; { lastkey = ButtonNull; getlastkeycount = 0; return; } else if(touched_item != lastkey) { getlastkeycount = 0; } lastkey = touched_item; if(getlastkeycount < 60) getlastkeycount++; if(APModifyItemIndex == 0) { if((touched_item==Button3) || (touched_item==Button5) || (touched_item==Button6) || (touched_item==Button7)) { return; } } if(touched_item == Button0) //Ô¤Öà { if(GetButtonIsBeep(0) == BeepIsWork) BuzzerBeep(100); if(++APTestingParmIndex >= 8) APTestingParmIndex = 0; eeprom_busy_wait(); eeprom_read_block(APCurrentTestingParm, EEPTestingParm[APTestingParmIndex], sizeof(APCurrentTestingParm)); APUpdateTestingParm(APCurrentTestingParm); DrawAPControlButton(APModifyItemIndex); _delay_ms(100); } else if(touched_item == Button1)//³ö³§Öµ { unsigned char n; if(GetButtonIsBeep(0) == BeepIsWork) BuzzerBeep(100); for(n=0; n<16; n++) { APCurrentTestingParm[n] = pgm_read_word(&(PROGMEMTestingParm[APTestingParmIndex][n])); } eeprom_busy_wait(); eeprom_write_block(APCurrentTestingParm, EEPTestingParm[APTestingParmIndex], sizeof(APCurrentTestingParm)); APModifyItemIndex = 0; APUpdateTestingParm(APCurrentTestingParm); DrawAPControlButton(APModifyItemIndex); DSPAPTestingParmItem(APModifyItemIndex, white, blue); } else if(touched_item == Button2)// { return; } else if(touched_item == Button3)//Ó¦Óà { if(APModifyItemIndex > 0) { if(GetButtonIsBeep(0) == BeepIsWork) BuzzerBeep(100); eeprom_busy_wait(); eeprom_write_block(APCurrentTestingParm, EEPTestingParm[APTestingParmIndex], sizeof(APCurrentTestingParm)); APUpdateTestingParm(APCurrentTestingParm); GetTestingParm(GetTestingParmIndex()); APModifyItemIndex = 0; DrawAPControlButton(APModifyItemIndex); DSPAPTestingParmItem(APModifyItemIndex, white, blue); } _delay_ms(200); } else if(touched_item == Button4)//Í˳ö { if(GetButtonIsBeep(0) == BeepIsWork) BuzzerBeep(100); BackColorCH(); APParentPage(); APParentPage = DSPAboutPage;//»Ö¸´¸¸Ò³ÃæÖ¸ÕëΪ×Ô¼ºµÄÒ³Ãæ return; } else if(touched_item == Button8)//ÐÞ¸Ä { if(GetButtonIsBeep(0) == BeepIsWork) BuzzerBeep(100); if(APModifyItemIndex == 0) { APModifyItemIndex = 1; //´ÓÔ¤·ÅµçÁ÷¿ªÊ¼ } else { APModifyItemIndex++; } if(APModifyItemIndex == 6) APModifyItemIndex = 13; else if(APModifyItemIndex == 14) APModifyItemIndex = 6; else if(APModifyItemIndex == 13) APModifyItemIndex = 200; if(APModifyItemIndex > 14) APModifyItemIndex = 1; DrawAPControlButton(APModifyItemIndex); DSPAPTestingParmItem(APModifyItemIndex, white, blue); _delay_ms(100); } else if(touched_item == Button7)//+ { if(getlastkeycount == 1) { if(GetButtonIsBeep(0) == BeepIsWork) BuzzerBeep(100); } if(APModifyItemIndex > 0) { if((getlastkeycount == 1) || (getlastkeycount>=50)) { SetAndUpdateParm(APCurrentTestingParm, APModifyItemIndex+1, 0); APUpdateTestingParm(APCurrentTestingParm); } } } else if(touched_item == Button6)//- { if(getlastkeycount == 1) { if(GetButtonIsBeep(0) == BeepIsWork) BuzzerBeep(100); } if(APModifyItemIndex > 0) { if((getlastkeycount == 1) || (getlastkeycount>=50)) { SetAndUpdateParm(APCurrentTestingParm, APModifyItemIndex+1, 1); APUpdateTestingParm(APCurrentTestingParm); } } } else if(touched_item == Button5)//È¡Ïû { if(APModifyItemIndex > 0) { if(GetButtonIsBeep(0) == BeepIsWork) BuzzerBeep(100); eeprom_busy_wait(); eeprom_read_block(APCurrentTestingParm, EEPTestingParm[APTestingParmIndex], sizeof(APCurrentTestingParm)); APUpdateTestingParm(APCurrentTestingParm); APModifyItemIndex = 0; DrawAPControlButton(APModifyItemIndex); DSPAPTestingParmItem(APModifyItemIndex, blue, white); _delay_ms(100); } } if(getlastkeycount == 0) { _delay_ms(150);//ÑÓʱ100msºóÍ˳ö,ÒÔÃâ°´¼üË«»÷Ì«¿ì } } // /*********************** END OF FILE (AboutPage.c)*************************/