From 84e2ddc271a8e3ec39177e458b6150e07491f2ed Mon Sep 17 00:00:00 2001 From: kyz Date: Thu, 5 Feb 2026 14:56:41 +0800 Subject: [PATCH] =?utf8?q?=E6=94=AF=E6=8C=81=E5=8D=95=E8=8B=B1=E6=96=87?= =?utf8?q?=E7=89=88=E6=9C=AC=EF=BC=8C=E5=90=AF=E7=94=A8=E5=90=8E=E5=B0=86?= =?utf8?q?=E5=85=B3=E9=97=AD=E8=AF=AD=E8=A8=80=E5=88=87=E6=8D=A2=E5=8A=9F?= =?utf8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../cpbs-202103-20240423/APP/Buttonmenu.c" | 25 +++++++++++++++++++ .../cpbs-202103-20240423/APP/datastore.c" | 5 ++++ .../cpbs-202103-20240423/APP/uishow.c" | 5 ++++ .../cpbs-202103-20240423/APP/uishow.h" | 2 ++ 4 files changed, 37 insertions(+) diff --git "a/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/Buttonmenu.c" "b/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/Buttonmenu.c" index 7961394..849e1d0 100644 --- "a/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/Buttonmenu.c" +++ "b/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/Buttonmenu.c" @@ -201,6 +201,30 @@ void Set_Meun(u8 displayID, u8 Key_Scan_State) SetData.mode = 5; switch(Key_Scan_State) { +#if ENGLISH_VERSION_ONLY + case KEY1_PRES: + case KEY1_Long_PRES: + if(Interface.CursorPosition <= CURSOR_INITIAL) + Interface.CursorPosition = SETTING_CURSOR_END; + else + Interface.CursorPosition--; + //Ö»Ö§³ÖÓ¢ÎÄ°æ£¬Ìø¹ýµÚÒ»¸öÓïÑÔÇл»Ïî¡£ + if(Interface.CursorPosition == CURSOR_INITIAL) + Interface.CursorPosition = SETTING_CURSOR_END; + delay_ms(300); + break; + case KEY2_PRES: + case KEY2_Long_PRES: + if(Interface.CursorPosition >= SETTING_CURSOR_END) + Interface.CursorPosition = CURSOR_INITIAL; + else + Interface.CursorPosition++; + //Ö»Ö§³ÖÓ¢ÎÄ°æ£¬Ìø¹ýµÚÒ»¸öÓïÑÔÇл»Ïî¡£ + if(Interface.CursorPosition == CURSOR_INITIAL) + Interface.CursorPosition++; + delay_ms(300); + break; +#else case KEY1_PRES: if(Interface.CursorPosition <= CURSOR_INITIAL) Interface.CursorPosition = SETTING_CURSOR_END; @@ -225,6 +249,7 @@ void Set_Meun(u8 displayID, u8 Key_Scan_State) else Interface.CursorPosition++; delay_ms(300); break; +#endif case KEY3_Long_PRES: Interface.CursorPosition = 0; SetData.InterfaceID = TORQUE_ANGLE_INTERFACE_ID; diff --git "a/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/datastore.c" "b/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/datastore.c" index 816d18e..54f3428 100644 --- "a/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/datastore.c" +++ "b/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/datastore.c" @@ -394,6 +394,11 @@ void displayInRangeValues() RateData.RateNum = 0; } } + +#if ENGLISH_VERSION_ONLY + SetData.Languages = 0; //Ç¿ÖÆÉ趨ΪӢÎİæ +#endif + } diff --git "a/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/uishow.c" "b/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/uishow.c" index 1db1220..93ee2f9 100644 --- "a/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/uishow.c" +++ "b/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/uishow.c" @@ -1060,6 +1060,11 @@ void Setting_Interface(SetParameter_t* pdata,_calendar_obj* Time,InterfaceState_ static u32 LastUsageCounter =0; static u8 LastCurPos = 0; static u8 LastSelectState = 0; + +#if ENGLISH_VERSION_ONLY + pdata->Languages = 0; //Ó¢Îİæ +#endif // ENGLISH_VERSION_ONLY + //±äÁ¿¸³Öµ p_UsageCounter = pdata->UsageCounter; p_Standard = pdata->Standard; diff --git "a/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/uishow.h" "b/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/uishow.h" index 891abdf..bfeedc0 100644 --- "a/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/uishow.h" +++ "b/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/uishow.h" @@ -14,6 +14,8 @@ //½Ç¶ÈϵÊý »ù´¡Ò»È¦/¶ÔÓ¦Âö³åÊý 360 / 23 = 15 Ò²¾ÍÊÇ15¡ãµÈÓÚÒ»¸öÂö³å #define COEFFICIENT (360 / 23) +#define ENGLISH_VERSION_ONLY 0 //ÊÇ·ñÖ»ÏÔʾӢÎİ汾 + extern u32 Corresponding_A; // ŤÁ¦¶ÔÓ¦µçÁ÷ extern u32 Angle_Number; // ½Ç¶È¶ÔӦȦÊý -- 2.34.1