Skip to content

Node-red : Clignote Led :

Node-red : Clignote Led : published on Aucun commentaire sur Node-red : Clignote Led :

Clignote Led :

[{“id”:”8a19b001.04a99″,”type”:”inject”,”z”:”f14599f2.29e6d8″,”name”:”tick every 1 sec”,”topic”:””,”payload”:””,”repeat”:”1″,”crontab”:””,”once”:false,”x”:354,”y”:76.16665649414062,”wires”:[[“57da0c31.7146ac”]]},{“id”:”57da0c31.7146ac”,”type”:”function”,”z”:”f14599f2.29e6d8″,”name”:”Toggle 0/1 on input”,”func”:”\ncontext.state = context.state || 0;\n\n(context.state == 0) ? context.state = 1 : context.state = 0;\nmsg.payload = context.state;\n\nreturn msg;”,”outputs”:1,”x”:617,”y”:254.16665649414062,”wires”:[[“ec745bc5.7bc108″,”c37b1870.5f344”]]},{“id”:”ec745bc5.7bc108″,”type”:”debug”,”z”:”f14599f2.29e6d8″,”name”:””,”active”:true,”x”:913,”y”:496.1666259765625,”wires”:[]},{“id”:”c37b1870.5f344″,”type”:”rpi-gpio out”,”z”:”f14599f2.29e6d8″,”name”:””,”pin”:”11″,”set”:false,”out”:”out”,”x”:867.8333740234375,”y”:75,”wires”:[]}]