暂存,屏蔽蜂鸣器,1.9V OK,低压阈值设置了2V
This commit is contained in:
parent
ea904b408d
commit
9924f8c58d
|
@ -304,7 +304,7 @@ int main(void)
|
|||
DelayMs(1);
|
||||
ShowLed();
|
||||
// BEEP_ON;
|
||||
DelayMs(30);
|
||||
DelayMs(500);
|
||||
LED_ALL_OFF_DEINIT;
|
||||
BEEP_OFF_DEINIT;
|
||||
BSP_NoNeedBoost();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author : stark1898y 1658608470@qq.com
|
||||
* @Date : 2024-12-12 15:55:38
|
||||
* @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
|
||||
* @Description :
|
||||
*
|
||||
|
@ -46,9 +46,9 @@ extern tmosTaskID vavle_task_id;
|
|||
// 2.2V
|
||||
#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
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author : stark1898y 1658608470@qq.com
|
||||
* @Date : 2024-12-15 15:01:15
|
||||
* @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
|
||||
* @Description :
|
||||
*
|
||||
|
@ -532,6 +532,7 @@ static uint16_t VAVLE_Task_ProcessEvent(uint8_t task_id, uint16_t events)
|
|||
{
|
||||
logDebug("VAVLE_LOOP_DECT_EVT");
|
||||
|
||||
// TODO:亮灯或者蜂鸣器的时候读电压就低了
|
||||
gValveData.bat = BSP_ReadVbat();
|
||||
|
||||
// 电压过低就关阀
|
||||
|
|
Loading…
Reference in New Issue