[{"id":"d9a245d0e497656f","type":"tab","label":"mcuPicoW","disabled":false,"info":"","env":[],"_mcu":{"mcu":true}},{"id":"dfe6ab2a51eadbe3","type":"mcu_digital_out","z":"d9a245d0e497656f","name":"Led intern","pin":"32","mode":"Output","initial":"undefined","invert":false,"_mcu":{"mcu":true},"x":690,"y":320,"wires":[]},{"id":"1ba0c84fb0b955e8","type":"comment","z":"d9a245d0e497656f","name":"RPI PicoW","info":"","_mcu":{"mcu":true},"x":430,"y":160,"wires":[]},{"id":"edf91f47eec298d2","type":"mcu_digital_out","z":"d9a245d0e497656f","name":"aRelæ","pin":"26","mode":"Output","initial":"1","_mcu":{"mcu":true},"x":700,"y":200,"wires":[]},{"id":"a935b95bf957dd0b","type":"mcu_digital_out","z":"d9a245d0e497656f","name":"bRelæ","pin":"27","mode":"Output","initial":"1","_mcu":{"mcu":true},"x":700,"y":260,"wires":[]},{"id":"07dcd8fa76ab184e","type":"function","z":"d9a245d0e497656f","name":"Togur","func":"let msg3 = {}\n\nlet invar = msg.payload\n\nif(invar == 0) {\n msg3.payload = 1\n node.send([null, null, msg3])\n //setTimeout(() => {\n // msg3.payload = 0\n // node.send([null, null, msg3])\n //},200)\n} else {\n msg3.payload = 0\n node.send([null, null, msg3])\n}\n","outputs":3,"noerr":0,"initialize":"// Code added here will be run once\n// whenever the node is started.\n\nlet msg1 = {}\nlet msg2 = {}\n\nsetInterval(() => {\n let me = context.get('me') ?? 1\n \n if (me) {\n msg1.payload = 1\n node.send(msg1)\n setTimeout(() => {\n msg1.payload = 0\n node.send(msg1)\n }, 200)\n } else {\n msg2.payload = 1\n node.send([null, msg2])\n setTimeout(() => {\n msg2.payload = 0\n node.send([null, msg2])\n }, 200)\n }\n\n me = me ^ 1\n context.set('me', me)\n}, 5000)\n","finalize":"","libs":[],"_mcu":{"mcu":true},"x":430,"y":260,"wires":[["edf91f47eec298d2"],["a935b95bf957dd0b"],["dfe6ab2a51eadbe3"]]},{"id":"cdff39dbe8d5e1e2","type":"mcu_digital_in","z":"d9a245d0e497656f","name":"Push","pin":"1","mode":"InputPullUp","edge":"1","debounce":"10","initial":true,"_mcu":{"mcu":true},"x":190,"y":260,"wires":[["07dcd8fa76ab184e"]]},{"id":"9e3a7bd8f2970ddb","type":"comment","z":"d9a245d0e497656f","name":"Aktiv lav","info":"","_mcu":{"mcu":true},"x":200,"y":220,"wires":[]}]