From 1706ecf783b4ac0d34dc950df2ad145e51008f6b Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期六, 11 七月 2020 22:09:13 +0800 Subject: [PATCH] 支持电量显示,更改LED顺序 --- Src/stm32l0xx_it.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/Src/stm32l0xx_it.c b/Src/stm32l0xx_it.c index 7ee3a91..57e4720 100644 --- a/Src/stm32l0xx_it.c +++ b/Src/stm32l0xx_it.c @@ -153,6 +153,13 @@ nomove_count = 0; } + if(!GET_USERKEY) + { + nomove_count = 0; + waitusart_timer = tag_frequency*USART_KEEPWAKE_TIME; + // MOTOR_ON; + } + /* USER CODE END EXTI0_1_IRQn 0 */ HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_0); HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_1); -- Gitblit v1.9.3