Commit 053b34d2 authored by 何锐's avatar 何锐

feat:上电全亮程序

parent 5f1a8105
...@@ -61,6 +61,7 @@ void main(void) { ...@@ -61,6 +61,7 @@ void main(void) {
ZS_OUT_N=ZS_FR=120; ZS_OUT_N=ZS_FR=120;
g_curkeyinput = 1; g_curkeyinput = 1;
G_Button.LED_STEP = 5;
for(;;) { for(;;) {
gui_LCD_Display(); gui_LCD_Display();
......
...@@ -982,11 +982,11 @@ void app_Can_handle_PA5(void) { ...@@ -982,11 +982,11 @@ void app_Can_handle_PA5(void) {
g_Msg21B.data[1].bbyte = 0x80; //LIM g_Msg21B.data[1].bbyte = 0x80; //LIM
g_Msg21B.data[3].bbyte = 0x02; g_Msg21B.data[3].bbyte = 0x02;
g_Msg108.data[1].bbyte = 0x2D; //车速有效 g_Msg108.data[1].bbyte = 0x24; //车速有效
g_Msg108.data[2].bbyte = 0xE4; //车速11 g_Msg108.data[2].bbyte = 0x38; //车速60
g_Msg082.data[1].bbyte = 0xFF; g_Msg082.data[1].bbyte = 0x5D;
g_Msg082.data[2].bbyte = 0xC0; //转速1000 g_Msg082.data[2].bbyte = 0xC0; //转速6000
g_Msg082.data[3].bbyte = 0x80; //转速有效 g_Msg082.data[3].bbyte = 0x80; //转速有效
} }
......
...@@ -49,7 +49,7 @@ interrupt void bsp_RTC_isr(void) ...@@ -49,7 +49,7 @@ interrupt void bsp_RTC_isr(void)
AutoTime = 0; AutoTime = 0;
if((G_Button.LED_STEP >= 0)&&(G_Button.LED_STEP < MenuCn)) if((G_Button.LED_STEP >= 0)&&(G_Button.LED_STEP < MenuCn))
{ {
G_Button.LED_STEP ++; // G_Button.LED_STEP ++;
if(g_FRStep < MenuCn) if(g_FRStep < MenuCn)
{ {
g_FRStep++; g_FRStep++;
...@@ -58,7 +58,7 @@ interrupt void bsp_RTC_isr(void) ...@@ -58,7 +58,7 @@ interrupt void bsp_RTC_isr(void)
} }
else else
{ {
G_Button.LED_STEP = 0; // G_Button.LED_STEP = 0;
g_FRStep = 0; g_FRStep = 0;
} }
} }
......
...@@ -92,7 +92,7 @@ void Gui_ButtonProc(_Button* KeyMenu) ...@@ -92,7 +92,7 @@ void Gui_ButtonProc(_Button* KeyMenu)
XUN_HUAN=0; XUN_HUAN=0;
if((G_Button.LED_STEP >= 0)&&(G_Button.LED_STEP < MenuCn)) if((G_Button.LED_STEP >= 0)&&(G_Button.LED_STEP < MenuCn))
{ {
G_Button.LED_STEP ++; // G_Button.LED_STEP ++;
if(g_FRStep < MenuCn) if(g_FRStep < MenuCn)
{ {
g_FRStep++; g_FRStep++;
...@@ -101,7 +101,7 @@ void Gui_ButtonProc(_Button* KeyMenu) ...@@ -101,7 +101,7 @@ void Gui_ButtonProc(_Button* KeyMenu)
} }
else else
{ {
G_Button.LED_STEP = 0; // G_Button.LED_STEP = 0;
g_FRStep = 0; g_FRStep = 0;
} }
...@@ -123,12 +123,12 @@ void Gui_ButtonProc(_Button* KeyMenu) ...@@ -123,12 +123,12 @@ void Gui_ButtonProc(_Button* KeyMenu)
XUN_HUAN=0; XUN_HUAN=0;
if(G_Button.LED_STEP == 0) if(G_Button.LED_STEP == 0)
{ {
G_Button.LED_STEP = MenuCn; // G_Button.LED_STEP = MenuCn;
g_FRStep = MenuCn; g_FRStep = MenuCn;
} }
else if((G_Button.LED_STEP > 0)&&(G_Button.LED_STEP <= MenuCn)) else if((G_Button.LED_STEP > 0)&&(G_Button.LED_STEP <= MenuCn))
{ {
G_Button.LED_STEP --; // G_Button.LED_STEP --;
if((g_FRStep > 0) && (g_FRStep <= MenuCn)) if((g_FRStep > 0) && (g_FRStep <= MenuCn))
{ {
g_FRStep--; g_FRStep--;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment