Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
TianYing_ty100
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TY
TianYing_ty100
Commits
d9d80769
Commit
d9d80769
authored
May 13, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:完善显示逻辑
parent
0afdb47e
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
93 additions
and
72 deletions
+93
-72
GUI_Display.c
Firmware/Source/Application/GUI_Display/GUI_Display.c
+7
-0
SEG_DISPLAY.c
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.c
+83
-69
SEG_DISPLAY.h
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.h
+2
-2
Key_user.c
Firmware/Source/Component/Key/Key_user.c
+1
-1
No files found.
Firmware/Source/Application/GUI_Display/GUI_Display.c
View file @
d9d80769
...
@@ -66,6 +66,7 @@ void Clear_Bu98(void)
...
@@ -66,6 +66,7 @@ void Clear_Bu98(void)
void
Gauge_Service
(
void
)
void
Gauge_Service
(
void
)
{
{
static
uint16_t
VSpeed_Count
=
0u
;
static
uint16_t
VSpeed_Count
=
0u
;
uint32_t
i
=
0
;
if
(
ClearODO_Flag
==
1
)
if
(
ClearODO_Flag
==
1
)
{
{
if
(
Common_Get_IG_Sts
(
)
==
COMMON_POWER_ON
)
if
(
Common_Get_IG_Sts
(
)
==
COMMON_POWER_ON
)
...
@@ -83,6 +84,12 @@ void Gauge_Service(void)
...
@@ -83,6 +84,12 @@ void Gauge_Service(void)
{
{
if
(
Common_GetIgnOnTime
()
>=
3000
)
if
(
Common_GetIgnOnTime
()
>=
3000
)
{
{
//for(i = 0; i < BU98R10_DDRAM_SIZE; i ++)
//{
// BU98R10Chip0DDRAM.Byte[i] = 1;
// BU98R10Chip1DDRAM.Byte[i] = 1;
//}
i
=
Get_Trip_Value
();
if
(
VSpeed_Count
<
3
)
if
(
VSpeed_Count
<
3
)
{
{
VSpeed_Count
++
;
VSpeed_Count
++
;
...
...
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.c
View file @
d9d80769
This diff is collapsed.
Click to expand it.
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.h
View file @
d9d80769
...
@@ -14,7 +14,7 @@ typedef enum
...
@@ -14,7 +14,7 @@ typedef enum
em_SEG_Bluetooth
,
em_SEG_Bluetooth
,
em_SEG_TCS
,
em_SEG_TCS
,
em_SEG_Auto_Start_Stop
,
em_SEG_Auto_Start_Stop
,
em_SEG_Keys
,
//
em_SEG_Keys,
em_SEG_Upkeep
,
em_SEG_Upkeep
,
em_SEG_Low_Batt_Vol
,
em_SEG_Low_Batt_Vol
,
em_SEG_Lateral_Strut
,
em_SEG_Lateral_Strut
,
...
@@ -31,7 +31,7 @@ typedef enum
...
@@ -31,7 +31,7 @@ typedef enum
void
SEG_SET_DTC_NUM
(
uint
16
_t
num
);
void
SEG_SET_DTC_NUM
(
uint
32
_t
num
);
void
SEG_SET_LED_STS
(
uint8_t
LED_NUM
,
uint8_t
m_Flag
);
void
SEG_SET_LED_STS
(
uint8_t
LED_NUM
,
uint8_t
m_Flag
);
void
SEG_SET_FuelDial
(
uint8_t
m_Flag
,
uint8_t
m_SEG
);
void
SEG_SET_FuelDial
(
uint8_t
m_Flag
,
uint8_t
m_SEG
);
void
SEG_SET_EspeedDial
(
uint8_t
m_Flag
,
uint8_t
m_SEG
);
void
SEG_SET_EspeedDial
(
uint8_t
m_Flag
,
uint8_t
m_SEG
);
...
...
Firmware/Source/Component/Key/Key_user.c
View file @
d9d80769
...
@@ -158,7 +158,7 @@ void Key_Wakeup_Init_EXample(void)
...
@@ -158,7 +158,7 @@ void Key_Wakeup_Init_EXample(void)
void
KEY_LEFT_EVENT_NONE_Service
(
void
)
void
KEY_LEFT_EVENT_NONE_Service
(
void
)
{
{
MenuInfor
.
Back_Time_Left
++
;
MenuInfor
.
Back_Time_Left
++
;
if
(
MenuInfor
.
Back_Time_Left
>
BACK_MENU_TIME
)
if
(
(
MenuInfor
.
Back_Time_Left
>
BACK_MENU_TIME
)
&&
(
PageType
!=
Page_DTC
)
)
{
{
MenuInfor
.
Back_Time_Left
=
BACK_MENU_TIME
;
MenuInfor
.
Back_Time_Left
=
BACK_MENU_TIME
;
MenuInfor
.
Back_Time_Left_Flag
=
1
;
MenuInfor
.
Back_Time_Left_Flag
=
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment