添加对额外 UI 资源和火焰状态变量的支持
- 增加了 `ui.h` 中资源数组的大小以容纳新的 UI 元素。 - 更新了 `ui_font_chinese_16.c`,添加了更多中文字符以更好地支持本地化。 - 在 `vars.h` 中添加了用于管理火焰状态的新函数,增强了系统的监测能力。
This commit is contained in:
@@ -218,6 +218,14 @@
|
||||
"defaultValue": "\"\"",
|
||||
"persistent": false,
|
||||
"native": true
|
||||
},
|
||||
{
|
||||
"objID": "e7d613bb-52ae-4744-aab5-1f1cc861e49c",
|
||||
"name": "fire_status",
|
||||
"type": "string",
|
||||
"defaultValue": "\"\"",
|
||||
"persistent": false,
|
||||
"native": true
|
||||
}
|
||||
],
|
||||
"structures": [],
|
||||
@@ -534,7 +542,7 @@
|
||||
"MAIN": {
|
||||
"DEFAULT": {
|
||||
"text_font": "number_16",
|
||||
"text_color": "#ff5e5e"
|
||||
"text_color": "#ff2a2a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -585,7 +593,7 @@
|
||||
"MAIN": {
|
||||
"DEFAULT": {
|
||||
"text_font": "number_16",
|
||||
"text_color": "#ff5e5e"
|
||||
"text_color": "#ff2a2a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -636,7 +644,7 @@
|
||||
"MAIN": {
|
||||
"DEFAULT": {
|
||||
"text_font": "number_16",
|
||||
"text_color": "#ff5e5e"
|
||||
"text_color": "#ff2a2a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -652,8 +660,8 @@
|
||||
{
|
||||
"objID": "1bcab9f8-f491-4418-cd50-5fff4f615687",
|
||||
"type": "LVGLLabelWidget",
|
||||
"left": 151,
|
||||
"top": 122,
|
||||
"left": 88,
|
||||
"top": 158,
|
||||
"width": 48,
|
||||
"height": 18,
|
||||
"customInputs": [],
|
||||
@@ -701,8 +709,8 @@
|
||||
{
|
||||
"objID": "3037d501-9168-4ab4-c5ee-86a85189cb6d",
|
||||
"type": "LVGLLabelWidget",
|
||||
"left": 163,
|
||||
"top": 140,
|
||||
"left": 95,
|
||||
"top": 176,
|
||||
"width": 32,
|
||||
"height": 18,
|
||||
"customInputs": [],
|
||||
@@ -736,7 +744,7 @@
|
||||
"MAIN": {
|
||||
"DEFAULT": {
|
||||
"text_font": "chinese_16",
|
||||
"text_color": "#ff5e5e"
|
||||
"text_color": "#ff2a2a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -836,7 +844,7 @@
|
||||
"MAIN": {
|
||||
"DEFAULT": {
|
||||
"text_font": "number_16",
|
||||
"text_color": "#ff5e5e"
|
||||
"text_color": "#ff2a2a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -901,7 +909,7 @@
|
||||
{
|
||||
"objID": "640a3e04-8f18-4527-dc2b-33003ac5959a",
|
||||
"type": "LVGLLabelWidget",
|
||||
"left": 14,
|
||||
"left": 29,
|
||||
"top": 176,
|
||||
"width": 32,
|
||||
"height": 18,
|
||||
@@ -936,7 +944,7 @@
|
||||
"MAIN": {
|
||||
"DEFAULT": {
|
||||
"text_font": "chinese_16",
|
||||
"text_color": "#ff5e5e"
|
||||
"text_color": "#ff2a2a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1036,7 +1044,7 @@
|
||||
"MAIN": {
|
||||
"DEFAULT": {
|
||||
"text_font": "number_16",
|
||||
"text_color": "#ff5e5e"
|
||||
"text_color": "#ff2a2a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1052,8 +1060,8 @@
|
||||
{
|
||||
"objID": "82818512-2a20-4b2e-82e2-fbbd2f4bf62f",
|
||||
"type": "LVGLLabelWidget",
|
||||
"left": 135,
|
||||
"top": 158,
|
||||
"left": 144,
|
||||
"top": 123,
|
||||
"width": 80,
|
||||
"height": 18,
|
||||
"customInputs": [],
|
||||
@@ -1101,8 +1109,8 @@
|
||||
{
|
||||
"objID": "1a4506d3-c156-4b63-f585-647302058a3e",
|
||||
"type": "LVGLLabelWidget",
|
||||
"left": 139,
|
||||
"top": 176,
|
||||
"left": 163,
|
||||
"top": 140,
|
||||
"width": 32,
|
||||
"height": 18,
|
||||
"customInputs": [],
|
||||
@@ -1136,7 +1144,7 @@
|
||||
"MAIN": {
|
||||
"DEFAULT": {
|
||||
"text_font": "chinese_16",
|
||||
"text_color": "#ff5e5e"
|
||||
"text_color": "#ff2a2a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1383,7 +1391,7 @@
|
||||
"MAIN": {
|
||||
"DEFAULT": {
|
||||
"text_font": "chinese_16",
|
||||
"text_color": "#ff5e5e"
|
||||
"text_color": "#ff2a2a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1434,7 +1442,7 @@
|
||||
"MAIN": {
|
||||
"DEFAULT": {
|
||||
"text_font": "chinese_16",
|
||||
"text_color": "#ff5e5e"
|
||||
"text_color": "#ff2a2a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1485,7 +1493,7 @@
|
||||
"MAIN": {
|
||||
"DEFAULT": {
|
||||
"text_font": "chinese_16",
|
||||
"text_color": "#ff5e5e"
|
||||
"text_color": "#ff2a2a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1536,7 +1544,7 @@
|
||||
"MAIN": {
|
||||
"DEFAULT": {
|
||||
"text_font": "chinese_16",
|
||||
"text_color": "#ff5e5e"
|
||||
"text_color": "#ff2a2a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1552,10 +1560,10 @@
|
||||
{
|
||||
"objID": "94c14770-4f62-4b30-f0a2-a6f432feeda1",
|
||||
"type": "LVGLLabelWidget",
|
||||
"left": 88,
|
||||
"left": 15,
|
||||
"top": 8,
|
||||
"width": 143,
|
||||
"height": 14,
|
||||
"width": 164,
|
||||
"height": 16,
|
||||
"customInputs": [],
|
||||
"customOutputs": [],
|
||||
"style": {
|
||||
@@ -1586,7 +1594,7 @@
|
||||
"definition": {
|
||||
"MAIN": {
|
||||
"DEFAULT": {
|
||||
"text_font": "number_14",
|
||||
"text_font": "number_16",
|
||||
"text_color": "#000000"
|
||||
}
|
||||
}
|
||||
@@ -1603,7 +1611,7 @@
|
||||
{
|
||||
"objID": "e90319ea-674c-4f41-ca0b-595c4d3f13f5",
|
||||
"type": "LVGLLabelWidget",
|
||||
"left": 124,
|
||||
"left": 128,
|
||||
"top": 28,
|
||||
"width": 92,
|
||||
"height": 16,
|
||||
@@ -1638,7 +1646,7 @@
|
||||
"MAIN": {
|
||||
"DEFAULT": {
|
||||
"text_font": "number_16",
|
||||
"text_color": "#000000"
|
||||
"text_color": "#fe979e"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1650,6 +1658,106 @@
|
||||
"longMode": "WRAP",
|
||||
"recolor": false,
|
||||
"previewValue": "192.168.1.169"
|
||||
},
|
||||
{
|
||||
"objID": "1e6bf4a0-3d80-4771-ef44-92c4abd5aa0b",
|
||||
"type": "LVGLLabelWidget",
|
||||
"left": 152,
|
||||
"top": 159,
|
||||
"width": 64,
|
||||
"height": 18,
|
||||
"customInputs": [],
|
||||
"customOutputs": [],
|
||||
"style": {
|
||||
"objID": "61c61d34-f4f5-49a8-c501-af74642291c8",
|
||||
"useStyle": "default",
|
||||
"conditionalStyles": [],
|
||||
"childStyles": []
|
||||
},
|
||||
"timeline": [],
|
||||
"eventHandlers": [],
|
||||
"leftUnit": "px",
|
||||
"topUnit": "px",
|
||||
"widthUnit": "content",
|
||||
"heightUnit": "content",
|
||||
"children": [],
|
||||
"widgetFlags": "CLICK_FOCUSABLE|GESTURE_BUBBLE|PRESS_LOCK|SCROLLABLE|SCROLL_CHAIN_HOR|SCROLL_CHAIN_VER|SCROLL_ELASTIC|SCROLL_MOMENTUM|SCROLL_WITH_ARROW|SNAPPABLE",
|
||||
"hiddenFlagType": "literal",
|
||||
"clickableFlagType": "literal",
|
||||
"flagScrollbarMode": "",
|
||||
"flagScrollDirection": "",
|
||||
"scrollSnapX": "",
|
||||
"scrollSnapY": "",
|
||||
"checkedStateType": "literal",
|
||||
"disabledStateType": "literal",
|
||||
"states": "",
|
||||
"localStyles": {
|
||||
"objID": "0ab84cbe-5505-4f5e-c387-ba54330993f0",
|
||||
"definition": {
|
||||
"MAIN": {
|
||||
"DEFAULT": {
|
||||
"text_font": "chinese_16"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"group": "",
|
||||
"groupIndex": 0,
|
||||
"text": "火焰状态",
|
||||
"textType": "literal",
|
||||
"longMode": "WRAP",
|
||||
"recolor": false
|
||||
},
|
||||
{
|
||||
"objID": "a367e705-b5b6-4ea7-c80c-cf227db26c6f",
|
||||
"type": "LVGLLabelWidget",
|
||||
"left": 170,
|
||||
"top": 177,
|
||||
"width": 32,
|
||||
"height": 18,
|
||||
"customInputs": [],
|
||||
"customOutputs": [],
|
||||
"style": {
|
||||
"objID": "6a18c9c7-3e38-462d-c9c9-e01900d6fda5",
|
||||
"useStyle": "default",
|
||||
"conditionalStyles": [],
|
||||
"childStyles": []
|
||||
},
|
||||
"timeline": [],
|
||||
"eventHandlers": [],
|
||||
"leftUnit": "px",
|
||||
"topUnit": "px",
|
||||
"widthUnit": "content",
|
||||
"heightUnit": "content",
|
||||
"children": [],
|
||||
"widgetFlags": "CLICK_FOCUSABLE|GESTURE_BUBBLE|PRESS_LOCK|SCROLLABLE|SCROLL_CHAIN_HOR|SCROLL_CHAIN_VER|SCROLL_ELASTIC|SCROLL_MOMENTUM|SCROLL_WITH_ARROW|SNAPPABLE",
|
||||
"hiddenFlagType": "literal",
|
||||
"clickableFlagType": "literal",
|
||||
"flagScrollbarMode": "",
|
||||
"flagScrollDirection": "",
|
||||
"scrollSnapX": "",
|
||||
"scrollSnapY": "",
|
||||
"checkedStateType": "literal",
|
||||
"disabledStateType": "literal",
|
||||
"states": "",
|
||||
"localStyles": {
|
||||
"objID": "205e25ca-d7a2-4e9e-aab7-cf5f54710fac",
|
||||
"definition": {
|
||||
"MAIN": {
|
||||
"DEFAULT": {
|
||||
"text_font": "chinese_16",
|
||||
"text_color": "#ff2a2a"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"group": "",
|
||||
"groupIndex": 0,
|
||||
"text": "fire_status",
|
||||
"textType": "expression",
|
||||
"longMode": "WRAP",
|
||||
"recolor": false,
|
||||
"previewValue": "安全"
|
||||
}
|
||||
],
|
||||
"widgetFlags": "CLICKABLE|PRESS_LOCK|CLICK_FOCUSABLE|GESTURE_BUBBLE|SNAPPABLE|SCROLLABLE|SCROLL_ELASTIC|SCROLL_MOMENTUM|SCROLL_CHAIN_HOR|SCROLL_CHAIN_VER",
|
||||
@@ -1768,7 +1876,7 @@
|
||||
"descent": 4,
|
||||
"glyphs": [],
|
||||
"lvglRanges": "32-127",
|
||||
"lvglSymbols": "温度湿粮食储环境光强火焰监测状热空质人体气存在门重有通风无加开启关闭制冷散照量明态变质良好",
|
||||
"lvglSymbols": "温度湿粮食储环境光强火焰监测状热空质人体安全危险气存在门重有通风无加开启关闭制冷散照量明态变质良好",
|
||||
"lvglGlyphs": {
|
||||
"encodings": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user