接入温湿度风扇产品固件(仲裁/条件/定时/显示),并补齐规格书与外设驱动
新增 usr_app 产品逻辑:手动>定时>条件仲裁、条件控温湿、定时任务、数码管显示、 按键/LED、风扇档位、NVM 掉电恢复、配对与开关机,上电按规格恢复上次状态。 新增 usr_periph:AHT20、CT1642、板级引脚与硬件封装;见宝协议 cond_config 改为 7 字节编解码,并接入产品 DP。 补充《温湿度风扇_固件需求规格书》,工程加入对应源文件。 .gitignore 忽略 WorkBuddy/Cursor 本地会话
This commit is contained in:
+14
-14
@@ -99,10 +99,10 @@
|
||||
"key": "cond_config1",
|
||||
"kind": "normal",
|
||||
"type": "raw",
|
||||
"len": 6,
|
||||
"len": 7,
|
||||
"scale": 1.0,
|
||||
"dir": "rw",
|
||||
"description": "温度\n温度精度是0.1,需要*10换算成整数进行传输\nByte 5\nBit7 ~ Bit5:温度比较关系\nBit4 ~ Bit2:湿度比较关系\nBit1 :Reserved\nBit0 :Reserved\n比较关系建议统一定义\n000 = 无条件\n001 = <\n010 = <=\n011 = =\n100 = >=\n101 = >\n110 = Reserved\n111 = Reserved",
|
||||
"description": "温度阈值:有符号int16大端,值=℃×10;Byte0=使能;Byte1-2=温度阈值;Byte3=湿度阈值;Byte4=持续分钟(0=立即);Byte5=动作模式(0/1/2);Byte6=Bit7-5温度比较, Bit4-2湿度比较, Bit1-0保留",
|
||||
"values": {}
|
||||
},
|
||||
{
|
||||
@@ -111,10 +111,10 @@
|
||||
"key": "cond_config2",
|
||||
"kind": "normal",
|
||||
"type": "raw",
|
||||
"len": 6,
|
||||
"len": 7,
|
||||
"scale": 1.0,
|
||||
"dir": "rw",
|
||||
"description": "同上",
|
||||
"description": "同上(7字节)",
|
||||
"values": {}
|
||||
},
|
||||
{
|
||||
@@ -123,10 +123,10 @@
|
||||
"key": "cond_config3",
|
||||
"kind": "normal",
|
||||
"type": "raw",
|
||||
"len": 6,
|
||||
"len": 7,
|
||||
"scale": 1.0,
|
||||
"dir": "rw",
|
||||
"description": "同上",
|
||||
"description": "同上(7字节)",
|
||||
"values": {}
|
||||
},
|
||||
{
|
||||
@@ -135,10 +135,10 @@
|
||||
"key": "cond_config4",
|
||||
"kind": "normal",
|
||||
"type": "raw",
|
||||
"len": 6,
|
||||
"len": 7,
|
||||
"scale": 1.0,
|
||||
"dir": "rw",
|
||||
"description": "同上",
|
||||
"description": "同上(7字节)",
|
||||
"values": {}
|
||||
},
|
||||
{
|
||||
@@ -147,10 +147,10 @@
|
||||
"key": "cond_config5",
|
||||
"kind": "normal",
|
||||
"type": "raw",
|
||||
"len": 6,
|
||||
"len": 7,
|
||||
"scale": 1.0,
|
||||
"dir": "rw",
|
||||
"description": "同上",
|
||||
"description": "同上(7字节)",
|
||||
"values": {}
|
||||
},
|
||||
{
|
||||
@@ -159,10 +159,10 @@
|
||||
"key": "cond_config6",
|
||||
"kind": "normal",
|
||||
"type": "raw",
|
||||
"len": 6,
|
||||
"len": 7,
|
||||
"scale": 1.0,
|
||||
"dir": "rw",
|
||||
"description": "同上",
|
||||
"description": "同上(7字节)",
|
||||
"values": {}
|
||||
},
|
||||
{
|
||||
@@ -171,10 +171,10 @@
|
||||
"key": "cond_config7",
|
||||
"kind": "normal",
|
||||
"type": "raw",
|
||||
"len": 6,
|
||||
"len": 7,
|
||||
"scale": 1.0,
|
||||
"dir": "rw",
|
||||
"description": "同上",
|
||||
"description": "同上(7字节)",
|
||||
"values": {}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user