树莓派Node-Red例4:dashboard slider PWM控制LED亮度

流程图:

 网页UI图:( 新建网页,在地址栏输入 http://172.16.0.12:1880/ui)

[{
	"id": "436c74b2.977a3c",
	"type": "tab",
	"label": "流程4",
	"disabled": false,
	"info": ""
}, {
	"id": "ef889832.c54578",
	"type": "ui_slider",
	"z": "436c74b2.977a3c",
	"name": "PWM控制LED",
	"label": "PWM",
	"tooltip": "",
	"group": "f76386ba.31fe18",
	"order": 0,
	"width": 0,
	"height": 0,
	"passthru": true,
	"outs": "all",
	"topic": "",
	"min": 0,
	"max": "200",
	"step": "1",
	"x": 380,
	"y": 140,
	"wires": [
		["53d08057.6fc3a", "895dfd97.39708"]
	]
}, {
	"id": "f1c1eb8e.eae9e8",
	"type": "complete",
	"z": "436c74b2.977a3c",
	"name": "",
	"scope": [],
	"uncaught": false,
	"x": 170,
	"y": 140,
	"wires": [
		["ef889832.c54578"]
	]
}, {
	"id": "53d08057.6fc3a",
	"type": "rpi-gpio out",
	"z": "436c74b2.977a3c",
	"name": "",
	"pin": "37",
	"set": "",
	"level": "0",
	"freq": "100",
	"out": "pwm",
	"x": 580,
	"y": 200,
	"wires": []
}, {
	"id": "895dfd97.39708",
	"type": "ui_text",
	"z": "436c74b2.977a3c",
	"group": "f76386ba.31fe18",
	"order": 0,
	"width": 0,
	"height": 0,
	"name": "",
	"label": "PWM",
	"format": "{{msg.payload}}",
	"layout": "col-center",
	"x": 590,
	"y": 140,
	"wires": []
}, {
	"id": "f76386ba.31fe18",
	"type": "ui_group",
	"z": "436c74b2.977a3c",
	"name": "LED调光",
	"tab": "24fb76d8.eb34da",
	"disp": true,
	"width": "6",
	"collapse": false
}, {
	"id": "24fb76d8.eb34da",
	"type": "ui_tab",
	"z": "436c74b2.977a3c",
	"name": "Home",
	"icon": "dashboard"
}]
发布了30 篇原创文章 · 获赞 11 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/armcsdn/article/details/104258247
今日推荐