refactor: 对齐 DLD154V4B 规格和 M1H 参考

- 灵敏度表改为 M1H 值: {216,108,36,10} / {108,72,18,9}
- 时序参数对齐: OUT_DELAY 39→38, PULSE_DELAY 10→19
- LED 宏命名对齐 154V4B: LEDA=红(PB1), LEDB=绿(PA9), LEDC=黄(PA10)
- RLY1/RLY2 引脚交换: PA6=RLY1, PA5=RLY2
This commit is contained in:
wangfq
2026-06-22 19:52:46 +08:00
parent cc61877510
commit 1d1e7fbc19
4 changed files with 52 additions and 47 deletions

View File

@@ -16,11 +16,12 @@
#include <stdint.h>
#define HOLD_TIME 5*1200
#define LC_HOLD_TIME 4*1200 //时间4分钟
#define IN_DELAY 10
#define OUT_DELAY 39
#define PLUSE_DELAY 10
// 时序参数(每 tick ≈50ms对齐 M1H 参考实现
#define HOLD_TIME (5 * 1200) // 有限存在保持约5分钟
#define LC_HOLD_TIME (4 * 1200) // 安全复位时间约4分钟
#define IN_DELAY 10 // 进入防抖 500ms
#define OUT_DELAY 38 // 离开防抖 1.9s
#define PULSE_DELAY 19 // 脉冲宽度 950ms
#define MAX_CMP_LOOP_UNIT 4 // 5 组