暂存,屏蔽蜂鸣器,1.9V OK,低压阈值设置了2V

This commit is contained in:
stark1898y 2025-05-29 18:08:04 +08:00
parent ea904b408d
commit 9924f8c58d
3 changed files with 6 additions and 5 deletions

View File

@ -304,7 +304,7 @@ int main(void)
DelayMs(1); DelayMs(1);
ShowLed(); ShowLed();
// BEEP_ON; // BEEP_ON;
DelayMs(30); DelayMs(500);
LED_ALL_OFF_DEINIT; LED_ALL_OFF_DEINIT;
BEEP_OFF_DEINIT; BEEP_OFF_DEINIT;
BSP_NoNeedBoost(); BSP_NoNeedBoost();

View File

@ -2,7 +2,7 @@
* @Author : stark1898y 1658608470@qq.com * @Author : stark1898y 1658608470@qq.com
* @Date : 2024-12-12 15:55:38 * @Date : 2024-12-12 15:55:38
* @LastEditors : stark1898y 1658608470@qq.com * @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2025-05-28 18:00:21 * @LastEditTime : 2025-05-29 17:28:34
* @FilePath : \BLE_TYQ_CH584M\BSP\inc\bsp_valve.h * @FilePath : \BLE_TYQ_CH584M\BSP\inc\bsp_valve.h
* @Description : * @Description :
* *
@ -46,9 +46,9 @@ extern tmosTaskID vavle_task_id;
// 2.2V // 2.2V
#define LOW_VABAT_ALARM_VALUE 23 #define LOW_VABAT_ALARM_VALUE 23
#define LOW_VABAT_CLOSE_VALUE 23 #define LOW_VABAT_CLOSE_VALUE 2000
#define LOW_VABAT_CLOSE_MV 2450 #define LOW_VABAT_CLOSE_MV 2000
#define HIGN_TEMP_CLOSE_C 60 #define HIGN_TEMP_CLOSE_C 60

View File

@ -2,7 +2,7 @@
* @Author : stark1898y 1658608470@qq.com * @Author : stark1898y 1658608470@qq.com
* @Date : 2024-12-15 15:01:15 * @Date : 2024-12-15 15:01:15
* @LastEditors : stark1898y 1658608470@qq.com * @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2025-05-28 18:05:13 * @LastEditTime : 2025-05-29 17:25:55
* @FilePath : \BLE_TYQ_CH584M\BSP\src\bsp_valve.c * @FilePath : \BLE_TYQ_CH584M\BSP\src\bsp_valve.c
* @Description : * @Description :
* *
@ -532,6 +532,7 @@ static uint16_t VAVLE_Task_ProcessEvent(uint8_t task_id, uint16_t events)
{ {
logDebug("VAVLE_LOOP_DECT_EVT"); logDebug("VAVLE_LOOP_DECT_EVT");
// TODO亮灯或者蜂鸣器的时候读电压就低了
gValveData.bat = BSP_ReadVbat(); gValveData.bat = BSP_ReadVbat();
// 电压过低就关阀 // 电压过低就关阀