doc_fix:update the part 3 picture in ch32v307 doc
This commit is contained in:
@@ -172,51 +172,8 @@ MRS IDE默认集成了TencentOS Tiny工程模板,一键即可生成TencentOS T
|
|||||||

|

|
||||||
|
|
||||||
1.3. 数据模板
|
1.3. 数据模板
|
||||||
进入产品,点击【数据模板】,点击【导入JSON】,导入下面的JSON代码:
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"version": "1.0",
|
|
||||||
"properties": [
|
|
||||||
{
|
|
||||||
"id": "power_switch",
|
|
||||||
"name": "电灯开关",
|
|
||||||
"desc": "控制电灯开灭",
|
|
||||||
"required": true,
|
|
||||||
"mode": "rw",
|
|
||||||
"define": {
|
|
||||||
"type": "bool",
|
|
||||||
"mapping": {
|
|
||||||
"0": "关",
|
|
||||||
"1": "开"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "brightness",
|
|
||||||
"name": "光照强度",
|
|
||||||
"desc": "",
|
|
||||||
"mode": "r",
|
|
||||||
"define": {
|
|
||||||
"type": "int",
|
|
||||||
"min": "0",
|
|
||||||
"max": "20000",
|
|
||||||
"start": "0",
|
|
||||||
"step": "1",
|
|
||||||
"unit": "lx"
|
|
||||||
},
|
|
||||||
"required": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"events": [],
|
|
||||||
"actions": [],
|
|
||||||
"profile": {
|
|
||||||
"ProductId": "TCC64FUFGD",
|
|
||||||
"CategoryId": "3"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
导入之后自动根据json文件创建的属性如下:
|
平台自动创建的物模型(数据模板)如下:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -304,33 +261,3 @@ https://github.com/OpenAtomFoundation/TencentOS-tiny 上clone整个代码仓源
|
|||||||
|
|
||||||
在此页面中可以自己根据喜好配置小程序显示面板,保存之后,在腾讯连连小程序删除设备,重新扫描绑定设备即可生效。
|
在此页面中可以自己根据喜好配置小程序显示面板,保存之后,在腾讯连连小程序删除设备,重新扫描绑定设备即可生效。
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 53 KiB |
Binary file not shown.
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 112 KiB |
Reference in New Issue
Block a user