{"nodes": [{"id": "n1", "type": "terminal", "x": 0, "y": 0, "w": 160, "h": 40, "subType": "START", "text": "START"}, {"id": "n2", "type": "io", "x": 0, "y": 80, "w": 160, "h": 40, "ioType": "out", "pin": "out4", "outPins": ["out4"], "action": "ON", "text": "RED = ON"}, {"id": "n3", "type": "decision", "x": 0, "y": 160, "w": 160, "h": 80, "decType": "pin", "pin": "in2", "cond": "==", "val": 255, "text": "BUTTON = ON?"}, {"id": "n4", "type": "io", "x": 0, "y": 270, "w": 160, "h": 40, "ioType": "out", "pin": "out4", "outPins": ["out4"], "action": "OFF", "text": "RED = OFF"}, {"id": "n5", "type": "io", "x": 0, "y": 350, "w": 160, "h": 40, "ioType": "out", "pin": "out5", "outPins": ["out5", "out7"], "action": "ON", "text": "GREEN, BUZZER = ON"}, {"id": "n6", "type": "process", "x": 0, "y": 430, "w": 160, "h": 40, "pType": "delay", "delayType": "constant", "delayMs": 500, "text": "Wait 500ms"}, {"id": "n7", "type": "io", "x": 0, "y": 510, "w": 160, "h": 40, "ioType": "out", "pin": "out5", "outPins": ["out5", "out7"], "action": "OFF", "text": "GREEN, BUZZER = OFF"}], "links": [{"from": "n1", "fromAnchor": "bottom", "to": "n2", "waypoints": []}, {"from": "n2", "fromAnchor": "bottom", "to": "n3", "waypoints": []}, {"from": "n3", "fromAnchor": "bottom", "to": "n4", "waypoints": []}, {"from": "n4", "fromAnchor": "bottom", "to": "n5", "waypoints": []}, {"from": "n5", "fromAnchor": "bottom", "to": "n6", "waypoints": []}, {"from": "n6", "fromAnchor": "bottom", "to": "n7", "waypoints": []}, {"from": "n3", "fromAnchor": "right", "to": "n3", "waypoints": [{"x": 150, "y": 160}, {"x": 150, "y": 100}, {"x": 0, "y": 100}]}, {"from": "n7", "fromAnchor": "bottom", "to": "n2", "waypoints": [{"x": 0, "y": 560}, {"x": -150, "y": 560}, {"x": -150, "y": 50}, {"x": 0, "y": 50}]}], "pins": [{"id": "in2", "type": "input", "pinNum": 2, "name": "BUTTON", "component": "button", "colour": "#ef4444"}, {"id": "out4", "type": "output", "pinNum": 4, "name": "RED", "component": "led", "colour": "#ef4444"}, {"id": "out5", "type": "output", "pinNum": 5, "name": "GREEN", "component": "led", "colour": "#22c55e"}, {"id": "out7", "type": "output", "pinNum": 7, "name": "BUZZER", "component": "buzzer", "colour": "#ef4444"}], "version": "2.0"}