Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiancetai
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
陈家乐
jiancetai
Commits
3900745d
Commit
3900745d
authored
Oct 14, 2025
by
李鑫3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:添加刷字
parent
f4944397
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
202 additions
and
5 deletions
+202
-5
GUI_Display.c
Test_Bench/Api_Sources/GUI_Display.c
+151
-1
GUI_Display.h
Test_Bench/App_Headers/GUI_Display.h
+51
-4
No files found.
Test_Bench/Api_Sources/GUI_Display.c
View file @
3900745d
#define GLOBALS_GUI_DISP
#include "../
App_Headers/
includes.h"
#include "../
app_Headers/g_
includes.h"
/*-------------------------------------------------------------------------
* Function Name : gui_LCD_Display
* Description : LCD???
* Input : None
* Output : None
* Return : None
* onther :
--------------------------------------------------------------------------*/
void
gui_LCD_Display
(
void
)
{
//??
m_LCDFP17BP
=
Matrix1
[
G_Button
.
LED_STEP
/
10
]
>>
4
;
m_LCDFP18BP
=
Matrix1
[
G_Button
.
LED_STEP
/
10
];
//?
m_LCDFP19BP
=
Matrix1
[
G_Button
.
LED_STEP
%
10
]
>>
4
;
m_LCDFP20BP
=
Matrix1
[
G_Button
.
LED_STEP
%
10
];
if
(
G_Button
.
LED_STEP
==
13
)
{
m_LCDFP18BP
&=
~
0x08
;
m_LCDFP20BP
&=
~
0x08
;
m_LCDFP22BP
&=
~
0x08
;
//D
m_LCDFP7BP
|=
0x0d
;
m_LCDFP8BP
|=
0x07
;
}
if
(
G_Button
.
LED_STEP
==
14
)
{
//L
m_LCDFP18BP
|=
0x08
;
m_LCDFP20BP
|=
0x08
;
m_LCDFP22BP
|=
0x08
;
//
m_LCDFP7BP
&=
~
0x0d
;
m_LCDFP8BP
&=
~
0x07
;
}
if
((
G_Button
.
LED_STEP
!=
13
)
&&
(
G_Button
.
LED_STEP
!=
14
))
{
//
m_LCDFP7BP
&=
~
0x0d
;
m_LCDFP8BP
&=
~
0x07
;
//
m_LCDFP18BP
&=
~
0x08
;
m_LCDFP20BP
&=
~
0x08
;
m_LCDFP22BP
&=
~
0x08
;
}
LCDRAM2_FP4BP
=
m_LCDFP4BP
;
LCDRAM2_FP5BP
=
m_LCDFP5BP
;
LCDRAM3_FP6BP
=
m_LCDFP6BP
;
LCDRAM3_FP7BP
=
m_LCDFP7BP
;
LCDRAM4_FP8BP
=
m_LCDFP8BP
;
LCDRAM4_FP9BP
=
m_LCDFP9BP
;
LCDRAM5_FP10BP
=
m_LCDFP10BP
;
LCDRAM5_FP11BP
=
m_LCDFP11BP
;
LCDRAM6_FP12BP
=
m_LCDFP12BP
;
LCDRAM6_FP13BP
=
m_LCDFP13BP
;
LCDRAM7_FP14BP
=
m_LCDFP14BP
;
LCDRAM7_FP15BP
=
m_LCDFP15BP
;
LCDRAM8_FP16BP
=
m_LCDFP16BP
;
LCDRAM8_FP17BP
=
m_LCDFP17BP
;
LCDRAM9_FP18BP
=
m_LCDFP18BP
;
LCDRAM9_FP19BP
=
m_LCDFP19BP
;
LCDRAM10_FP20BP
=
m_LCDFP20BP
;
LCDRAM10_FP21BP
=
m_LCDFP21BP
;
LCDRAM11_FP22BP
=
m_LCDFP22BP
;
}
/*-------------------------------------------------------------------------
* Function Name : Gui_KeyProc
* Description :
* Input : None
* Output : None
* Return : None
* onther :
--------------------------------------------------------------------------*/
void
Gui_ButtonProc
(
_Button
*
KeyMenu
)
{
/**lamp+**/
//D ???
if
(
KeyAddIn
==
HIGH
)
{
if
((
KeyMenu
->
PushTime1
>=
T_100ms
)
&&
(
KeyMenu
->
PushTime1
<
T_2s
))
{
XUN_HUAN
=
0
;
if
((
G_Button
.
LED_STEP
>=
0
)
&&
(
G_Button
.
LED_STEP
<
MenuCn
))
{
G_Button
.
LED_STEP
++
;
if
(
g_FRStep
<
MenuCn
)
{
g_FRStep
++
;
}
}
else
{
G_Button
.
LED_STEP
=
0
;
g_FRStep
=
0
;
}
KeyMenu
->
PushTime1
=
null
;
}
}
//???
if
(
KeyAddIn
==
HIGH
)
{
KeyMenu
->
PushTime1
=
null
;
}
/**lamp-**/
//D ???
if
(
KeySubIn
==
HIGH
)
{
if
((
KeyMenu
->
PushTime2
>=
T_100ms
)
&&
(
KeyMenu
->
PushTime2
<
T_2s
))
{
XUN_HUAN
=
0
;
if
(
G_Button
.
LED_STEP
==
0
)
{
G_Button
.
LED_STEP
=
MenuCn
;
g_FRStep
=
MenuCn
;
}
else
if
((
G_Button
.
LED_STEP
>
0
)
&&
(
G_Button
.
LED_STEP
<=
MenuCn
))
{
G_Button
.
LED_STEP
--
;
if
((
g_FRStep
>
0
)
&&
(
g_FRStep
<=
MenuCn
))
{
g_FRStep
--
;
}
}
KeyMenu
->
PushTime2
=
null
;
}
}
//???
if
(
KeySubIn
==
HIGH
)
{
KeyMenu
->
PushTime2
=
null
;
}
/***/
if
((
KeyAddIn
==
LOW
)
&&
(
KeyMenu
->
PushTime1
>=
T_1s
)
&&
(
KeySubIn
==
LOW
)
&&
(
KeyMenu
->
PushTime2
>=
T_1s
))
{
XUN_HUAN
=
1
;
}
}
Test_Bench/App_Headers/GUI_Display.h
View file @
3900745d
...
...
@@ -7,13 +7,60 @@
#ifdef GLOBALS_GUI_DISP
#define EXTERN_GUI_DISP
const
INT8U
Matrix1
[]
=
{
//0 1 2 3 4 5 6 7 8 9
0xd7
,
0x06
,
0xe3
,
0xa7
,
0x36
,
0xb5
,
0xf5
,
0x07
,
0xf7
,
0xb7
};
const
INT8U
Matrix2
[]
=
{
//0 1 2 3 4 5 6 7 8 9
0xeb
,
0x0a
,
0xc7
,
0x8f
,
0x2e
,
0xad
,
0xed
,
0x0b
,
0xef
,
0xaf
};
const
INT8U
Matrix3
[]
=
{
//0 1 2 3 4 5 6 7 8 9
0x5f
,
0x06
,
0x6b
,
0x2f
,
0x36
,
0x3d
,
0x7d
,
0x07
,
0x7f
,
0x3f
};
#else
#define EXTERN_GUI_DISP extern
#endif
#ifndef GUI_DISP_H_
#define GUI_DISP_H_
#ifndef _GUI_DISP_H_
#define _GUI_DISP_H_
EXTERN_GUI_DISP
volatile
INT8U
m_LCDFP4BP
;
EXTERN_GUI_DISP
volatile
INT8U
m_LCDFP5BP
;
EXTERN_GUI_DISP
volatile
INT8U
m_LCDFP6BP
;
EXTERN_GUI_DISP
volatile
INT8U
m_LCDFP7BP
;
EXTERN_GUI_DISP
volatile
INT8U
m_LCDFP8BP
;
EXTERN_GUI_DISP
volatile
INT8U
m_LCDFP9BP
;
EXTERN_GUI_DISP
volatile
INT8U
m_LCDFP10BP
;
EXTERN_GUI_DISP
volatile
INT8U
m_LCDFP11BP
;
EXTERN_GUI_DISP
volatile
INT8U
m_LCDFP12BP
;
EXTERN_GUI_DISP
volatile
INT8U
m_LCDFP13BP
;
EXTERN_GUI_DISP
volatile
INT8U
m_LCDFP14BP
;
EXTERN_GUI_DISP
volatile
INT8U
m_LCDFP15BP
;
EXTERN_GUI_DISP
volatile
INT8U
m_LCDFP16BP
;
EXTERN_GUI_DISP
volatile
INT8U
m_LCDFP17BP
;
EXTERN_GUI_DISP
volatile
INT8U
m_LCDFP18BP
;
EXTERN_GUI_DISP
volatile
INT8U
m_LCDFP19BP
;
EXTERN_GUI_DISP
volatile
INT8U
m_LCDFP20BP
;
EXTERN_GUI_DISP
volatile
INT8U
m_LCDFP21BP
;
EXTERN_GUI_DISP
volatile
INT8U
m_LCDFP22BP
;
#define HIGH 1
#define LOW 0
#define MenuCn 5
#define Auto 1
#define Manu 0
EXTERN_GUI_DISP
void
gui_LCD_Display
(
void
);
EXTERN_GUI_DISP
void
Gui_ButtonProc
(
_Button
*
KeyMenu
);
#endif
/* GUI_DISP_H_ */
\ No newline at end of file
#endif
/* _GUI_DISP_H_ */
\ No newline at end of file
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