This flow builds a dashboard that contains a slider node to regulate the LED brightness. The generated commands are sent to Smick through "dasboard console" flow".
-
-
Save infosmick/04359bced3b8a4f734e0342a30e26fb3 to your computer and use it in GitHub Desktop.
Smick_003_LED_PWM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "95bc9b60.213bc8", | |
"type": "ui_slider", | |
"z": "e11a21a.8f4d4e", | |
"name": "", | |
"label": "slider", | |
"group": "5e36b7c5.bef018", | |
"order": 2, | |
"width": 0, | |
"height": 0, | |
"passthru": true, | |
"topic": "", | |
"min": "0", | |
"max": "10", | |
"step": "1", | |
"x": 110, | |
"y": 260, | |
"wires": [ | |
[ | |
"25fe4efd.213742" | |
] | |
] | |
}, | |
{ | |
"id": "d025d81e.e6dcd8", | |
"type": "link out", | |
"z": "e11a21a.8f4d4e", | |
"name": "command", | |
"links": [ | |
"d00f3010.4b85b" | |
], | |
"x": 675, | |
"y": 260, | |
"wires": [] | |
}, | |
{ | |
"id": "c40efbbf.d8b2c8", | |
"type": "function", | |
"z": "e11a21a.8f4d4e", | |
"name": "D8=n", | |
"func": "msg.payload=\"d8=\"+msg.payload;\nreturn msg;", | |
"outputs": 1, | |
"noerr": 0, | |
"x": 550, | |
"y": 260, | |
"wires": [ | |
[ | |
"d025d81e.e6dcd8" | |
] | |
] | |
}, | |
{ | |
"id": "25fe4efd.213742", | |
"type": "range", | |
"z": "e11a21a.8f4d4e", | |
"minin": "0", | |
"maxin": "10", | |
"minout": "1023", | |
"maxout": "0", | |
"action": "scale", | |
"round": true, | |
"name": "0..1023", | |
"x": 320, | |
"y": 260, | |
"wires": [ | |
[ | |
"c40efbbf.d8b2c8" | |
] | |
] | |
}, | |
{ | |
"id": "611d37b9.54d4f8", | |
"type": "comment", | |
"z": "e11a21a.8f4d4e", | |
"name": "analogic output (PWM)", | |
"info": "", | |
"x": 160, | |
"y": 160, | |
"wires": [] | |
}, | |
{ | |
"id": "f85f2a2c.4de528", | |
"type": "comment", | |
"z": "e11a21a.8f4d4e", | |
"name": "Description", | |
"info": "Questo flusso costruisce un cruscotto contenente un nodo slider per regolare la luminosità del LED.\nI comandi generati sono inviati a smick tramite il flusso \"dasboard console\".\n\nThis flow builds a dashboard that contains a slider node to regulate the LED brightness.\nThe generated commands are sent to Smick through \"dasboard console\" flow\".", | |
"x": 130, | |
"y": 60, | |
"wires": [] | |
}, | |
{ | |
"id": "12d8a682.ab0279", | |
"type": "comment", | |
"z": "e11a21a.8f4d4e", | |
"name": "Licence & History", | |
"info": "Package : Smick v.1\nModule : LED - digital output\nAuthor : Curci\nLicence : (CC) BY-NC-SA\n\nThis work is licensed under a Creative Commons \nAttribution-NonCommercial-ShareAlike \n4.0 International License.\n\nHistory\n\nDate Author Description\n2016.12.17 Curci genesis", | |
"x": 300, | |
"y": 60, | |
"wires": [] | |
}, | |
{ | |
"id": "62aa0eb1.71b45", | |
"type": "comment", | |
"z": "e11a21a.8f4d4e", | |
"name": "BOM", | |
"info": "Bill Of Material\n\nHardware:\n\n 1 Human internet terminal (PC, tablet or smartphone) connected to the internet\n 1 Smick Wi-Fi connected to the internet\n 1 LED connected to smick \n\nHW Connections:\n\n Device pin Smick pin\n LED + 3.3V\n LED - D8\n\nFlow Connections:\n\n Smick_001_console\n\nAccount:\n\n Wi-Fi credentials\n MQTT broker\n FRED\n", | |
"x": 450, | |
"y": 60, | |
"wires": [] | |
}, | |
{ | |
"id": "5e36b7c5.bef018", | |
"type": "ui_group", | |
"z": "", | |
"name": "LED", | |
"tab": "9f185bbc.98cc78", | |
"order": 1, | |
"disp": true, | |
"width": "6" | |
}, | |
{ | |
"id": "9f185bbc.98cc78", | |
"type": "ui_tab", | |
"z": "", | |
"name": "LED", | |
"icon": "dashboard", | |
"order": 2 | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment