根据实际电路版修改对应引脚,LED KEY LCD 正常运行
This commit is contained in:
@@ -24,6 +24,7 @@ static uint8_t ConnectFlg = 0;
|
||||
*/
|
||||
static void Key_ProcessCallback(KEY_TYPE key_type)
|
||||
{
|
||||
// IntValue_Printf(2, 32, key_type, RESET);
|
||||
BackLight_ON(); /* 任意按键按下,都打开背光 */
|
||||
keyStatus = key_type; /* 更新按键状态 */
|
||||
}
|
||||
@@ -38,12 +39,12 @@ int main(void)
|
||||
Key_Init(); /* 初始化按键驱动 */
|
||||
WDog_Init(); /* 看门狗初始化 */
|
||||
RS485_DMA_init(); /* Rs485初始化 */
|
||||
LcdInit();
|
||||
Process_Init(); /* 通信任务初始化 */
|
||||
NL_LOGO_Printf(); /* 显示存储的LOGO */
|
||||
gtim_timx_int_init(50-1, 7200-1); /* 定时5毫秒 */
|
||||
// 注册按键业务逻辑回调函数
|
||||
Key_RegisterCallback(Key_ProcessCallback); /* 注册按键回调函数 */
|
||||
NL_LOGO_Printf(); /* 显示存储的LOGO */
|
||||
Process_Init(); /* 通信任务初始化 */
|
||||
|
||||
while(1)
|
||||
{
|
||||
if(ConnectFlg == 1)
|
||||
|
||||
Reference in New Issue
Block a user