We intended to reproduce a game that was fun to play and was highly educational to build. In this project we explore how to use an MCP23017 port expander, and build somewhat complex game logic using the Quantum Platform.
VideoGather both the client that you intend to build the Simon Says game with and all of the parts detailed in the parts list above.
We are using an MCP23017 port expander to expand the number of I/O ports on the Builder Base by sixteen, however we will only be using nine of these extra ports.
The port expander connects to the Builder Base through the SCL and SDA ports and communicates via I2C communication.
Here we will build two sets of firmware files: one for the Button and the other for the LED.
Using the toolbar located on the left hand side of the screen navigate to the firmware builder and then select “+ Create New” button to create a new firmware file.
Next, name your firmware file “Simon Says” and hit “Create”.
Now, click the “+ Add Hardware” button, and search for the device named “Button”.
Name your device. We suggest naming this one “Red”. Add four more buttons by repeating these steps and name them: Blue, Yellow, Green, and Reset.
To configure the “Red” button, click on it in the device list and select the “MCP23017” driver from the driver dropdown menu.
Next, input:
I2C: 0x27
Channel: B0
Pull Up: Disabled
Now, repeat these steps for the rest of the buttons. The only configuration that will change between them is the Channel selected for each. Here is a table for all of the button configurations:
With the buttons configured, let’s now add the LEDs. Again, click the “+Add Hardware” button, search for the LED device, and give it a name. Name the LED “Red LED”, and select the “Add Hardware” button.
Add three more LEDs by repeating these steps and name them: Green LED, Blue LED, and Yellow LED.
Click on the “Red LED” device and select the “MCP23017/8” driver under the driver dropdown menu.
For this driver we will select:
I2C Address: 0x27
Channel: A0
Mode: Initially low
Now, repeat these steps for the rest of the LEDs. The only configuration that will change between them is the channel selected for each. Here is a table for all of the LED configurations:
With the configurations set you can now save and upload your firmware.
For this project we will walk you through the objects used and the logic involved. You can choose to follow along, or you can download the app and import it onto your server.
Once there, click “+ Create New”.
Name your app, and hit “Create”.
You will be redirected to the canvas where you can build the app.
This first section consists of both a physical reset button and a dashboard button. Both perform the same function of initializing the “Store” array and triggering the game sequence.
The Game sequence consists of indexing the “Store” Array to -1. This index will place the value input at the end of the array. The Random Number code object is then triggered. This picks a random number between 1 and 4. This value is then passed and written to the store array.
After the value is written to the array, you can see that from trigger port 8 the “Store” Array Iterate object’s Index is reset and then from trigger port 9 the Loop object is triggered. Upon triggering, the Loop triggers the Array iterate object to output the values of the Array. These values are then passed to the “Illuminate LEDs” Any Data Sequence object. Once the end of the array is reached, the index on the Loop is reset.
When the values are passed from the Array Iterate object to the Any Data Sequence object they are passed to a custom snippet named “Number to Color Translate”. The numbers that can be passed are 0-4. Each number corresponds to a different color. 1 is Green, 2 is Red, 3 is Blue, 4 is Yellow, and 0 outputs “false” from all output ports.
You can see the code here:
switch(inPorts[0].value){
case 0:{
return [false,false,false,false];
}; break;
case 1:{
return [true,false,false,false];
}; break;
case 2:{
return [false,true,false,false];
}; break;
case 3:{
return [false,false,true,false];
}; break;
case 4:{
return [false,false,false,true];
}; break;
default: break;
}
The number passed to the snippet dictates which output port will send out a trigger signal. Once this signal is passed it will trigger the LED and Button interface objects that are connected to it.
So, for example, if a 2 is passed to the custom snippet the second output port, and only the second output port, will send out a signal.
Also connected to the output ports on the sequence are a timeout and static number objects. The purpose of this is to shutoff the LEDs once they have been triggered. The timeout allows the LED to stay on for 500ms before a 0 is sent to the “Number to Color Translate object” which turns off all output ports.
That’s how the colors for the game are selected and stored. Now we will show you how the logic determines if the right sequence of color inputs have been selected by the user.
**It is important to note that these LED objects are used twice in this application, but due to the mapping they all correspond to the same LEDs
Here we have all of the button hardware components connected to the LEDs. We configured this so that every time the user presses a button the corresponding LED will be illuminated. So if the user presses the button that corresponds to the green LED, the green LED will illuminate for the interval that the button is depressed.
You can also see that the buttons are connected to a custom snippet. This is essentially the reverse of the other custom snippet used above. Each button is connected to an individual input port on the snippet. Depending upon which port the signal is received a number in the range of 1-4 is output by the snippet.
You can see the custom snippet code here:
return [trigger+1, new Date()]
What this code does is return the number of the output port ([0, 3] + 1) (to make it 1 through 4) that the signal was received from, and a “new Date()” which acts as a trigger. The number is output through the first output port, and the trigger through the second.
These outputs are then used to verify that the input given is correct. For every button pressed the “Verify Sequence” data sequence is triggered. This triggers the Array Iterate object for the “Store” Array, passing the first value to the Value Compare object. The Value from the “Button to Number” custom snippet is also passed to the same Value Compare object. If the values are equal, the Value Compare object will send a signal to the Digital AND object below.
Now if the Array Iterate object has reached the end of the list and all values entered match the values stored in the array, the Digital AND will trigger and the game sequence will be restarted.
You can see this logic path with the lines selected in blue.
**The “Value 1” port on the value compare object is set to “Trigger” under the properties panel. This is important as the comparison needs to be triggered every time a button is depressed.
However, if one of the values entered is incorrect the “Greater” and “Less” output ports on the Value compare port will trigger.
This then triggers the “Incorrect Pattern” data sequence. This sequence causes the LEDs to turn on and off in quick succession, and re-initializes the “Store” array; effectively priming the array for a new game.
This sums up the basic logic behind the Simon Says project.
Step 4: Map the HardwareNavigate back to the applications page.
Find your “Simon Says” app and hit the play button.
A list containing all of the devices is your application will expand.
Next click on the “Red Button” device and the client dropdown menu will appear on the right.
Select the “Simon Says - Red” driver from the dropdown menu and hit “Done”.
You should now go down and map all of the devices for the application. Ensure to match the objects to the drivers carefully. The color for the buttons and LEDs need to match the colors described in the drivers - e.g. Blue LED → Simon Says - Blue LED.
**Note that you will be mapping each color of LED twice. This is because the Application accesses the same LEDs from two different code objects.
Notice how the status symbols have changed to green checkmarks.
Congratulations on building the Simon Says project. It is now time to run it!
Hit “Save + Run”.
Voila! Your Simon Says project is now complete.
LINKS:
For more information about this project, check out our Simon Game Project Info Page
For more information about Quantum as well as any resources needed, check out our Website
Simon Says App.json
JSON{"id":"231","name":"Simon Says","identifier":"Simon Says","offsetX":119.24966606178464,"offsetY":476.76685481743885,"zoom":24.7329458894407,"gridSize":0,"links":[{"id":"20969","internalFlowId":"20909","type":"default","selected":false,"points":[{"id":"1246de92-1891-400b-a43a-5e293484ef82","selected":false,"x":1058.093843376804,"y":393.2656672673882},{"id":"724091c7-7745-4060-9687-0654a5a153a5","selected":false,"x":1235.452986956115,"y":512.6874501093154}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"1","target":"2","sourcePort":"8538","targetPort":"8539"},{"id":"20970","internalFlowId":"20910","type":"default","selected":false,"points":[{"id":"9bf982e2-f038-48ba-80dd-41e5f34b1a12","selected":false,"x":1399.452718833765,"y":512.6874501093154},{"id":"941a8203-be21-4947-a454-82a10bf76ccf","selected":false,"x":1702.1561181616576,"y":508.8123267904096}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"2","target":"3","sourcePort":"8540","targetPort":"8550"},{"id":"20971","internalFlowId":"20911","type":"default","selected":false,"points":[{"id":"3ec53478-89f0-4b72-89a8-f43ff0fb6b79","selected":false,"x":1058.093843376804,"y":371.2655550588906},{"id":"c82420d7-c7c8-47fd-8d48-0943056235eb","selected":false,"x":2060.6404639515235,"y":360.9530115016652}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"1","target":"4","sourcePort":"8537","targetPort":"8556"},{"id":"20972","internalFlowId":"20912","type":"default","selected":false,"points":[{"id":"0304907f-b5c9-429d-861a-9dee9b071cae","selected":false,"x":1866.1558500393076,"y":508.8123267904096},{"id":"c8c5bbb0-56cf-465f-a988-dc05e6824518","selected":false,"x":2060.6404639515235,"y":382.9531237101629}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"3","target":"4","sourcePort":"8552","targetPort":"8557"},{"id":"20973","internalFlowId":"20913","type":"default","selected":false,"points":[{"id":"b0700fc7-9041-46f7-a66f-bcb81833693e","selected":false,"x":1866.749872397439,"y":563.3125587370566},{"id":"26b15e81-b3ed-4064-8b11-eac936070f88","selected":false,"x":2467.828412651761,"y":546.0311577233831}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"3","target":"5","sourcePort":"8554","targetPort":"8563"},{"id":"20974","internalFlowId":"20914","type":"default","selected":false,"points":[{"id":"6e2c0f78-853a-4525-b4da-1f1429230d24","selected":false,"x":2224.6563964193833,"y":382.9531237101629},{"id":"978c00d5-8011-496b-8d31-3604afb01727","selected":false,"x":2467.828412651761,"y":524.0313348111392}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"4","target":"5","sourcePort":"8560","targetPort":"8562"},{"id":"20975","internalFlowId":"20915","type":"default","selected":false,"points":[{"id":"6d256304-c929-4dea-b4f7-17dedbe0ae5e","selected":false,"x":1399.452718833765,"y":710.6875920970328},{"id":"91a28d20-b32a-4754-84b4-354a5b09aea7","selected":false,"x":2467.828412651761,"y":502.0312226026418}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"2","target":"5","sourcePort":"8549","targetPort":"8561"},{"id":"20976","internalFlowId":"20916","type":"default","selected":false,"points":[{"id":"a5ab899f-ce4b-44ea-b860-8a6bd1ad6538","selected":false,"x":409.37505609168113,"y":-512.8750018207985},{"id":"55603839-23e4-477f-9972-de19e73743ff","selected":false,"x":636.1717471771127,"y":-552.5312983396951}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"6","target":"7","sourcePort":"8567","targetPort":"8568"},{"id":"20977","internalFlowId":"20917","type":"default","selected":false,"points":[{"id":"eb4e7ec4-bbd6-4243-868b-932310e582cd","selected":false,"x":800.1717683510163,"y":-552.5312983396951},{"id":"90a7d53e-5d17-4bf3-8ea8-810b3f7192ca","selected":false,"x":954.0558488503533,"y":-550.1013817627882},{"id":"d3767e01-c62f-4ea7-a3af-f4f7360ef5f5","selected":false,"x":951.5836609640739,"y":-604.489515260934},{"id":"9a508b7d-fb9b-4ac3-ab4d-fcf970707ee4","selected":false,"x":1010.8124208498402,"y":-599.9219302024477}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"7","target":"8","sourcePort":"8569","targetPort":"8579"},{"id":"20978","internalFlowId":"20918","type":"default","selected":false,"points":[{"id":"14288646-c950-4503-a0c3-65bff891fbc1","selected":false,"x":800.1717683510163,"y":-398.5312361208461},{"id":"dd6e0ad2-7611-4438-a084-4dddfcceb6f2","selected":false,"x":1011.5781880335015,"y":-397.390540992332}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"7","target":"9","sourcePort":"8576","targetPort":"8586"},{"id":"20979","internalFlowId":"20919","type":"default","selected":false,"points":[{"id":"f63b2ef4-1477-4f16-b8f9-8212ac0bca69","selected":false,"x":2631.843766527113,"y":502.0312226026418},{"id":"a8387267-aa0a-4e14-bf78-3c36cf7c17de","selected":false,"x":2800.3810582194997,"y":564.0478959152958},{"id":"03f3e497-a15d-48f0-81e9-5aa491d6a2f5","selected":false,"x":2630.199235747758,"y":236.05436607404778},{"id":"e3f6461a-0452-4c08-ab70-b5fc1e6ba370","selected":false,"x":1661.1015843262496,"y":221.22123875637163},{"id":"83956032-1013-4b46-aa64-41382ad7b9d0","selected":false,"x":1673.480010497779,"y":55.54967689538896},{"id":"00565af3-5965-42b1-997e-bfa9a5a9cc10","selected":false,"x":1785.9530924287424,"y":74.89080057790952}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"5","target":"10","sourcePort":"8564","targetPort":"8597"},{"id":"20980","internalFlowId":"20920","type":"default","selected":false,"points":[{"id":"b642d259-386f-48f0-b68a-676bf665641d","selected":false,"x":1949.9684463040949,"y":74.89080057790952},{"id":"0308b50e-759b-40e7-b0bc-1cba147f2eed","selected":false,"x":2041.818518813271,"y":80.30652923844822},{"id":"547c8b23-fcdb-459c-af48-fbce6fd20a05","selected":false,"x":2039.3463309269914,"y":-1.275671008770595},{"id":"d6d8bdf4-57f1-4e8a-a600-fb52fedd1156","selected":false,"x":951.583660964074,"y":-23.525361985284817},{"id":"00c597a4-68c1-4e00-850c-8f75474cf755","selected":false,"x":946.6392851915152,"y":-396.8257328134679},{"id":"4ff59add-7fb5-4ff1-b753-6cc1e39d7f0d","selected":false,"x":1011.5781880335015,"y":-397.390540992332}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"10","target":"9","sourcePort":"8599","targetPort":"8586"},{"id":"20981","internalFlowId":"20921","type":"default","selected":false,"points":[{"id":"63add683-e1a5-47ca-9a00-77cf7c73675d","selected":false,"x":1532.921859868757,"y":-433.3437008151741},{"id":"a538f667-7b87-4190-887e-c77dfef80817","selected":false,"x":1746.8124664821453,"y":-349.0312006239166}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"12","target":"11","sourcePort":"8611","targetPort":"8602"},{"id":"20982","internalFlowId":"20922","type":"default","selected":false,"points":[{"id":"e0fb1096-f779-4755-8f7a-bfe35e49e554","selected":false,"x":1175.578209207405,"y":-331.39049366309274},{"id":"8f722b34-5ed8-4c16-9b12-19d2a45fe9a2","selected":false,"x":1368.9215493985998,"y":-433.3437008151741}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"9","target":"12","sourcePort":"8590","targetPort":"8607"},{"id":"20983","internalFlowId":"20923","type":"default","selected":false,"points":[{"id":"367cc15f-8e7d-423a-9425-f489291b0fd7","selected":false,"x":1532.4531999376911,"y":-628.062500044796},{"id":"7b79ef6b-8ddd-4448-8b31-c80ea36b5e7b","selected":false,"x":1746.8124664821453,"y":-371.03131283241436}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"13","target":"11","sourcePort":"8614","targetPort":"8601"},{"id":"20984","internalFlowId":"20924","type":"default","selected":false,"points":[{"id":"ffcc6cf1-d249-48b7-af58-7983e94bdd2a","selected":false,"x":1175.578209207405,"y":-375.3907180800881},{"id":"9b0f447b-839b-4bcd-b167-7d33b1e67a56","selected":false,"x":1368.4528894675339,"y":-628.062500044796}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"9","target":"13","sourcePort":"8588","targetPort":"8612"},{"id":"20985","internalFlowId":"20925","type":"default","selected":false,"points":[{"id":"e3755398-5ed3-4b91-926d-9bf3b2075607","selected":false,"x":1175.578209207405,"y":-265.3904463338536},{"id":"205bd0ed-3155-4bbf-9293-a14f200e5b90","selected":false,"x":1746.8124664821453,"y":-305.0312655031751}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"9","target":"11","sourcePort":"8593","targetPort":"8604"},{"id":"20986","internalFlowId":"20926","type":"default","selected":false,"points":[{"id":"a290414c-af17-4b38-b691-edcedba23ad1","selected":false,"x":1175.578209207405,"y":-221.39080050936587},{"id":"a5cbc68d-8090-4475-bbcd-ea8a823d02ca","selected":false,"x":1695.859295902658,"y":-157.59374415238997}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"9","target":"14","sourcePort":"8595","targetPort":"8615"},{"id":"20987","internalFlowId":"20927","type":"default","selected":false,"points":[{"id":"d84686a6-3f14-4a65-8ce3-5b2b3cb43ba2","selected":false,"x":1175.578209207405,"y":-243.39062342160975},{"id":"dff65d5d-f814-4ee8-91aa-e8c540033afb","selected":false,"x":2162.4690815674353,"y":-230.07836700930915}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"9","target":"15","sourcePort":"8594","targetPort":"8620"},{"id":"20988","internalFlowId":"20928","type":"default","selected":false,"points":[{"id":"28202f5b-0f15-4fb0-b3f3-4be102f2c45c","selected":false,"x":2328.06225721071,"y":-208.07796550455765},{"id":"bb7e1e3c-c6ba-4c00-809d-ac6827e169b6","selected":false,"x":2723.059045819652,"y":-120.37492859789978},{"id":"d4fe83a8-78ea-48f2-abff-323adae7ef6e","selected":false,"x":2573.433110657558,"y":-4.949207187140956},{"id":"713f30bc-c506-4b60-8aa2-0dac5b8f3c9b","selected":false,"x":1731.2528470309096,"y":-30.599367500642906},{"id":"bd654de7-746a-48eb-abe2-f3984bd687fd","selected":false,"x":1589.483916834057,"y":-101.43481486163746},{"id":"9e9a687b-3e81-4f03-b8f1-79f2adcaa800","selected":false,"x":1694.359295902658,"y":-125.09391371049438}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"15","target":"14","sourcePort":"8623","targetPort":"8616"},{"id":"20989","internalFlowId":"20929","type":"default","selected":false,"points":[{"id":"a1995bb9-429b-4171-a020-6ba83eed3331","selected":false,"x":1859.8596063728153,"y":-114.59361688458895},{"id":"3e5effae-b1f6-45f7-b858-e79d2781d7cd","selected":false,"x":2163.4690815674353,"y":-262.57819745120463}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"14","target":"15","sourcePort":"8618","targetPort":"8619"},{"id":"20990","internalFlowId":"20930","type":"default","selected":false,"points":[{"id":"a41e5f88-ece4-47ae-ae24-fb0b07656659","selected":false,"x":2992.4845265923896,"y":-282.31254140037646},{"id":"b0ee315c-a287-405c-893e-b096fa7ddc3b","selected":false,"x":3140.9218557961153,"y":-282.9842873015709}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"17","target":"16","sourcePort":"8629","targetPort":"8624"},{"id":"20991","internalFlowId":"20931","type":"default","selected":false,"points":[{"id":"460aa74d-b331-40dc-b8d9-81f56e0792ec","selected":false,"x":1175.578209207405,"y":-199.39068830086813},{"id":"fb823714-34fa-47a7-aa4b-c9d2923f8261","selected":false,"x":1318.1263818145346,"y":-182.02629809873721},{"id":"7ad1f21c-5fcf-4aca-bcb2-56d40742327c","selected":false,"x":1539.9063078878924,"y":568.6134516880123},{"id":"f90f52f1-3f20-4f7e-a1bd-83926d5b60b5","selected":false,"x":1701.1561181616576,"y":541.3124465285589}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"9","target":"3","sourcePort":"8596","targetPort":"8551"},{"id":"20992","internalFlowId":"20932","type":"default","selected":false,"points":[{"id":"9bbe854f-e186-40cc-b78e-74daa285df82","selected":false,"x":-50.000201006516846,"y":163.40619674356503},{"id":"adf47206-d9bd-4952-9c23-0daecc4b8340","selected":false,"x":890.5155168403364,"y":371.2655550588906}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"21","target":"1","sourcePort":"8643","targetPort":"8533"},{"id":"20993","internalFlowId":"20933","type":"default","selected":false,"points":[{"id":"2c2c59e3-627c-41e3-b474-5c151c9bc449","selected":false,"x":-73.40629300821209,"y":344.765728919653},{"id":"09e7d125-c69d-4059-9c67-f4998a403dc7","selected":false,"x":890.5155168403364,"y":393.2656672673882}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"22","target":"1","sourcePort":"8646","targetPort":"8534"},{"id":"20994","internalFlowId":"20934","type":"default","selected":false,"points":[{"id":"f7908dd9-cfc1-4479-a8e6-246fe2f5946e","selected":false,"x":-76.37505116413672,"y":519.7344175542744},{"id":"3028acd7-250f-4c9c-822c-591abc94e9de","selected":false,"x":890.5155168403364,"y":415.2654901796321}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"19","target":"1","sourcePort":"8637","targetPort":"8535"},{"id":"20995","internalFlowId":"20935","type":"default","selected":false,"points":[{"id":"6bc7756a-174d-45ad-b2bb-055ba4e53de4","selected":false,"x":-85.23445963880414,"y":662.1248764622353},{"id":"8658808d-7aa3-41ae-8c4f-ae421b77e966","selected":false,"x":890.5155168403364,"y":437.2656023881297}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"20","target":"1","sourcePort":"8640","targetPort":"8536"},{"id":"20996","internalFlowId":"20936","type":"default","selected":false,"points":[{"id":"7a894f06-3557-4c77-8531-fced043b6036","selected":false,"x":3663.202847493503,"y":-321.8280952918266},{"id":"fccf5617-5949-4e0e-88db-4650214ad6c0","selected":false,"x":4436.84351799674,"y":-107.26574277724418}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"18","target":"26","sourcePort":"8634","targetPort":"8657"},{"id":"20997","internalFlowId":"20937","type":"default","selected":false,"points":[{"id":"197b4b8a-89a3-4dc8-b647-cc6e1ee162e8","selected":false,"x":3663.202847493503,"y":-364.8282225596277},{"id":"44512ad6-fad0-4a17-9a5a-73eea5df1d19","selected":false,"x":4439.874764143473,"y":-242.8750974974373}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"18","target":"25","sourcePort":"8633","targetPort":"8654"},{"id":"20998","internalFlowId":"20938","type":"default","selected":false,"points":[{"id":"29584ef2-2854-4969-bd1b-1a4eeafa1aa8","selected":false,"x":3663.202847493503,"y":-407.82834982742867},{"id":"895ad654-bf19-4d1f-8d9d-953b8d8658c7","selected":false,"x":4434.515840339114,"y":-392.3593898434637}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"18","target":"24","sourcePort":"8632","targetPort":"8651"},{"id":"20999","internalFlowId":"20939","type":"default","selected":false,"points":[{"id":"55aff315-2f00-44a5-abed-e05330aedad7","selected":false,"x":3663.202847493503,"y":-450.828187798976},{"id":"678899a6-52e1-4eda-9dda-5dca0948a131","selected":false,"x":4439.734166164153,"y":-532.3906378021395}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"18","target":"23","sourcePort":"8631","targetPort":"8648"},{"id":"21000","internalFlowId":"20940","type":"default","selected":false,"points":[{"id":"7bed27b5-5a27-4e36-8310-298a1e5fc354","selected":false,"x":2327.468813445085,"y":-262.57819745120463},{"id":"8f010891-e2d5-490c-b877-807afce8167e","selected":false,"x":2539.7185317072353,"y":-419.578117173256}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"15","target":"27","sourcePort":"8621","targetPort":"8659"},{"id":"21001","internalFlowId":"20941","type":"default","selected":false,"points":[{"id":"dc7d1848-a86c-4e9f-94c8-765e183bc1e4","selected":false,"x":2703.7188421773926,"y":-419.578117173256},{"id":"3c55d909-8a44-4e2e-a5db-faa007228fa6","selected":false,"x":3498.9687856503197,"y":-450.828187798976}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"27","target":"18","sourcePort":"8660","targetPort":"8630"},{"id":"21002","internalFlowId":"20942","type":"default","selected":false,"points":[{"id":"13f373c0-7404-4ace-8e0b-ee41196075c0","selected":false,"x":2703.7188421773926,"y":-397.57800496475835},{"id":"02c9f84a-d93e-4172-a597-a32844bde764","selected":false,"x":2828.46859412453,"y":-282.31254140037646}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"27","target":"17","sourcePort":"8661","targetPort":"8627"},{"id":"21003","internalFlowId":"20943","type":"default","selected":false,"points":[{"id":"e6a0edc3-4513-404e-8087-f268ca50c81f","selected":false,"x":3304.921587673765,"y":-282.9842873015709},{"id":"8a8f9ba8-b61e-40bb-b806-b61bac470153","selected":false,"x":3498.9687856503197,"y":-450.828187798976}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"16","target":"18","sourcePort":"8626","targetPort":"8630"},{"id":"21004","internalFlowId":"20944","type":"default","selected":false,"points":[{"id":"fa0cc3b9-6b54-41a4-9428-433fa2ddae6f","selected":false,"x":-845.0939245024217,"y":189.54671693565203},{"id":"7ec7a287-c245-4db8-a348-3ccababa58d8","selected":false,"x":-644.1406463564819,"y":109.34367002883332}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"28","target":"32","sourcePort":"8670","targetPort":"8674"},{"id":"21005","internalFlowId":"20945","type":"default","selected":false,"points":[{"id":"800bfc0d-a024-4e36-aae8-b0e96e2bcdf7","selected":false,"x":-859.8593159972804,"y":346.3125959884242},{"id":"ffb70fd3-327b-4eb1-b596-e17ca359f22e","selected":false,"x":-650.8436405557386,"y":243.29680369633985}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"29","target":"33","sourcePort":"8671","targetPort":"8675"},{"id":"21006","internalFlowId":"20946","type":"default","selected":false,"points":[{"id":"346c576d-4ef2-4255-940c-07b38c975920","selected":false,"x":-857.2657750824621,"y":477.51567946783683},{"id":"2b37961f-2629-4791-a7b1-2195982036b7","selected":false,"x":-656.6405588882682,"y":396.70308535437874}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"30","target":"34","sourcePort":"8672","targetPort":"8676"},{"id":"21007","internalFlowId":"20947","type":"default","selected":false,"points":[{"id":"c913893f-e0fb-4cf7-8f20-575f523ab800","selected":false,"x":-855.7186187174375,"y":600.5154783760743},{"id":"3361c0d8-a978-480c-900a-039d0f0910ae","selected":false,"x":-668.1094195717097,"y":549.906281042289}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"31","target":"35","sourcePort":"8673","targetPort":"8677"},{"id":"21008","internalFlowId":"20948","type":"default","selected":false,"points":[{"id":"3d2f64dc-9d56-4d42-b8fe-ab9c6449cdf7","selected":false,"x":-845.0939245024217,"y":189.54671693565203},{"id":"e9aef847-8c93-484f-bf75-a04e66bc94da","selected":false,"x":890.5155168403364,"y":371.2655550588906}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"28","target":"1","sourcePort":"8670","targetPort":"8533"},{"id":"21009","internalFlowId":"20949","type":"default","selected":false,"points":[{"id":"3ceba1fc-275f-4781-b147-23f4a6b8d562","selected":false,"x":-859.8593159972804,"y":346.3125959884242},{"id":"dc67cd88-5336-4d43-bba1-4c85669ddbec","selected":false,"x":890.5155168403364,"y":393.2656672673882}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"29","target":"1","sourcePort":"8671","targetPort":"8534"},{"id":"21010","internalFlowId":"20950","type":"default","selected":false,"points":[{"id":"916a83a2-7d7a-4d22-b58e-472caa00a098","selected":false,"x":-857.2657750824621,"y":477.51567946783683},{"id":"416ec648-348f-4bbf-8739-e913ecb471da","selected":false,"x":890.5155168403364,"y":415.2654901796321}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"30","target":"1","sourcePort":"8672","targetPort":"8535"},{"id":"21011","internalFlowId":"20951","type":"default","selected":false,"points":[{"id":"cb9437e3-58e3-41bd-973b-acbb4e87c9b6","selected":false,"x":-855.7186187174375,"y":600.5154783760743},{"id":"c8388d64-8472-4bf1-bdd1-d767a3029167","selected":false,"x":890.5155168403364,"y":437.2656023881297}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"31","target":"1","sourcePort":"8673","targetPort":"8536"},{"id":"21012","internalFlowId":"20952","type":"default","selected":false,"points":[{"id":"641753e0-8542-449c-87ca-3b9084aaefe8","selected":false,"x":3663.202847493503,"y":-450.828187798976},{"id":"5d497683-c2e5-4deb-b08a-c70d23894dca","selected":false,"x":4740.984141113236,"y":-643.1249987922504}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"18","target":"36","sourcePort":"8631","targetPort":"8678"},{"id":"21013","internalFlowId":"20953","type":"default","selected":false,"points":[{"id":"aab7c4b6-67c5-46d9-a1c7-21fff73fed09","selected":false,"x":3663.202847493503,"y":-407.82834982742867},{"id":"aceafa12-e83b-43cd-813d-9264da413831","selected":false,"x":4729.43774903379,"y":-438.7188252097443}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"18","target":"37","sourcePort":"8632","targetPort":"8679"},{"id":"21014","internalFlowId":"20954","type":"default","selected":false,"points":[{"id":"20cd1b98-cd20-486b-bd23-b5af23df82d4","selected":false,"x":3663.202847493503,"y":-364.8282225596277},{"id":"203ef43a-a744-4b7f-b761-c92dc9334731","selected":false,"x":4718.578146260734,"y":-283.79692047833873}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"18","target":"38","sourcePort":"8633","targetPort":"8680"},{"id":"21015","internalFlowId":"20955","type":"default","selected":false,"points":[{"id":"84683f8a-d22a-42a9-ba7e-4080963ceb01","selected":false,"x":3663.202847493503,"y":-321.8280952918266},{"id":"b5dfa34b-6c46-4084-8203-772fa5c2f8db","selected":false,"x":4712.343811992543,"y":-124.4999885015572}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"18","target":"39","sourcePort":"8634","targetPort":"8681"},{"id":"21016","internalFlowId":"20956","type":"default","selected":false,"points":[{"id":"39b90007-9b78-449b-bdeb-81f76a0d3a18","selected":false,"x":-42.92170026989976,"y":-550.5937366802422},{"id":"20940236-2312-494b-af6f-54cf7fc75348","selected":false,"x":636.1717471771127,"y":-552.5312983396951}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"40","target":"7","sourcePort":"8682","targetPort":"8568"},{"id":"21017","internalFlowId":"20957","type":"default","selected":false,"points":[{"id":"e8486c88-e466-471f-bf12-4499281a531a","selected":false,"x":2224.6563964193833,"y":338.9531885894213},{"id":"edff14ba-5759-4db4-ae06-d5078bbc5a3d","selected":false,"x":3096.203019484819,"y":344.82821691046183}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"4","target":"41","sourcePort":"8558","targetPort":"8683"},{"id":"21018","internalFlowId":"20958","type":"default","selected":false,"points":[{"id":"bfa46b92-c903-4efe-8167-2dfe5c1fa713","selected":false,"x":2224.6563964193833,"y":360.9530115016652},{"id":"ad26aa61-6ebb-4e11-bade-f7b863260738","selected":false,"x":3096.203019484819,"y":344.82821691046183}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"4","target":"41","sourcePort":"8559","targetPort":"8683"},{"id":"21019","internalFlowId":"20959","type":"default","selected":false,"points":[{"id":"f3de264e-16b6-4f5f-84f4-287412bf5eed","selected":false,"x":3260.203329954976,"y":344.82821691046183},{"id":"4a0f2587-70e5-4aed-a899-2a6ed4338b13","selected":true,"x":4439.734166164153,"y":-532.3906378021395}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"41","target":"23","sourcePort":"8684","targetPort":"8648"},{"id":"21020","internalFlowId":"20960","type":"default","selected":false,"points":[{"id":"28793354-99e3-4258-8efb-ee19794927d3","selected":false,"x":3260.203329954976,"y":344.82821691046183},{"id":"d4ea64ad-5d6b-4e14-9167-17c5afcfe046","selected":true,"x":4434.515840339114,"y":-392.3593898434637}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"41","target":"24","sourcePort":"8684","targetPort":"8651"},{"id":"21021","internalFlowId":"20961","type":"default","selected":false,"points":[{"id":"95afeb5b-37f2-49e9-a93a-b141f2f911a2","selected":false,"x":3260.203329954976,"y":344.82821691046183},{"id":"867df305-a2aa-4790-879b-043b19d909b8","selected":true,"x":4439.874764143473,"y":-242.8750974974373}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"41","target":"25","sourcePort":"8684","targetPort":"8654"},{"id":"21022","internalFlowId":"20962","type":"default","selected":false,"points":[{"id":"7e78ea42-4914-47d2-a83f-39ef8a35b572","selected":false,"x":3260.203329954976,"y":344.82821691046183},{"id":"3fcaaefa-90a6-48fa-a64d-f0e2399fdab6","selected":true,"x":4436.84351799674,"y":-107.26574277724418}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"41","target":"26","sourcePort":"8684","targetPort":"8657"},{"id":"21023","internalFlowId":"20963","type":"default","selected":false,"points":[{"id":"d075b99d-fa72-4ff1-8e57-5d395ef3dec7","selected":false,"x":3260.203329954976,"y":410.8279749434473},{"id":"51dfed0b-c9e1-46c1-b5ef-7500a64dcbaf","selected":true,"x":4740.984141113236,"y":-643.1249987922504}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"41","target":"36","sourcePort":"8687","targetPort":"8678"},{"id":"21024","internalFlowId":"20964","type":"default","selected":false,"points":[{"id":"6b2c8ebb-4298-4575-8533-31be194dcb35","selected":false,"x":3260.203329954976,"y":410.8279749434473},{"id":"944797fd-6d27-4e3e-ba7d-a6d4d3ed99ce","selected":true,"x":4729.43774903379,"y":-438.7188252097443}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"41","target":"37","sourcePort":"8687","targetPort":"8679"},{"id":"21025","internalFlowId":"20965","type":"default","selected":false,"points":[{"id":"ac12495c-3d57-4289-a91a-1c12d521824b","selected":false,"x":3260.203329954976,"y":410.8279749434473},{"id":"b8ee0413-c013-4adf-935e-84769f74e1cd","selected":true,"x":4718.578146260734,"y":-283.79692047833873}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"41","target":"38","sourcePort":"8687","targetPort":"8680"},{"id":"21026","internalFlowId":"20966","type":"default","selected":false,"points":[{"id":"4f3dc8ff-8220-4918-8558-a981c5fc5b98","selected":false,"x":3260.203329954976,"y":410.8279749434473},{"id":"0a5bc69b-5dbf-4299-9dd1-1f6ebb70e312","selected":true,"x":4712.343811992543,"y":-124.4999885015572}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"41","target":"39","sourcePort":"8687","targetPort":"8681"},{"id":"21027","internalFlowId":"20967","type":"default","selected":false,"points":[{"id":"db8a738b-1309-40fc-a588-176269fe6bf6","selected":false,"x":3260.203329954976,"y":344.82821691046183},{"id":"ee60d5e6-6a4b-4ac2-8db2-79aea968bb5d","selected":false,"x":3980.86806186974,"y":-730.8019363415905},{"id":"d1375238-2150-4e2a-a73a-e2cb621e682e","selected":false,"x":840.0389926578298,"y":-781.3976958208406},{"id":"03f4103a-aec9-4ecd-86e6-6a3a0bad7211","selected":false,"x":828.363048162618,"y":-621.8264543862825},{"id":"83afbee7-8038-4cc0-9a12-327c414443e0","selected":true,"x":1010.8124208498402,"y":-599.9219302024477}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"41","target":"8","sourcePort":"8684","targetPort":"8579"},{"id":"21028","internalFlowId":"20968","type":"default","selected":false,"points":[{"id":"49697015-4943-49e4-acd4-ef21656ece73","selected":false,"x":3260.203329954976,"y":498.8281344811842},{"id":"b6b68210-0aaf-45a3-941f-7c52913a31a1","selected":false,"x":3576.1721698297365,"y":556.2442209046093},{"id":"121db4a7-7790-4352-89d1-16ab30be5f44","selected":false,"x":3620.3792329295284,"y":-34.52289506533523},{"id":"015220a5-de17-4bf2-a215-37aaa08aef70","selected":false,"x":2756.3320905245073,"y":-50.59819073798678},{"id":"336e63cd-d14d-4a8e-809f-9be85436b11c","selected":true,"x":2828.46859412453,"y":-282.31254140037646}],"labels":[],"width":3,"color":"rgba(255,255,255,0.5)","curvyness":50,"source":"41","target":"17","sourcePort":"8691","targetPort":"8627"}],"nodes":[{"id":"1","internalFlowId":"1","type":"quantum","selected":false,"x":872.53,"y":324.781,"name":"Button to Number","mappingDescription":null,"description":null,"color":"#DE00BC","qType":"Snippet","originalName":"Custom Snippet","factoryId":null,"properties":{"runInVM":true,"executeCode":"return [trigger+1, new Date()]"},"ports":[{"id":"8533","internalFlowId":"7323","type":"quantum","selected":false,"name":"ed3ee852-b476-4361-acd2-f08b37e20944","in":true,"label":"inNode 0","description":"A custom in port!","qTrigger":true,"defaultValue":null,"properties":[{"linkableServices":[{"key":"trigger","name":"Trigger","baseType":{"name":"String"}}]}],"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":1},{"id":"8534","internalFlowId":"7324","type":"quantum","selected":false,"name":"58e6aefc-74d4-4877-beb0-d0f508d93aff","in":true,"label":"inNode 1","description":"A custom in port!","qTrigger":true,"defaultValue":null,"properties":[{"linkableServices":[{"key":"trigger","name":"Trigger","baseType":{"name":"String"}}]}],"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":1,"clients":[],"NodeId":1},{"id":"8535","internalFlowId":"7325","type":"quantum","selected":false,"name":"18e31254-6871-4356-94fe-a71cae0eed1d","in":true,"label":"inNode 2","description":"A custom in port!","qTrigger":true,"defaultValue":null,"properties":[{"linkableServices":[{"key":"trigger","name":"Trigger","baseType":{"name":"String"}}]}],"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":2,"clients":[],"NodeId":1},{"id":"8536","internalFlowId":"7326","type":"quantum","selected":false,"name":"d6600fef-e39c-4edc-8e6f-fab638eb84b9","in":true,"label":"inNode 3","description":"A custom in port!","qTrigger":true,"defaultValue":null,"properties":[{"linkableServices":[{"key":"trigger","name":"Trigger","baseType":{"name":"String"}}]}],"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":3,"clients":[],"NodeId":1},{"id":"8537","internalFlowId":"7327","type":"quantum","selected":false,"name":"845fd908-2e69-4f4b-88ca-a95d6833d8dd","in":false,"label":"outNode 0","description":"A custom out port!","qTrigger":false,"defaultValue":null,"properties":[{"linkableServices":[{"key":"number","name":"Number","baseType":{"name":"Number"}}]}],"signalType":{"key":"number","name":"Number","baseType":{"name":"Number"}},"index":4,"clients":[],"NodeId":1},{"id":"8538","internalFlowId":"7328","type":"quantum","selected":false,"name":"ff3ca50e-8279-4e42-98cc-fe41504b8635","in":false,"label":"outNode 1","description":"A custom out port!","qTrigger":false,"defaultValue":null,"properties":[{"linkableServices":[{"key":"trigger","name":"Trigger","baseType":{"name":"String"}}]}],"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":5,"clients":[],"NodeId":1}],"category":"Others","version":"0.0.1"},{"id":"2","internalFlowId":"2","type":"quantum","selected":false,"x":1217.457,"y":466.201,"name":"Verify Sequence","mappingDescription":null,"description":null,"color":"#DE00BC","qType":"Snippet","originalName":"Data Sequence","factoryId":null,"properties":{"executeCode":"//number of out ports\nlet ports = 10;\nlet out = [];\n\nfor(let i = 0; i < ports; i++){\n out.push(new Date());\n}\n\nreturn out;"},"ports":[{"id":"8539","internalFlowId":"7329","type":"quantum","selected":false,"name":"b29124aa-1234-4885-9f8e-d00474660d55","in":true,"label":"Trigger","description":null,"qTrigger":true,"defaultValue":null,"properties":{"defaultHidden":true},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":2},{"id":"8540","internalFlowId":"7330","type":"quantum","selected":false,"name":"a0fc7092-a9c5-4838-bb28-ad62d948110e","in":false,"label":"Trigger 1","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":1,"clients":[],"NodeId":2},{"id":"8541","internalFlowId":"7331","type":"quantum","selected":false,"name":"41170321-7137-4abe-91ea-a3bf40a5af4c","in":false,"label":"Trigger 2","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":2,"clients":[],"NodeId":2},{"id":"8542","internalFlowId":"7332","type":"quantum","selected":false,"name":"c806cee6-2a2b-4c23-874b-9e716d749bb6","in":false,"label":"Trigger 3","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":3,"clients":[],"NodeId":2},{"id":"8543","internalFlowId":"7333","type":"quantum","selected":false,"name":"4a058d1c-f456-45e0-9acc-656eef295bf8","in":false,"label":"Trigger 4","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":4,"clients":[],"NodeId":2},{"id":"8544","internalFlowId":"7334","type":"quantum","selected":false,"name":"377a7fb6-1720-47fb-9f7a-5ae2c08f7bdd","in":false,"label":"Trigger 5","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":5,"clients":[],"NodeId":2},{"id":"8545","internalFlowId":"7335","type":"quantum","selected":false,"name":"e075ed72-c07c-47a3-bcb7-2c73dc7a55e4","in":false,"label":"Trigger 6","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":6,"clients":[],"NodeId":2},{"id":"8546","internalFlowId":"7336","type":"quantum","selected":false,"name":"50f1c6ab-1ac7-46f0-887b-35da92aea0b5","in":false,"label":"Trigger 7","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":7,"clients":[],"NodeId":2},{"id":"8547","internalFlowId":"7337","type":"quantum","selected":false,"name":"ec669b9b-5002-46e3-ac45-2220228a41c2","in":false,"label":"Trigger 8","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":8,"clients":[],"NodeId":2},{"id":"8548","internalFlowId":"7338","type":"quantum","selected":false,"name":"535eaf87-f99a-43ab-baac-1a1cc388ddb8","in":false,"label":"Trigger 9","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":9,"clients":[],"NodeId":2},{"id":"8549","internalFlowId":"7339","type":"quantum","selected":false,"name":"7286ddd7-eb7d-4868-a218-373e61c73d14","in":false,"label":"Trigger 10","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":10,"clients":[],"NodeId":2}],"category":"Data","version":"0.0.1"},{"id":"3","internalFlowId":"3","type":"quantum","selected":false,"x":1684.158,"y":462.316,"name":"Store","mappingDescription":null,"description":"This simplified Array object makes it easy to sequentially read throughthrough a list of stored","color":"#DE00BC","qType":"Snippet","originalName":"Array Iterate","factoryId":null,"properties":{"runInVM":true,"executeCode":"const identifierArr = `${nodeName}-array`;\nconst identifierIndex = `${nodeName}-index`;\n\n// Setup array\nif(globalContext[identifierArr] === undefined){\n globalContext[identifierArr] = [];\n}\n\nif(globalContext[identifierIndex] === undefined){\n globalContext[identifierIndex] = 0;\n}\n\nswitch(trigger){\n case 0:{\n // Trigger\n const index = globalContext[identifierIndex];\n const value = globalContext[identifierArr][index];\n const endOfList = globalContext[identifierArr].length <= (index + 1);\n\nglobalContext[identifierIndex] = globalContext[identifierIndex] + 1;\n return [value,index,endOfList];\n }; break;\n case 1:{\n // Set Index\n globalContext[identifierIndex] = 0;\n }; break;\n default: break;\n}"},"ports":[{"id":"8550","internalFlowId":"7340","type":"quantum","selected":false,"name":"43b53dc3-5e26-43c7-b8bb-0406886c736d","in":true,"label":"Trigger","description":null,"qTrigger":true,"defaultValue":null,"properties":{"defaultHidden":true},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":3},{"id":"8551","internalFlowId":"7341","type":"quantum","selected":false,"name":"ee0d58f4-2b01-478a-b012-3fe0753e75f7","in":true,"label":"Reset Index","description":null,"qTrigger":true,"defaultValue":"","properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":1,"clients":[],"NodeId":3},{"id":"8552","internalFlowId":"7342","type":"quantum","selected":false,"name":"064dc907-3fc4-468c-aa8d-76454072cd1b","in":false,"label":"Value","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"string","name":"String","baseType":{"name":"String"}},"index":2,"clients":[],"NodeId":3},{"id":"8553","internalFlowId":"7343","type":"quantum","selected":false,"name":"db15e545-b829-41b7-9949-2ebf0cc87215","in":false,"label":"Index","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"string","name":"String","baseType":{"name":"String"}},"index":3,"clients":[],"NodeId":3},{"id":"8554","internalFlowId":"7344","type":"quantum","selected":false,"name":"70d36a92-fc4f-4725-bd60-7bf39b19f8e1","in":false,"label":"End of List","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":4,"clients":[],"NodeId":3}],"category":"Data","version":"0.0.1"},{"id":"4","internalFlowId":"4","type":"quantum","selected":false,"x":2042.645,"y":292.466,"name":"Value Compare","mappingDescription":null,"description":null,"color":"#DE00BC","qType":"Snippet","originalName":"Value Compare","factoryId":null,"properties":{"executeCode":"let val1 = parseFloat(inPorts[1].value) || 0;\nlet val2 = parseFloat(inPorts[2].value) || 0;\n\nif(val1 > val2){\n return [true, false, false];\n}else if(val1 < val2){\n return [false, true, false];\n}else{\n return [false, false, true];\n}"},"ports":[{"id":"8555","internalFlowId":"7345","type":"quantum","selected":false,"name":"f37cd960-2e85-4094-b565-0a41af635ad9","in":true,"label":"Trigger","description":null,"qTrigger":true,"defaultValue":null,"properties":{"defaultHidden":true},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":4},{"id":"8556","internalFlowId":"7346","type":"quantum","selected":false,"name":"f36dcc2f-93a7-4bd1-8cb7-7c3ee9f65c21","in":true,"label":"Value 1","description":null,"qTrigger":false,"defaultValue":"","properties":{},"signalType":{"key":"number","name":"Number","baseType":{"name":"Number"}},"index":1,"clients":[],"NodeId":4},{"id":"8557","internalFlowId":"7347","type":"quantum","selected":false,"name":"c2289404-2e3c-4e75-a67f-da4404f70c0a","in":true,"label":"Value 2","description":null,"qTrigger":true,"defaultValue":"","properties":{},"signalType":{"key":"number","name":"Number","baseType":{"name":"Number"}},"index":2,"clients":[],"NodeId":4},{"id":"8558","internalFlowId":"7348","type":"quantum","selected":false,"name":"1291161d-2d21-49d9-8c63-394868c1a0a8","in":false,"label":"Greater","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":3,"clients":[],"NodeId":4},{"id":"8559","internalFlowId":"7349","type":"quantum","selected":false,"name":"8b9e6992-90be-431f-8eb5-93e26450d77b","in":false,"label":"Less","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":4,"clients":[],"NodeId":4},{"id":"8560","internalFlowId":"7350","type":"quantum","selected":false,"name":"ac7d72b5-2f52-4dcd-ac31-0b6a9b89c660","in":false,"label":"Equal","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":5,"clients":[],"NodeId":4}],"category":"Compare","version":"0.0.1"},{"id":"5","internalFlowId":"5","type":"quantum","selected":false,"x":2449.834,"y":455.535,"name":"End of List match?","mappingDescription":null,"description":null,"color":"#DE00BC","qType":"Snippet","originalName":"Digital AND","factoryId":null,"properties":{"executeCode":"let out = true;\n\nfor(let i = 1; i < inPorts.length; i++){\n if(!inPorts[i].value){\n out = false;\n break;\n }\n}\n\nreturn [out];"},"ports":[{"id":"8561","internalFlowId":"7351","type":"quantum","selected":false,"name":"4cefdbbc-e12d-4574-8511-a136294407df","in":true,"label":"Trigger","description":null,"qTrigger":true,"defaultValue":null,"properties":{"defaultHidden":true},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":5},{"id":"8562","internalFlowId":"7352","type":"quantum","selected":false,"name":"c3d7897e-1564-4791-95b3-8535006960d6","in":true,"label":"In 1","description":null,"qTrigger":false,"defaultValue":"","properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":1,"clients":[],"NodeId":5},{"id":"8563","internalFlowId":"7353","type":"quantum","selected":false,"name":"a2f1af7d-e2e2-42af-a5be-51682ae74c0a","in":true,"label":"In 2","description":null,"qTrigger":false,"defaultValue":"","properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":2,"clients":[],"NodeId":5},{"id":"8564","internalFlowId":"7354","type":"quantum","selected":false,"name":"ddba869f-d396-400f-88fc-7c84c5ffda22","in":false,"label":"Out","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":3,"clients":[],"NodeId":5}],"category":"Logic","version":"0.0.1"},{"id":"6","internalFlowId":"6","type":"quantum","selected":false,"x":227.383,"y":-559.389,"name":"Reset","mappingDescription":null,"description":null,"color":"#07D174","qType":"Gadget","originalName":"Button","factoryId":null,"properties":{"gadgetType":{"name":"Button"},"gadgetLabel":"reset","gadgetColor":"info","gadgetGroup":"1324","gadgetIcon":"buttonIcon","gadgetStyle":"full"},"ports":[{"id":"8565","internalFlowId":"7355","type":"quantum","selected":false,"name":"8cc475b3-aa7b-4e1d-b29f-174401e9820d","in":true,"label":"Label","description":null,"qTrigger":false,"defaultValue":"Reset","properties":{},"signalType":{"key":"string","name":"String","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":6},{"id":"8566","internalFlowId":"7356","type":"quantum","selected":false,"name":"ce074700-096f-4917-93ce-6e2e8250dcb7","in":true,"label":"State","description":null,"qTrigger":true,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":1,"clients":[],"NodeId":6},{"id":"8567","internalFlowId":"7357","type":"quantum","selected":false,"name":"f6db94f1-0033-44eb-bf53-855a20718243","in":false,"label":"State","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":2,"clients":[],"NodeId":6}],"category":"Action","version":"0.0.1"},{"id":"7","internalFlowId":"7","type":"quantum","selected":false,"x":618.179,"y":-599.033,"name":"Initialize and start game sequence","mappingDescription":null,"description":null,"color":"#DE00BC","qType":"Snippet","originalName":"Data Sequence","factoryId":null,"properties":{"executeCode":"//number of out ports\nlet ports = 10;\nlet out = [];\n\nfor(let i = 0; i < ports; i++){\n out.push(new Date());\n}\n\nreturn out;"},"ports":[{"id":"8568","internalFlowId":"7358","type":"quantum","selected":false,"name":"80d60ba2-96d0-4a00-b8e6-7777364d5f28","in":true,"label":"Trigger","description":null,"qTrigger":true,"defaultValue":null,"properties":{"defaultHidden":true},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":7},{"id":"8569","internalFlowId":"7359","type":"quantum","selected":false,"name":"70ead364-6577-4587-86ae-711a8884d1f2","in":false,"label":"Trigger 1","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":1,"clients":[],"NodeId":7},{"id":"8570","internalFlowId":"7360","type":"quantum","selected":false,"name":"5464c405-615e-47e7-8956-6abded0da6e6","in":false,"label":"Trigger 2","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":2,"clients":[],"NodeId":7},{"id":"8571","internalFlowId":"7361","type":"quantum","selected":false,"name":"e1514500-0e22-45a2-8315-12fea8329eaa","in":false,"label":"Trigger 3","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":3,"clients":[],"NodeId":7},{"id":"8572","internalFlowId":"7362","type":"quantum","selected":false,"name":"be576b18-2ebc-4f2c-8b23-e2b29a33865a","in":false,"label":"Trigger 4","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":4,"clients":[],"NodeId":7},{"id":"8573","internalFlowId":"7363","type":"quantum","selected":false,"name":"b70c27fc-0543-43f3-af3b-0b5ffb4ad7db","in":false,"label":"Trigger 5","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":5,"clients":[],"NodeId":7},{"id":"8574","internalFlowId":"7364","type":"quantum","selected":false,"name":"639b4075-9884-4a6a-b910-e644ce4a4271","in":false,"label":"Trigger 6","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":6,"clients":[],"NodeId":7},{"id":"8575","internalFlowId":"7365","type":"quantum","selected":false,"name":"4665c351-ad67-4cae-9f51-56825a0a8583","in":false,"label":"Trigger 7","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":7,"clients":[],"NodeId":7},{"id":"8576","internalFlowId":"7366","type":"quantum","selected":false,"name":"a9bfe139-2a0b-4a8d-b8d4-f33400240a86","in":false,"label":"Trigger 8","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":8,"clients":[],"NodeId":7},{"id":"8577","internalFlowId":"7367","type":"quantum","selected":false,"name":"bf66799c-8891-44d4-939d-14b52bf893eb","in":false,"label":"Trigger 9","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":9,"clients":[],"NodeId":7},{"id":"8578","internalFlowId":"7368","type":"quantum","selected":false,"name":"d5e11f8b-39ed-409f-84c4-2f853a24f73f","in":false,"label":"Trigger 10","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":10,"clients":[],"NodeId":7}],"category":"Data","version":"0.0.1"},{"id":"8","internalFlowId":"8","type":"quantum","selected":false,"x":992.819,"y":-646.427,"name":"Store","mappingDescription":null,"description":"This object provides a standard way to address all functions of an array.","color":"#DE00BC","qType":"Snippet","originalName":"Array","factoryId":null,"properties":{"runInVM":true,"executeCode":"const identifierArr = `${nodeName}-array`;\nconst identifierIndex = `${nodeName}-index`;\n\n// Setup array\nif(globalContext[identifierArr] === undefined){\n globalContext[identifierArr] = [];\n}\n\nif(globalContext[identifierIndex] === undefined){\n globalContext[identifierIndex] = inPorts[1].value || -1;\n}\n\nswitch(trigger){\n case 0:{\n // Initialize Array\n globalContext[identifierArr] = [];\n globalContext[identifierIndex] = -1;\n }; break;\n case 1:{\n // Set Index\n globalContext[identifierIndex] = inPorts[1].value;\n editInPort(1, {});\n }; break;\n case 3:{\n // Read\n return [globalContext[identifierArr][globalContext[identifierIndex]], globalContext[identifierArr].length];\n }; break;\n case 4:{\n // Write\n if (globalContext[identifierIndex] === -1){\n globalContext[identifierArr].push(inPorts[2].value);\n } else {\n globalContext[identifierArr][globalContext[identifierIndex]] = inPorts[2].value;\n }\n }; break;\n default: break;\n}"},"ports":[{"id":"8579","internalFlowId":"7369","type":"quantum","selected":false,"name":"235aca9e-9646-45ff-8878-d8c3da9f49ca","in":true,"label":"Initialize","description":null,"qTrigger":true,"defaultValue":"","properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":8},{"id":"8580","internalFlowId":"7370","type":"quantum","selected":false,"name":"7681b0f2-cf6c-4e6e-9be6-098fd783ff2d","in":true,"label":"Index","description":null,"qTrigger":true,"defaultValue":"-1","properties":{},"signalType":{"key":"number","name":"Number","baseType":{"name":"Number"}},"index":1,"clients":[],"NodeId":8},{"id":"8581","internalFlowId":"7371","type":"quantum","selected":false,"name":"65ddca01-2c0a-4e29-80b5-85eeb49793e8","in":true,"label":"Value","description":null,"qTrigger":false,"defaultValue":"","properties":{},"signalType":{"key":"string","name":"String","baseType":{"name":"String"}},"index":2,"clients":[],"NodeId":8},{"id":"8582","internalFlowId":"7372","type":"quantum","selected":false,"name":"2db702f0-3b60-48f4-be8f-3fa4c67e2b0d","in":true,"label":"Read","description":null,"qTrigger":true,"defaultValue":"","properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":3,"clients":[],"NodeId":8},{"id":"8583","internalFlowId":"7373","type":"quantum","selected":false,"name":"49699053-7a3a-43c8-8522-3b781e36907a","in":true,"label":"Write","description":null,"qTrigger":true,"defaultValue":"","properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":4,"clients":[],"NodeId":8},{"id":"8584","internalFlowId":"7374","type":"quantum","selected":false,"name":"81df0b65-284a-4e38-b858-b3c17af68fd3","in":false,"label":"Value","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"string","name":"String","baseType":{"name":"String"}},"index":5,"clients":[],"NodeId":8},{"id":"8585","internalFlowId":"7375","type":"quantum","selected":false,"name":"74044c44-798f-46c6-b5cf-1d818d3db6ba","in":false,"label":"Length","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"number","name":"Number","baseType":{"name":"Number"}},"index":6,"clients":[],"NodeId":8}],"category":"Data","version":"0.0.1"},{"id":"9","internalFlowId":"9","type":"quantum","selected":false,"x":993.592,"y":-443.892,"name":"Game Sequence","mappingDescription":null,"description":null,"color":"#DE00BC","qType":"Snippet","originalName":"Data Sequence","factoryId":null,"properties":{"executeCode":"//number of out ports\nlet ports = 10;\nlet out = [];\n\nfor(let i = 0; i < ports; i++){\n out.push(new Date());\n}\n\nreturn out;"},"ports":[{"id":"8586","internalFlowId":"7376","type":"quantum","selected":false,"name":"1635c321-bf0d-4923-889e-280b464d0393","in":true,"label":"Trigger","description":null,"qTrigger":true,"defaultValue":null,"properties":{"defaultHidden":true},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":9},{"id":"8587","internalFlowId":"7377","type":"quantum","selected":false,"name":"9efe204c-4a72-44b6-bae8-d51298d08315","in":false,"label":"Trigger 1","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":1,"clients":[],"NodeId":9},{"id":"8588","internalFlowId":"7378","type":"quantum","selected":false,"name":"b6539f20-002b-4dcc-843c-9b589a98704e","in":false,"label":"Trigger 2","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":2,"clients":[],"NodeId":9},{"id":"8589","internalFlowId":"7379","type":"quantum","selected":false,"name":"6b7bcc5b-562d-4090-a4e6-0a4dcaca1ea8","in":false,"label":"Trigger 3","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":3,"clients":[],"NodeId":9},{"id":"8590","internalFlowId":"7380","type":"quantum","selected":false,"name":"73a9ba9b-0d4d-4d79-b70d-e5e9b57944e6","in":false,"label":"Trigger 4","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":4,"clients":[],"NodeId":9},{"id":"8591","internalFlowId":"7381","type":"quantum","selected":false,"name":"0aa6b4c8-6fc2-47e5-8e68-b5a0e3189b2e","in":false,"label":"Trigger 5","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":5,"clients":[],"NodeId":9},{"id":"8592","internalFlowId":"7382","type":"quantum","selected":false,"name":"a6f7be8e-3319-454f-89ed-51f5bb6a866f","in":false,"label":"Trigger 6","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":6,"clients":[],"NodeId":9},{"id":"8593","internalFlowId":"7383","type":"quantum","selected":false,"name":"f7ec161e-5357-4071-afd4-134dcbcfcd8d","in":false,"label":"Trigger 7","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":7,"clients":[],"NodeId":9},{"id":"8594","internalFlowId":"7384","type":"quantum","selected":false,"name":"c9583da1-3c18-4695-b208-ab32393bc07c","in":false,"label":"Trigger 8","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":8,"clients":[],"NodeId":9},{"id":"8595","internalFlowId":"7385","type":"quantum","selected":false,"name":"db608eec-8c3d-4f0c-9d91-4e46f529cf70","in":false,"label":"Trigger 9","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":9,"clients":[],"NodeId":9},{"id":"8596","internalFlowId":"7386","type":"quantum","selected":false,"name":"5f6722c4-6635-4f9d-9520-79af304a147d","in":false,"label":"Trigger 10","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":10,"clients":[],"NodeId":9}],"category":"Data","version":"0.0.1"},{"id":"10","internalFlowId":"10","type":"quantum","selected":false,"x":1767.958,"y":28.391,"name":"Game Cycle delay","mappingDescription":null,"description":"Add a timeout to your app. Delay is set in ms. (1000ms = 1sec)","color":"#DE00BC","qType":"Snippet","originalName":"Timeout","factoryId":null,"properties":{"executeCode":"if (!context.delay){\n context.delay = parseInt(inPorts[1].value, 10) || 2000;\n}\n\nswitch(trigger){\n case SYSTEM_SYNC:{\n return [new Date()];\n }; break;\n case 0:{\n syncSleep(context.delay);\n }; break;\n case 1:{\n context.delay = inPorts[1].value;\n }; break;\n default: break;\n}\n"},"ports":[{"id":"8597","internalFlowId":"7387","type":"quantum","selected":false,"name":"7ad411ea-ad49-4c0a-8b8d-4e2877bce07e","in":true,"label":"In","description":null,"qTrigger":true,"defaultValue":"","properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":10},{"id":"8598","internalFlowId":"7388","type":"quantum","selected":false,"name":"7293d4a4-92e5-403e-b802-82d807aed86a","in":true,"label":"Delay (ms)","description":null,"qTrigger":true,"defaultValue":"2000","properties":{},"signalType":{"key":"number","name":"Number","baseType":{"name":"Number"}},"index":1,"clients":[],"NodeId":10},{"id":"8599","internalFlowId":"7389","type":"quantum","selected":false,"name":"ab6758cf-e79a-4ac2-81f3-adda3e9b99da","in":false,"label":"Out","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":2,"clients":[],"NodeId":10}],"category":"Timing","version":"0.0.1"},{"id":"11","internalFlowId":"11","type":"quantum","selected":false,"x":1728.815,"y":-439.542,"name":"Store","mappingDescription":null,"description":"This object provides a standard way to address all functions of an array.","color":"#DE00BC","qType":"Snippet","originalName":"Array","factoryId":null,"properties":{"runInVM":true,"executeCode":"const identifierArr = `${nodeName}-array`;\nconst identifierIndex = `${nodeName}-index`;\n\n// Setup array\nif(globalContext[identifierArr] === undefined){\n globalContext[identifierArr] = [];\n}\n\nif(globalContext[identifierIndex] === undefined){\n globalContext[identifierIndex] = inPorts[1].value || -1;\n}\n\nswitch(trigger){\n case 0:{\n // Initialize Array\n globalContext[identifierArr] = [];\n globalContext[identifierIndex] = -1;\n }; break;\n case 1:{\n // Set Index\n globalContext[identifierIndex] = inPorts[1].value;\n editInPort(1, {});\n }; break;\n case 3:{\n // Read\n return [globalContext[identifierArr][globalContext[identifierIndex]], globalContext[identifierArr].length];\n }; break;\n case 4:{\n // Write\n if (globalContext[identifierIndex] === -1){\n globalContext[identifierArr].push(inPorts[2].value);\n } else {\n globalContext[identifierArr][globalContext[identifierIndex]] = inPorts[2].value;\n }\n }; break;\n default: break;\n}"},"ports":[{"id":"8600","internalFlowId":"7390","type":"quantum","selected":false,"name":"ba5a2d0f-2978-4ebd-a2f3-01e2e89a39c3","in":true,"label":"Initialize","description":null,"qTrigger":true,"defaultValue":"","properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":11},{"id":"8601","internalFlowId":"7391","type":"quantum","selected":false,"name":"fda3e48b-07dc-4fc5-ac4c-ed7226d44a1d","in":true,"label":"Index","description":null,"qTrigger":true,"defaultValue":"-1","properties":{},"signalType":{"key":"number","name":"Number","baseType":{"name":"Number"}},"index":1,"clients":[],"NodeId":11},{"id":"8602","internalFlowId":"7392","type":"quantum","selected":false,"name":"62df50f5-115a-4e8a-8097-528726312d16","in":true,"label":"Value","description":null,"qTrigger":false,"defaultValue":"","properties":{},"signalType":{"key":"string","name":"String","baseType":{"name":"String"}},"index":2,"clients":[],"NodeId":11},{"id":"8603","internalFlowId":"7393","type":"quantum","selected":false,"name":"1c5fff33-5790-46f6-9bb3-db428246e96e","in":true,"label":"Read","description":null,"qTrigger":true,"defaultValue":"","properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":3,"clients":[],"NodeId":11},{"id":"8604","internalFlowId":"7394","type":"quantum","selected":false,"name":"609cb240-be50-41dc-abad-6ecb791939d6","in":true,"label":"Write","description":null,"qTrigger":true,"defaultValue":"","properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":4,"clients":[],"NodeId":11},{"id":"8605","internalFlowId":"7395","type":"quantum","selected":false,"name":"cff4b994-34e8-4fe0-b476-87926d5893e7","in":false,"label":"Value","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"string","name":"String","baseType":{"name":"String"}},"index":5,"clients":[],"NodeId":11},{"id":"8606","internalFlowId":"7396","type":"quantum","selected":false,"name":"2d9a3f13-6395-4b22-93cf-dbb288b3e879","in":false,"label":"Length","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"number","name":"Number","baseType":{"name":"Number"}},"index":6,"clients":[],"NodeId":11}],"category":"Data","version":"0.0.1"},{"id":"12","internalFlowId":"12","type":"quantum","selected":false,"x":1350.931,"y":-479.845,"name":"RN[1,4]","mappingDescription":null,"description":null,"color":"#DE00BC","qType":"Snippet","originalName":"Random Number","factoryId":null,"properties":{"executeCode":"let min = parseFloat(inPorts[1].value) === undefined ? 0 : parseFloat(inPorts[1].value);\nlet max = parseFloat(inPorts[2].value) === undefined ? 0 : parseFloat(inPorts[2].value);\nlet resolution = parseFloat(inPorts[3].value) === undefined ? 0 : parseFloat(inPorts[3].value);\n\nif (resolution === 0) {\n return [Math.floor((Math.random() * (max - min + 1)) + min)];\n}\nreturn [(Math.random() * (max - min) + min).toFixed(resolution)];"},"ports":[{"id":"8607","internalFlowId":"7397","type":"quantum","selected":false,"name":"1f0252d2-820c-4385-8646-929b9e75d573","in":true,"label":"Trigger","description":null,"qTrigger":true,"defaultValue":null,"properties":{"defaultHidden":true},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":12},{"id":"8608","internalFlowId":"7398","type":"quantum","selected":false,"name":"7de989c1-8028-4fc6-b304-20200ea83340","in":true,"label":"Min","description":null,"qTrigger":false,"defaultValue":"1","properties":{},"signalType":{"key":"number","name":"Number","baseType":{"name":"Number"}},"index":1,"clients":[],"NodeId":12},{"id":"8609","internalFlowId":"7399","type":"quantum","selected":false,"name":"ce429b33-1f2b-4df3-82e5-195a2db4322e","in":true,"label":"Max","description":null,"qTrigger":false,"defaultValue":"4","properties":{},"signalType":{"key":"number","name":"Number","baseType":{"name":"Number"}},"index":2,"clients":[],"NodeId":12},{"id":"8610","internalFlowId":"7400","type":"quantum","selected":false,"name":"ab27f18e-ce90-4123-9927-875f808b422f","in":true,"label":"Resolution","description":null,"qTrigger":false,"defaultValue":"0","properties":{},"signalType":{"key":"number","name":"Number","baseType":{"name":"Number"}},"index":3,"clients":[],"NodeId":12},{"id":"8611","internalFlowId":"7401","type":"quantum","selected":false,"name":"8b8bf684-d9fe-47f3-98e7-6442c96cfa83","in":false,"label":"Value","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"number","name":"Number","baseType":{"name":"Number"}},"index":4,"clients":[],"NodeId":12}],"category":"Data","version":"0.0.1"},{"id":"13","internalFlowId":"13","type":"quantum","selected":false,"x":1350.463,"y":-674.568,"name":"-1","mappingDescription":null,"description":null,"color":"#DE00BC","qType":"Snippet","originalName":"Static Number","factoryId":null,"properties":{"executeCode":"if(trigger === 0){\n return [parseFloat(inPorts[1].value) || 0];\n} "},"ports":[{"id":"8612","internalFlowId":"7402","type":"quantum","selected":false,"name":"103c3611-4f2c-4a2f-82c7-da78c1c1caf2","in":true,"label":"Trigger","description":null,"qTrigger":true,"defaultValue":null,"properties":{"defaultHidden":true},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":13},{"id":"8613","internalFlowId":"7403","type":"quantum","selected":false,"name":"6c406c77-c868-4160-9cca-20c87f5a8b5b","in":true,"label":"Value","description":null,"qTrigger":false,"defaultValue":"-1","properties":{},"signalType":{"key":"number","name":"Number","baseType":{"name":"Number"}},"index":1,"clients":[],"NodeId":13},{"id":"8614","internalFlowId":"7404","type":"quantum","selected":false,"name":"d56a74a6-1683-43d3-84b7-9e4e52787880","in":false,"label":"Value","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"number","name":"Number","baseType":{"name":"Number"}},"index":2,"clients":[],"NodeId":13}],"category":"Data","version":"0.0.1"},{"id":"14","internalFlowId":"14","type":"quantum","selected":false,"x":1677.86,"y":-204.095,"name":"Loop Through Colors","mappingDescription":null,"description":null,"color":"#DE00BC","qType":"Snippet","originalName":"Loop","factoryId":null,"properties":{"executeCode":"switch(trigger){\n case SYSTEM_OUT_DONE:{\n if(context.run){\n sendSync([null, new Date()]);\n }\n }; break;\n case 0:{\n // Trigger\n context.run = true;\n sendSync([new Date(), new Date()]);\n }; break;\n case 1:{\n context.run = false;\n unblock();\n }; break;\n default: break;\n}"},"ports":[{"id":"8615","internalFlowId":"7405","type":"quantum","selected":false,"name":"b5d04e15-ff56-45da-b21c-d54109739760","in":true,"label":"Trigger","description":null,"qTrigger":true,"defaultValue":null,"properties":{"defaultHidden":true},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":14},{"id":"8616","internalFlowId":"7406","type":"quantum","selected":false,"name":"8256a800-8acb-4ca0-834b-6e3c7e9c439d","in":true,"label":"Reset Index","description":null,"qTrigger":true,"defaultValue":"","properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":1,"clients":[],"NodeId":14},{"id":"8617","internalFlowId":"7407","type":"quantum","selected":false,"name":"189ab783-0a4c-4064-85a8-53fcc7d8ee87","in":false,"label":"Initialize Trigger","description":null,"qTrigger":null,"defaultValue":null,"properties":{"defaultHidden":true},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":2,"clients":[],"NodeId":14},{"id":"8618","internalFlowId":"7408","type":"quantum","selected":false,"name":"1f66f3a2-e787-4d3d-b7ce-48b7a7f1e7a2","in":false,"label":"Trigger","description":null,"qTrigger":null,"defaultValue":null,"properties":{"defaultHidden":true},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":3,"clients":[],"NodeId":14}],"category":"Timing","version":"0.0.1"},{"id":"15","internalFlowId":"15","type":"quantum","selected":false,"x":2145.475,"y":-309.079,"name":"Store","mappingDescription":null,"description":"This simplified Array object makes it easy to sequentially read throughthrough a list of stored","color":"#DE00BC","qType":"Snippet","originalName":"Array Iterate","factoryId":null,"properties":{"runInVM":true,"executeCode":"const identifierArr = `${nodeName}-array`;\nconst identifierIndex = `${nodeName}-index`;\n\n// Setup array\nif(globalContext[identifierArr] === undefined){\n globalContext[identifierArr] = [];\n}\n\nif(globalContext[identifierIndex] === undefined){\n globalContext[identifierIndex] = 0;\n}\n\nswitch(trigger){\n case 0:{\n // Trigger\n const index = globalContext[identifierIndex];\n const value = globalContext[identifierArr][index];\n const endOfList = globalContext[identifierArr].length <= (index + 1);\n\nglobalContext[identifierIndex] = globalContext[identifierIndex] + 1;\n return [value,index,endOfList];\n }; break;\n case 1:{\n // Set Index\n globalContext[identifierIndex] = 0;\n }; break;\n default: break;\n}"},"ports":[{"id":"8619","internalFlowId":"7409","type":"quantum","selected":false,"name":"9817a96c-7429-4dcc-887b-4ea429599e64","in":true,"label":"Trigger","description":null,"qTrigger":true,"defaultValue":null,"properties":{"defaultHidden":true},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":15},{"id":"8620","internalFlowId":"7410","type":"quantum","selected":false,"name":"7e304808-0ea3-4a26-87cf-feaad179d96e","in":true,"label":"Reset Index","description":null,"qTrigger":true,"defaultValue":"","properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":1,"clients":[],"NodeId":15},{"id":"8621","internalFlowId":"7411","type":"quantum","selected":false,"name":"d367aaa8-8249-4d5b-8e3a-00fe322efdc4","in":false,"label":"Value","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"string","name":"String","baseType":{"name":"String"}},"index":2,"clients":[],"NodeId":15},{"id":"8622","internalFlowId":"7412","type":"quantum","selected":false,"name":"93c9eec6-513b-4781-8f7c-446fe56c69cd","in":false,"label":"Index","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"string","name":"String","baseType":{"name":"String"}},"index":3,"clients":[],"NodeId":15},{"id":"8623","internalFlowId":"7413","type":"quantum","selected":false,"name":"d7da282e-00a3-4976-b917-d0ffe92ff35e","in":false,"label":"End of List","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":4,"clients":[],"NodeId":15}],"category":"Data","version":"0.0.1"},{"id":"16","internalFlowId":"16","type":"quantum","selected":false,"x":3122.926,"y":-329.498,"name":"0","mappingDescription":null,"description":null,"color":"#DE00BC","qType":"Snippet","originalName":"Static Number","factoryId":null,"properties":{"executeCode":"if(trigger === 0){\n return [parseFloat(inPorts[1].value) || 0];\n} "},"ports":[{"id":"8624","internalFlowId":"7414","type":"quantum","selected":false,"name":"8e8cdcc7-b79c-47f7-b872-7f8f7e0e4c9e","in":true,"label":"Trigger","description":null,"qTrigger":true,"defaultValue":null,"properties":{"defaultHidden":true},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":16},{"id":"8625","internalFlowId":"7415","type":"quantum","selected":false,"name":"df348fa2-ab44-4b9d-98ca-a0b3c9bde70f","in":true,"label":"Value","description":null,"qTrigger":false,"defaultValue":"0","properties":{},"signalType":{"key":"number","name":"Number","baseType":{"name":"Number"}},"index":1,"clients":[],"NodeId":16},{"id":"8626","internalFlowId":"7416","type":"quantum","selected":false,"name":"bc70f71b-aa9e-4d41-8fc0-558ac5659acb","in":false,"label":"Value","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"number","name":"Number","baseType":{"name":"Number"}},"index":2,"clients":[],"NodeId":16}],"category":"Data","version":"0.0.1"},{"id":"17","internalFlowId":"17","type":"quantum","selected":false,"x":2810.482,"y":-328.815,"name":"Light Pulse","mappingDescription":null,"description":"Add a timeout to your app. Delay is set in ms. (1000ms = 1sec)","color":"#DE00BC","qType":"Snippet","originalName":"Timeout","factoryId":null,"properties":{"executeCode":"if (!context.delay){\n context.delay = parseInt(inPorts[1].value, 10) || 2000;\n}\n\nswitch(trigger){\n case SYSTEM_SYNC:{\n return [new Date()];\n }; break;\n case 0:{\n syncSleep(context.delay);\n }; break;\n case 1:{\n context.delay = inPorts[1].value;\n }; break;\n default: break;\n}\n"},"ports":[{"id":"8627","internalFlowId":"7417","type":"quantum","selected":false,"name":"23f91447-a891-4e46-9196-9c0becd526f7","in":true,"label":"In","description":null,"qTrigger":true,"defaultValue":"","properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":17},{"id":"8628","internalFlowId":"7418","type":"quantum","selected":false,"name":"b39bf448-db10-4aea-a315-e9d23718a5d8","in":true,"label":"Delay (ms)","description":null,"qTrigger":true,"defaultValue":"500","properties":{},"signalType":{"key":"number","name":"Number","baseType":{"name":"Number"}},"index":1,"clients":[],"NodeId":17},{"id":"8629","internalFlowId":"7419","type":"quantum","selected":false,"name":"c4ebb6bb-6f88-4eaf-a7f7-3fd056cb5571","in":false,"label":"Out","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":2,"clients":[],"NodeId":17}],"category":"Timing","version":"0.0.1"},{"id":"18","internalFlowId":"18","type":"quantum","selected":false,"x":3480.983,"y":-507.835,"name":"Number to color translation","mappingDescription":null,"description":null,"color":"#DE00BC","qType":"Snippet","originalName":"Custom Snippet","factoryId":null,"properties":{"runInVM":true,"executeCode":"debug(`LEDValue ${inPorts[0].value}`);\n\nswitch(inPorts[0].value){\n case 0:{\n return [false,false,false,false];\n }; break;\n case 1:{\n return [true,false,false,false];\n }; break;\n case 2:{\n return [false,true,false,false];\n }; break;\n case 3:{\n return [false,false,true,false];\n }; break;\n case 4:{\n return [false,false,false,true];\n }; break;\n default: break;\n}\n\n"},"ports":[{"id":"8630","internalFlowId":"7420","type":"quantum","selected":false,"name":"64c5fc46-3c6d-41c3-8626-63b6f566e038","in":true,"label":"inNode 0","description":"A custom in port!","qTrigger":true,"defaultValue":null,"properties":[{"linkableServices":[{"key":"number","name":"Number","baseType":{"name":"Number"}}]}],"signalType":{"key":"number","name":"Number","baseType":{"name":"Number"}},"index":0,"clients":[],"NodeId":18},{"id":"8631","internalFlowId":"7421","type":"quantum","selected":false,"name":"7dd7e2e4-d4d3-4710-9a83-efd508c21a1c","in":false,"label":"outNode 0","description":"A custom out port!","qTrigger":null,"defaultValue":null,"properties":[{"linkableServices":[{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}]}],"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":1,"clients":[],"NodeId":18},{"id":"8632","internalFlowId":"7422","type":"quantum","selected":false,"name":"ad8b10ab-ce99-4d3b-bb80-b5d08704433e","in":false,"label":"outNode 1","description":"A custom out port!","qTrigger":null,"defaultValue":null,"properties":[{"linkableServices":[{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}]}],"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":2,"clients":[],"NodeId":18},{"id":"8633","internalFlowId":"7423","type":"quantum","selected":false,"name":"c7bf1e92-f855-4f28-a417-992e90df2365","in":false,"label":"outNode 2","description":"A custom out port!","qTrigger":null,"defaultValue":null,"properties":[{"linkableServices":[{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}]}],"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":3,"clients":[],"NodeId":18},{"id":"8634","internalFlowId":"7424","type":"quantum","selected":false,"name":"0769b01c-a6e1-4427-b861-18e226dfa0bb","in":false,"label":"outNode 3","description":"A custom out port!","qTrigger":null,"defaultValue":null,"properties":[{"linkableServices":[{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}]}],"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":4,"clients":[],"NodeId":18}],"category":"Others","version":"0.0.1"},{"id":"19","internalFlowId":"19","type":"quantum","selected":false,"x":-258.39,"y":473.249,"name":"Blue","mappingDescription":null,"description":null,"color":"#07D174","qType":"Gadget","originalName":"Button","factoryId":null,"properties":{"gadgetType":{"name":"Button"},"gadgetLabel":"Blue","gadgetColor":"info","gadgetGroup":"303","gadgetIcon":"buttonIcon","gadgetStyle":"full"},"ports":[{"id":"8635","internalFlowId":"7425","type":"quantum","selected":false,"name":"4ec90d86-9ee9-46e5-b5ca-7341360da4d0","in":true,"label":"Label","description":null,"qTrigger":false,"defaultValue":null,"properties":{},"signalType":{"key":"string","name":"String","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":19},{"id":"8636","internalFlowId":"7426","type":"quantum","selected":false,"name":"91c323dd-6cff-44ce-b072-46822af94769","in":true,"label":"State","description":null,"qTrigger":true,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":1,"clients":[],"NodeId":19},{"id":"8637","internalFlowId":"7427","type":"quantum","selected":false,"name":"74c20f9c-01ed-428a-bd41-ba5f5a11643b","in":false,"label":"State","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":2,"clients":[],"NodeId":19}],"category":"Action","version":"0.0.1"},{"id":"20","internalFlowId":"20","type":"quantum","selected":false,"x":-267.248,"y":615.635,"name":"Yellow","mappingDescription":null,"description":null,"color":"#07D174","qType":"Gadget","originalName":"Button","factoryId":null,"properties":{"gadgetType":{"name":"Button"},"gadgetLabel":"Yellow","gadgetColor":"info","gadgetGroup":"303","gadgetIcon":"buttonIcon","gadgetStyle":"full"},"ports":[{"id":"8638","internalFlowId":"7428","type":"quantum","selected":false,"name":"87386a59-2083-486e-9f91-7253447b63e0","in":true,"label":"Label","description":null,"qTrigger":false,"defaultValue":null,"properties":{},"signalType":{"key":"string","name":"String","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":20},{"id":"8639","internalFlowId":"7429","type":"quantum","selected":false,"name":"a26e38e5-4c6b-4ef6-af8a-3231a63b7001","in":true,"label":"State","description":null,"qTrigger":true,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":1,"clients":[],"NodeId":20},{"id":"8640","internalFlowId":"7430","type":"quantum","selected":false,"name":"c25c2c7f-c3e8-4f9c-851f-c8e1e07a8c6b","in":false,"label":"State","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":2,"clients":[],"NodeId":20}],"category":"Action","version":"0.0.1"},{"id":"21","internalFlowId":"21","type":"quantum","selected":false,"x":-232.001,"y":116.918,"name":"Green","mappingDescription":null,"description":null,"color":"#07D174","qType":"Gadget","originalName":"Button","factoryId":null,"properties":{"gadgetType":{"name":"Button"},"gadgetLabel":"Green","gadgetColor":"info","gadgetGroup":"302","gadgetIcon":"buttonIcon","gadgetStyle":"full"},"ports":[{"id":"8641","internalFlowId":"7431","type":"quantum","selected":false,"name":"be13c1d6-9a9b-4028-80fc-0333980fd953","in":true,"label":"Label","description":null,"qTrigger":false,"defaultValue":null,"properties":{},"signalType":{"key":"string","name":"String","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":21},{"id":"8642","internalFlowId":"7432","type":"quantum","selected":false,"name":"9f9fe34d-6c17-4026-8c34-a746906287ef","in":true,"label":"State","description":null,"qTrigger":true,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":1,"clients":[],"NodeId":21},{"id":"8643","internalFlowId":"7433","type":"quantum","selected":false,"name":"a991eb1b-4d41-4dd8-b6ee-2ea6137b3cb0","in":false,"label":"State","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":2,"clients":[],"NodeId":21}],"category":"Action","version":"0.0.1"},{"id":"22","internalFlowId":"22","type":"quantum","selected":false,"x":-255.407,"y":298.277,"name":"Red","mappingDescription":null,"description":null,"color":"#07D174","qType":"Gadget","originalName":"Button","factoryId":null,"properties":{"gadgetType":{"name":"Button"},"gadgetLabel":"Red","gadgetColor":"info","gadgetGroup":"303","gadgetIcon":"buttonIcon","gadgetStyle":"full"},"ports":[{"id":"8644","internalFlowId":"7434","type":"quantum","selected":false,"name":"fa165226-4e94-42df-a9b3-4aa3cfd3a483","in":true,"label":"Label","description":null,"qTrigger":false,"defaultValue":null,"properties":{},"signalType":{"key":"string","name":"String","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":22},{"id":"8645","internalFlowId":"7435","type":"quantum","selected":false,"name":"f72bd25d-24a9-4dc1-970a-761d95566c5f","in":true,"label":"State","description":null,"qTrigger":true,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":1,"clients":[],"NodeId":22},{"id":"8646","internalFlowId":"7436","type":"quantum","selected":false,"name":"806c5d7e-429e-43a7-b9f6-aeabedc6ee6e","in":false,"label":"State","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":2,"clients":[],"NodeId":22}],"category":"Action","version":"0.0.1"},{"id":"23","internalFlowId":"23","type":"quantum","selected":false,"x":4421.743,"y":-600.903,"name":"Green","mappingDescription":null,"description":null,"color":"#07D174","qType":"Gadget","originalName":"Switch","factoryId":null,"properties":{"gadgetType":{"name":"Switch"},"gadgetLabel":"Switch","gadgetColor":"info","gadgetGroup":"114","gadgetIcon":"buttonIcon","gadgetStyle":"full"},"ports":[{"id":"8647","internalFlowId":"7437","type":"quantum","selected":false,"name":"7b103377-a490-4860-bdb1-6093682783f0","in":true,"label":"Label","description":null,"qTrigger":false,"defaultValue":"Green","properties":{},"signalType":{"key":"string","name":"String","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":23},{"id":"8648","internalFlowId":"7438","type":"quantum","selected":false,"name":"3a431741-9f98-41c5-bdc5-6b9fdaf9e6c4","in":true,"label":"State","description":null,"qTrigger":true,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":1,"clients":[],"NodeId":23},{"id":"8649","internalFlowId":"7439","type":"quantum","selected":false,"name":"03b4053c-fa11-4d1b-9951-bfedfc1fb716","in":false,"label":"State","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":2,"clients":[],"NodeId":23}],"category":"Action","version":"0.0.1"},{"id":"24","internalFlowId":"24","type":"quantum","selected":false,"x":4416.518,"y":-460.867,"name":"Red","mappingDescription":null,"description":null,"color":"#07D174","qType":"Gadget","originalName":"Switch","factoryId":null,"properties":{"gadgetType":{"name":"Switch"},"gadgetLabel":"Switch","gadgetColor":"info","gadgetGroup":"114","gadgetIcon":"buttonIcon","gadgetStyle":"full"},"ports":[{"id":"8650","internalFlowId":"7440","type":"quantum","selected":false,"name":"57da9bfc-4648-4daa-81cd-9f9ba4b78ec7","in":true,"label":"Label","description":null,"qTrigger":false,"defaultValue":"Red","properties":{},"signalType":{"key":"string","name":"String","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":24},{"id":"8651","internalFlowId":"7441","type":"quantum","selected":false,"name":"31a9861f-08fe-422c-affb-ded816ae3bf5","in":true,"label":"State","description":null,"qTrigger":true,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":1,"clients":[],"NodeId":24},{"id":"8652","internalFlowId":"7442","type":"quantum","selected":false,"name":"d1e2173b-5310-4307-9408-2eb8814d8da6","in":false,"label":"State","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":2,"clients":[],"NodeId":24}],"category":"Action","version":"0.0.1"},{"id":"25","internalFlowId":"25","type":"quantum","selected":false,"x":4421.886,"y":-311.38,"name":"Blue","mappingDescription":null,"description":null,"color":"#07D174","qType":"Gadget","originalName":"Switch","factoryId":null,"properties":{"gadgetType":{"name":"Switch"},"gadgetLabel":"Switch","gadgetColor":"info","gadgetGroup":"114","gadgetIcon":"buttonIcon","gadgetStyle":"full"},"ports":[{"id":"8653","internalFlowId":"7443","type":"quantum","selected":false,"name":"f7c79708-2bfc-48c7-8aa4-644957b38688","in":true,"label":"Label","description":null,"qTrigger":false,"defaultValue":"Blue","properties":{},"signalType":{"key":"string","name":"String","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":25},{"id":"8654","internalFlowId":"7444","type":"quantum","selected":false,"name":"4e7add1f-ad0a-4ee1-913f-63d904a6711a","in":true,"label":"State","description":null,"qTrigger":true,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":1,"clients":[],"NodeId":25},{"id":"8655","internalFlowId":"7445","type":"quantum","selected":false,"name":"cff75e4d-6cc3-4c2b-8e92-94d1bb2c391c","in":false,"label":"State","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":2,"clients":[],"NodeId":25}],"category":"Action","version":"0.0.1"},{"id":"26","internalFlowId":"26","type":"quantum","selected":false,"x":4418.847,"y":-175.766,"name":"Yellow","mappingDescription":null,"description":null,"color":"#07D174","qType":"Gadget","originalName":"Switch","factoryId":null,"properties":{"gadgetType":{"name":"Switch"},"gadgetLabel":"Switch","gadgetColor":"info","gadgetGroup":"114","gadgetIcon":"buttonIcon","gadgetStyle":"full"},"ports":[{"id":"8656","internalFlowId":"7446","type":"quantum","selected":false,"name":"d81958cb-ab18-4385-a817-467bb1ac4d0a","in":true,"label":"Label","description":null,"qTrigger":false,"defaultValue":"Yellow","properties":{},"signalType":{"key":"string","name":"String","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":26},{"id":"8657","internalFlowId":"7447","type":"quantum","selected":false,"name":"fc4639f9-00d4-4b61-814c-2c4b6a854496","in":true,"label":"State","description":null,"qTrigger":true,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":1,"clients":[],"NodeId":26},{"id":"8658","internalFlowId":"7448","type":"quantum","selected":false,"name":"e2361bfb-6d2d-44ab-80f4-b4afedac72b0","in":false,"label":"State","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":2,"clients":[],"NodeId":26}],"category":"Action","version":"0.0.1"},{"id":"27","internalFlowId":"27","type":"quantum","selected":false,"x":2521.724,"y":-466.084,"name":"Illuminate LEDs","mappingDescription":null,"description":"This sequencer returns any input in order.","color":"#DE00BC","qType":"Snippet","originalName":"Any Data Sequence","factoryId":null,"properties":{"executeCode":"//number of out ports\nlet ports = 10;\nlet out = [];\n\nfor(let i = 0; i < ports; i++){\n out.push(inPorts[0]);\n}\n\nreturn out;"},"ports":[{"id":"8659","internalFlowId":"7449","type":"quantum","selected":false,"name":"b32f64f2-d76d-4708-99c6-efad97571307","in":true,"label":"In","description":null,"qTrigger":true,"defaultValue":null,"properties":{"defaultHidden":true},"signalType":{"key":"any","name":"Any","baseType":{"name":"JSON"}},"index":0,"clients":[],"NodeId":27},{"id":"8660","internalFlowId":"7450","type":"quantum","selected":false,"name":"9a761182-ccb6-46ae-a2f4-86818a52d0a8","in":false,"label":"Out 1","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"any","name":"Any","baseType":{"name":"JSON"}},"index":1,"clients":[],"NodeId":27},{"id":"8661","internalFlowId":"7451","type":"quantum","selected":false,"name":"02b23c99-ccfc-4273-95d2-d8d66316e763","in":false,"label":"Out 2","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"any","name":"Any","baseType":{"name":"JSON"}},"index":2,"clients":[],"NodeId":27},{"id":"8662","internalFlowId":"7452","type":"quantum","selected":false,"name":"af582fa1-57c6-4404-bd98-884b3581c2d8","in":false,"label":"Out 3","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"any","name":"Any","baseType":{"name":"JSON"}},"index":3,"clients":[],"NodeId":27},{"id":"8663","internalFlowId":"7453","type":"quantum","selected":false,"name":"8df7756c-2d4c-4599-b294-0d79b41e9635","in":false,"label":"Out 4","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"any","name":"Any","baseType":{"name":"JSON"}},"index":4,"clients":[],"NodeId":27},{"id":"8664","internalFlowId":"7454","type":"quantum","selected":false,"name":"529080d7-42d9-4b16-8eae-1ad654f29584","in":false,"label":"Out 5","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"any","name":"Any","baseType":{"name":"JSON"}},"index":5,"clients":[],"NodeId":27},{"id":"8665","internalFlowId":"7455","type":"quantum","selected":false,"name":"5c15fed5-d369-47b2-903c-c3dce03e3948","in":false,"label":"Out 6","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"any","name":"Any","baseType":{"name":"JSON"}},"index":6,"clients":[],"NodeId":27},{"id":"8666","internalFlowId":"7456","type":"quantum","selected":false,"name":"fc72ed6c-f7a3-4420-9c27-3275e66d8e7e","in":false,"label":"Out 7","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"any","name":"Any","baseType":{"name":"JSON"}},"index":7,"clients":[],"NodeId":27},{"id":"8667","internalFlowId":"7457","type":"quantum","selected":false,"name":"d42e278d-5ef3-4d67-b449-7320ee7d9998","in":false,"label":"Out 8","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"any","name":"Any","baseType":{"name":"JSON"}},"index":8,"clients":[],"NodeId":27},{"id":"8668","internalFlowId":"7458","type":"quantum","selected":false,"name":"fd77b4ce-81cd-4a6a-8297-b6e40379b8ac","in":false,"label":"Out 9","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"any","name":"Any","baseType":{"name":"JSON"}},"index":9,"clients":[],"NodeId":27},{"id":"8669","internalFlowId":"7459","type":"quantum","selected":false,"name":"85429a45-a25c-488e-a76c-b0a5ebbc2bdd","in":false,"label":"Out 10","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"any","name":"Any","baseType":{"name":"JSON"}},"index":10,"clients":[],"NodeId":27}],"category":"Data","version":"0.0.1"},{"id":"28","internalFlowId":"28","type":"quantum","selected":false,"x":-1027.124,"y":143.054,"name":"Green Button","mappingDescription":"No instructions defined!","description":"A button which can turn things on or off.","color":"#02B0EF","qType":"Widget","originalName":"Button","factoryId":null,"properties":{"mappableCategory":{"category":7,"subCategory":1},"multiWidget":false,"manufacturer":"generic"},"ports":[{"id":"8670","internalFlowId":"7460","type":"quantum","selected":false,"name":"af793b24-3e51-474a-a0f9-ea294d5733ea","in":false,"label":"State","description":"This output is used to send out the state of the button.","qTrigger":null,"defaultValue":null,"properties":{"clientService":{"key":"q_digital_in","name":"Digital In","uuid":"4ae77ff2-1d7c-5100-96d0-50b42a0fc08a","value_len":"1","props":["read","notify"],"propChar":[],"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}}},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":0,"clients":[{"id":2863,"createdAt":"2020-07-14T21:04:38.230Z","updatedAt":"2020-07-14T21:04:38.230Z","clientId":228,"subClientId":1514,"serviceId":5922,"PortId":8670,"client":{"id":228,"name":"Q #01953","mac_address":"08:6b:d7:49:07:a1","proxy":"02:81:e6:8e:59:ca","state":"OFF","rssi":-57,"batteryLevel":100,"batteryMode":"USB","lifeCycle":false,"manufacturer":"Quantum","category":{"category":null},"advertisement":{"localName":"Q #01953","txPowerLevel":1,"serviceData":[],"serviceUuids":["5155414e54554d430000ffffffffffff"],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]},"energyInformation":{"batteryLevel":"100%","batteryVoltage":"3284mV","deviceVoltage":"3.286V","internalResistance":"0.07","powerTypeNumeric":1,"powerType":"USB"},"createdAt":"2020-07-14T20:24:52.501Z","updatedAt":"2020-07-14T21:01:33.358Z","proxyLinkId":1},"subClient":{"id":1514,"name":"Green","category":{"category":7,"subCategory":1},"index":2,"createdAt":"2020-07-14T20:32:04.966Z","updatedAt":"2020-07-14T20:32:10.999Z","ClientId":228},"service":{"id":5922,"client_mac_address":null,"name":"State","signalType":"Digital In","serviceKey":"q_digital_in","uuid":"4ae77ff21d7c510196d050b42a0fc08a","characteristics":[{"uuid":"6375a20d31ae4456aaf68fc84e3cce26","name":null,"type":null,"properties":["read"],"value":"State"},{"uuid":"a97ba6d9c40941188735b5bef87b9afd","name":null,"type":null,"properties":["read","notify"],"value":"\u0000"},{"uuid":"93d79faa21ed4ce7b658d9bcb06bd943","name":null,"type":null,"properties":["read"],"value":"-"},{"uuid":"1270fde2fd5e4e4fb866241f105f7b15","name":null,"type":null,"properties":["read"],"value":"\u0001\u0001Green~7~1"}],"type":null,"createdAt":"2020-07-14T20:32:05.964Z","updatedAt":"2020-07-14T20:32:12.091Z","SubClientId":1514}}],"NodeId":28}],"category":"Input Control","version":"0.0.1"},{"id":"29","internalFlowId":"29","type":"quantum","selected":false,"x":-1041.886,"y":299.825,"name":"Red Button","mappingDescription":"No instructions defined!","description":"A button which can turn things on or off.","color":"#02B0EF","qType":"Widget","originalName":"Button","factoryId":null,"properties":{"mappableCategory":{"category":7,"subCategory":1},"multiWidget":false,"manufacturer":"generic"},"ports":[{"id":"8671","internalFlowId":"7461","type":"quantum","selected":false,"name":"d9f32dda-3fd3-4ce6-9c96-7d6e27987140","in":false,"label":"State","description":"This output is used to send out the state of the button.","qTrigger":null,"defaultValue":null,"properties":{"clientService":{"key":"q_digital_in","name":"Digital In","uuid":"4ae77ff2-1d7c-5100-96d0-50b42a0fc08a","value_len":"1","props":["read","notify"],"propChar":[],"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}}},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":0,"clients":[{"id":2864,"createdAt":"2020-07-14T21:04:38.230Z","updatedAt":"2020-07-14T21:04:38.230Z","clientId":228,"subClientId":1513,"serviceId":5930,"PortId":8671,"client":{"id":228,"name":"Q #01953","mac_address":"08:6b:d7:49:07:a1","proxy":"02:81:e6:8e:59:ca","state":"OFF","rssi":-57,"batteryLevel":100,"batteryMode":"USB","lifeCycle":false,"manufacturer":"Quantum","category":{"category":null},"advertisement":{"localName":"Q #01953","txPowerLevel":1,"serviceData":[],"serviceUuids":["5155414e54554d430000ffffffffffff"],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]},"energyInformation":{"batteryLevel":"100%","batteryVoltage":"3284mV","deviceVoltage":"3.286V","internalResistance":"0.07","powerTypeNumeric":1,"powerType":"USB"},"createdAt":"2020-07-14T20:24:52.501Z","updatedAt":"2020-07-14T21:01:33.358Z","proxyLinkId":1},"subClient":{"id":1513,"name":"Red","category":{"category":7,"subCategory":1},"index":1,"createdAt":"2020-07-14T20:32:04.868Z","updatedAt":"2020-07-14T20:32:10.898Z","ClientId":228},"service":{"id":5930,"client_mac_address":null,"name":"State","signalType":"Digital In","serviceKey":"q_digital_in","uuid":"4ae77ff21d7c510096d050b42a0fc08a","characteristics":[{"uuid":"6375a20d31ae4456aaf68fc84e3cce26","name":null,"type":null,"properties":["read"],"value":"State"},{"uuid":"a97ba6d9c40941188735b5bef87b9afd","name":null,"type":null,"properties":["read","notify"],"value":"\u0000"},{"uuid":"93d79faa21ed4ce7b658d9bcb06bd943","name":null,"type":null,"properties":["read"],"value":"-"},{"uuid":"1270fde2fd5e4e4fb866241f105f7b15","name":null,"type":null,"properties":["read"],"value":"\u0001\u0000Red~7~1"}],"type":null,"createdAt":"2020-07-14T20:32:06.085Z","updatedAt":"2020-07-14T20:32:12.054Z","SubClientId":1513}}],"NodeId":29}],"category":"Input Control","version":"0.0.1"},{"id":"30","internalFlowId":"30","type":"quantum","selected":false,"x":-1039.296,"y":431.031,"name":"Blue Button","mappingDescription":"No instructions defined!","description":"A button which can turn things on or off.","color":"#02B0EF","qType":"Widget","originalName":"Button","factoryId":null,"properties":{"mappableCategory":{"category":7,"subCategory":1},"multiWidget":false,"manufacturer":"generic"},"ports":[{"id":"8672","internalFlowId":"7462","type":"quantum","selected":false,"name":"2065b3a0-aed1-4311-b8a3-d8e6fa5cefb1","in":false,"label":"State","description":"This output is used to send out the state of the button.","qTrigger":null,"defaultValue":null,"properties":{"clientService":{"key":"q_digital_in","name":"Digital In","uuid":"4ae77ff2-1d7c-5100-96d0-50b42a0fc08a","value_len":"1","props":["read","notify"],"propChar":[],"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}}},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":0,"clients":[{"id":2865,"createdAt":"2020-07-14T21:04:38.230Z","updatedAt":"2020-07-14T21:04:38.230Z","clientId":228,"subClientId":1515,"serviceId":5923,"PortId":8672,"client":{"id":228,"name":"Q #01953","mac_address":"08:6b:d7:49:07:a1","proxy":"02:81:e6:8e:59:ca","state":"OFF","rssi":-57,"batteryLevel":100,"batteryMode":"USB","lifeCycle":false,"manufacturer":"Quantum","category":{"category":null},"advertisement":{"localName":"Q #01953","txPowerLevel":1,"serviceData":[],"serviceUuids":["5155414e54554d430000ffffffffffff"],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]},"energyInformation":{"batteryLevel":"100%","batteryVoltage":"3284mV","deviceVoltage":"3.286V","internalResistance":"0.07","powerTypeNumeric":1,"powerType":"USB"},"createdAt":"2020-07-14T20:24:52.501Z","updatedAt":"2020-07-14T21:01:33.358Z","proxyLinkId":1},"subClient":{"id":1515,"name":"Blue","category":{"category":7,"subCategory":1},"index":3,"createdAt":"2020-07-14T20:32:05.060Z","updatedAt":"2020-07-14T20:32:11.139Z","ClientId":228},"service":{"id":5923,"client_mac_address":null,"name":"State","signalType":"Digital In","serviceKey":"q_digital_in","uuid":"4ae77ff21d7c510296d050b42a0fc08a","characteristics":[{"uuid":"6375a20d31ae4456aaf68fc84e3cce26","name":null,"type":null,"properties":["read"],"value":"State"},{"uuid":"a97ba6d9c40941188735b5bef87b9afd","name":null,"type":null,"properties":["read","notify"],"value":"\u0000"},{"uuid":"93d79faa21ed4ce7b658d9bcb06bd943","name":null,"type":null,"properties":["read"],"value":"-"},{"uuid":"1270fde2fd5e4e4fb866241f105f7b15","name":null,"type":null,"properties":["read"],"value":"\u0001\u0002Blue~7~1"}],"type":null,"createdAt":"2020-07-14T20:32:05.966Z","updatedAt":"2020-07-14T20:32:12.093Z","SubClientId":1515}}],"NodeId":30}],"category":"Input Control","version":"0.0.1"},{"id":"31","internalFlowId":"31","type":"quantum","selected":false,"x":-1037.743,"y":554.03,"name":"Yellow Button","mappingDescription":"No instructions defined!","description":"A button which can turn things on or off.","color":"#02B0EF","qType":"Widget","originalName":"Button","factoryId":null,"properties":{"mappableCategory":{"category":7,"subCategory":1},"multiWidget":false,"manufacturer":"generic"},"ports":[{"id":"8673","internalFlowId":"7463","type":"quantum","selected":false,"name":"052a4306-15cd-4eb7-b24e-73ca45f92754","in":false,"label":"State","description":"This output is used to send out the state of the button.","qTrigger":null,"defaultValue":null,"properties":{"clientService":{"key":"q_digital_in","name":"Digital In","uuid":"4ae77ff2-1d7c-5100-96d0-50b42a0fc08a","value_len":"1","props":["read","notify"],"propChar":[],"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}}},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":0,"clients":[{"id":2866,"createdAt":"2020-07-14T21:04:38.230Z","updatedAt":"2020-07-14T21:04:38.230Z","clientId":228,"subClientId":1516,"serviceId":5924,"PortId":8673,"client":{"id":228,"name":"Q #01953","mac_address":"08:6b:d7:49:07:a1","proxy":"02:81:e6:8e:59:ca","state":"OFF","rssi":-57,"batteryLevel":100,"batteryMode":"USB","lifeCycle":false,"manufacturer":"Quantum","category":{"category":null},"advertisement":{"localName":"Q #01953","txPowerLevel":1,"serviceData":[],"serviceUuids":["5155414e54554d430000ffffffffffff"],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]},"energyInformation":{"batteryLevel":"100%","batteryVoltage":"3284mV","deviceVoltage":"3.286V","internalResistance":"0.07","powerTypeNumeric":1,"powerType":"USB"},"createdAt":"2020-07-14T20:24:52.501Z","updatedAt":"2020-07-14T21:01:33.358Z","proxyLinkId":1},"subClient":{"id":1516,"name":"Yellow","category":{"category":7,"subCategory":1},"index":4,"createdAt":"2020-07-14T20:32:05.178Z","updatedAt":"2020-07-14T20:32:11.236Z","ClientId":228},"service":{"id":5924,"client_mac_address":null,"name":"State","signalType":"Digital In","serviceKey":"q_digital_in","uuid":"4ae77ff21d7c510396d050b42a0fc08a","characteristics":[{"uuid":"6375a20d31ae4456aaf68fc84e3cce26","name":null,"type":null,"properties":["read"],"value":"State"},{"uuid":"a97ba6d9c40941188735b5bef87b9afd","name":null,"type":null,"properties":["read","notify"],"value":"\u0000"},{"uuid":"93d79faa21ed4ce7b658d9bcb06bd943","name":null,"type":null,"properties":["read"],"value":"-"},{"uuid":"1270fde2fd5e4e4fb866241f105f7b15","name":null,"type":null,"properties":["read"],"value":"\u0001\u0003Yellow~7~1"}],"type":null,"createdAt":"2020-07-14T20:32:05.971Z","updatedAt":"2020-07-14T20:32:12.096Z","SubClientId":1516}}],"NodeId":31}],"category":"Input Control","version":"0.0.1"},{"id":"32","internalFlowId":"32","type":"quantum","selected":false,"x":-662.148,"y":62.85,"name":"Green LED","mappingDescription":"No instructions defined!","description":"A simple light can just be on or off.","color":"#02B0EF","qType":"Widget","originalName":"LED","factoryId":null,"properties":{"mappableCategory":{"category":5,"subCategory":1},"multiWidget":false,"manufacturer":"generic"},"ports":[{"id":"8674","internalFlowId":"7464","type":"quantum","selected":false,"name":"63d2756a-2e22-4327-97d3-40608db1447f","in":true,"label":"On/Off","description":"Nothing added here yet.","qTrigger":true,"defaultValue":"Green LED","properties":{"clientService":{"key":"q_digital_out","name":"Digital Out","uuid":"efc403fb-d447-5100-8f26-c6942cc3db39","value_len":"1","props":["write","read"],"propChar":[],"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}}},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":0,"clients":[{"id":2867,"createdAt":"2020-07-14T21:04:38.230Z","updatedAt":"2020-07-14T21:04:38.230Z","clientId":228,"subClientId":1519,"serviceId":5927,"PortId":8674,"client":{"id":228,"name":"Q #01953","mac_address":"08:6b:d7:49:07:a1","proxy":"02:81:e6:8e:59:ca","state":"OFF","rssi":-57,"batteryLevel":100,"batteryMode":"USB","lifeCycle":false,"manufacturer":"Quantum","category":{"category":null},"advertisement":{"localName":"Q #01953","txPowerLevel":1,"serviceData":[],"serviceUuids":["5155414e54554d430000ffffffffffff"],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]},"energyInformation":{"batteryLevel":"100%","batteryVoltage":"3284mV","deviceVoltage":"3.286V","internalResistance":"0.07","powerTypeNumeric":1,"powerType":"USB"},"createdAt":"2020-07-14T20:24:52.501Z","updatedAt":"2020-07-14T21:01:33.358Z","proxyLinkId":1},"subClient":{"id":1519,"name":"Green LED","category":{"category":5,"subCategory":1},"index":7,"createdAt":"2020-07-14T20:32:05.463Z","updatedAt":"2020-07-14T20:32:11.535Z","ClientId":228},"service":{"id":5927,"client_mac_address":null,"name":"On/Off","signalType":"Digital Out","serviceKey":"q_digital_out","uuid":"efc403fbd44751068f26c6942cc3db39","characteristics":[{"uuid":"6375a20d31ae4456aaf68fc84e3cce26","name":null,"type":null,"properties":["read"],"value":"On/Off"},{"uuid":"a97ba6d9c40941188735b5bef87b9afd","name":null,"type":null,"properties":["read","write"],"value":"\u0000"},{"uuid":"93d79faa21ed4ce7b658d9bcb06bd943","name":null,"type":null,"properties":["read"],"value":"-"},{"uuid":"1270fde2fd5e4e4fb866241f105f7b15","name":null,"type":null,"properties":["read"],"value":"\u0001\u0006Green LED~5~1"}],"type":null,"createdAt":"2020-07-14T20:32:05.976Z","updatedAt":"2020-07-14T20:32:12.102Z","SubClientId":1519}}],"NodeId":32}],"category":"Display","version":"0.0.1"},{"id":"33","internalFlowId":"33","type":"quantum","selected":false,"x":-668.844,"y":196.8,"name":"Red LED","mappingDescription":"No instructions defined!","description":"A simple light can just be on or off.","color":"#02B0EF","qType":"Widget","originalName":"LED","factoryId":null,"properties":{"mappableCategory":{"category":5,"subCategory":1},"multiWidget":false,"manufacturer":"generic"},"ports":[{"id":"8675","internalFlowId":"7465","type":"quantum","selected":false,"name":"0ba9a85a-e76e-4d15-aaeb-8095f7251b40","in":true,"label":"On/Off","description":"Nothing added here yet.","qTrigger":true,"defaultValue":"","properties":{"clientService":{"key":"q_digital_out","name":"Digital Out","uuid":"efc403fb-d447-5100-8f26-c6942cc3db39","value_len":"1","props":["write","read"],"propChar":[],"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}}},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":0,"clients":[{"id":2868,"createdAt":"2020-07-14T21:04:38.230Z","updatedAt":"2020-07-14T21:04:38.230Z","clientId":228,"subClientId":1518,"serviceId":5926,"PortId":8675,"client":{"id":228,"name":"Q #01953","mac_address":"08:6b:d7:49:07:a1","proxy":"02:81:e6:8e:59:ca","state":"OFF","rssi":-57,"batteryLevel":100,"batteryMode":"USB","lifeCycle":false,"manufacturer":"Quantum","category":{"category":null},"advertisement":{"localName":"Q #01953","txPowerLevel":1,"serviceData":[],"serviceUuids":["5155414e54554d430000ffffffffffff"],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]},"energyInformation":{"batteryLevel":"100%","batteryVoltage":"3284mV","deviceVoltage":"3.286V","internalResistance":"0.07","powerTypeNumeric":1,"powerType":"USB"},"createdAt":"2020-07-14T20:24:52.501Z","updatedAt":"2020-07-14T21:01:33.358Z","proxyLinkId":1},"subClient":{"id":1518,"name":"Red LED","category":{"category":5,"subCategory":1},"index":6,"createdAt":"2020-07-14T20:32:05.370Z","updatedAt":"2020-07-14T20:32:11.425Z","ClientId":228},"service":{"id":5926,"client_mac_address":null,"name":"On/Off","signalType":"Digital Out","serviceKey":"q_digital_out","uuid":"efc403fbd44751058f26c6942cc3db39","characteristics":[{"uuid":"6375a20d31ae4456aaf68fc84e3cce26","name":null,"type":null,"properties":["read"],"value":"On/Off"},{"uuid":"a97ba6d9c40941188735b5bef87b9afd","name":null,"type":null,"properties":["read","write"],"value":"\u0000"},{"uuid":"93d79faa21ed4ce7b658d9bcb06bd943","name":null,"type":null,"properties":["read"],"value":"-"},{"uuid":"1270fde2fd5e4e4fb866241f105f7b15","name":null,"type":null,"properties":["read"],"value":"\u0001\u0005Red LED~5~1"}],"type":null,"createdAt":"2020-07-14T20:32:05.975Z","updatedAt":"2020-07-14T20:32:12.100Z","SubClientId":1518}}],"NodeId":33}],"category":"Display","version":"0.0.1"},{"id":"34","internalFlowId":"34","type":"quantum","selected":false,"x":-674.641,"y":350.204,"name":"Blue LED","mappingDescription":"No instructions defined!","description":"A simple light can just be on or off.","color":"#02B0EF","qType":"Widget","originalName":"LED","factoryId":null,"properties":{"mappableCategory":{"category":5,"subCategory":1},"multiWidget":false,"manufacturer":"generic"},"ports":[{"id":"8676","internalFlowId":"7466","type":"quantum","selected":false,"name":"146b3ee8-6c74-4eb7-b7f3-005b73c95f83","in":true,"label":"On/Off","description":"Nothing added here yet.","qTrigger":true,"defaultValue":"","properties":{"clientService":{"key":"q_digital_out","name":"Digital Out","uuid":"efc403fb-d447-5100-8f26-c6942cc3db39","value_len":"1","props":["write","read"],"propChar":[],"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}}},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":0,"clients":[{"id":2869,"createdAt":"2020-07-14T21:04:38.230Z","updatedAt":"2020-07-14T21:04:38.230Z","clientId":228,"subClientId":1520,"serviceId":5928,"PortId":8676,"client":{"id":228,"name":"Q #01953","mac_address":"08:6b:d7:49:07:a1","proxy":"02:81:e6:8e:59:ca","state":"OFF","rssi":-57,"batteryLevel":100,"batteryMode":"USB","lifeCycle":false,"manufacturer":"Quantum","category":{"category":null},"advertisement":{"localName":"Q #01953","txPowerLevel":1,"serviceData":[],"serviceUuids":["5155414e54554d430000ffffffffffff"],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]},"energyInformation":{"batteryLevel":"100%","batteryVoltage":"3284mV","deviceVoltage":"3.286V","internalResistance":"0.07","powerTypeNumeric":1,"powerType":"USB"},"createdAt":"2020-07-14T20:24:52.501Z","updatedAt":"2020-07-14T21:01:33.358Z","proxyLinkId":1},"subClient":{"id":1520,"name":"Blue LED","category":{"category":5,"subCategory":1},"index":8,"createdAt":"2020-07-14T20:32:05.553Z","updatedAt":"2020-07-14T20:32:11.639Z","ClientId":228},"service":{"id":5928,"client_mac_address":null,"name":"On/Off","signalType":"Digital Out","serviceKey":"q_digital_out","uuid":"efc403fbd44751078f26c6942cc3db39","characteristics":[{"uuid":"6375a20d31ae4456aaf68fc84e3cce26","name":null,"type":null,"properties":["read"],"value":"On/Off"},{"uuid":"a97ba6d9c40941188735b5bef87b9afd","name":null,"type":null,"properties":["read","write"],"value":"\u0000"},{"uuid":"93d79faa21ed4ce7b658d9bcb06bd943","name":null,"type":null,"properties":["read"],"value":"-"},{"uuid":"1270fde2fd5e4e4fb866241f105f7b15","name":null,"type":null,"properties":["read"],"value":"\u0001\u0007Blue LED~5~1"}],"type":null,"createdAt":"2020-07-14T20:32:05.978Z","updatedAt":"2020-07-14T20:32:12.104Z","SubClientId":1520}}],"NodeId":34}],"category":"Display","version":"0.0.1"},{"id":"35","internalFlowId":"35","type":"quantum","selected":false,"x":-686.121,"y":503.414,"name":"Yellow LED","mappingDescription":"No instructions defined!","description":"A simple light can just be on or off.","color":"#02B0EF","qType":"Widget","originalName":"LED","factoryId":null,"properties":{"mappableCategory":{"category":5,"subCategory":1},"multiWidget":false,"manufacturer":"generic"},"ports":[{"id":"8677","internalFlowId":"7467","type":"quantum","selected":false,"name":"836d4749-14d8-450a-bcda-4bcd96830e16","in":true,"label":"On/Off","description":"Nothing added here yet.","qTrigger":true,"defaultValue":"","properties":{"clientService":{"key":"q_digital_out","name":"Digital Out","uuid":"efc403fb-d447-5100-8f26-c6942cc3db39","value_len":"1","props":["write","read"],"propChar":[],"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}}},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":0,"clients":[{"id":2870,"createdAt":"2020-07-14T21:04:38.230Z","updatedAt":"2020-07-14T21:04:38.230Z","clientId":228,"subClientId":1521,"serviceId":5929,"PortId":8677,"client":{"id":228,"name":"Q #01953","mac_address":"08:6b:d7:49:07:a1","proxy":"02:81:e6:8e:59:ca","state":"OFF","rssi":-57,"batteryLevel":100,"batteryMode":"USB","lifeCycle":false,"manufacturer":"Quantum","category":{"category":null},"advertisement":{"localName":"Q #01953","txPowerLevel":1,"serviceData":[],"serviceUuids":["5155414e54554d430000ffffffffffff"],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]},"energyInformation":{"batteryLevel":"100%","batteryVoltage":"3284mV","deviceVoltage":"3.286V","internalResistance":"0.07","powerTypeNumeric":1,"powerType":"USB"},"createdAt":"2020-07-14T20:24:52.501Z","updatedAt":"2020-07-14T21:01:33.358Z","proxyLinkId":1},"subClient":{"id":1521,"name":"Yellow LED","category":{"category":5,"subCategory":1},"index":9,"createdAt":"2020-07-14T20:32:05.669Z","updatedAt":"2020-07-14T20:32:11.741Z","ClientId":228},"service":{"id":5929,"client_mac_address":null,"name":"On/Off","signalType":"Digital Out","serviceKey":"q_digital_out","uuid":"efc403fbd44751088f26c6942cc3db39","characteristics":[{"uuid":"6375a20d31ae4456aaf68fc84e3cce26","name":null,"type":null,"properties":["read"],"value":"On/Off"},{"uuid":"a97ba6d9c40941188735b5bef87b9afd","name":null,"type":null,"properties":["read","write"],"value":"\u0000"},{"uuid":"93d79faa21ed4ce7b658d9bcb06bd943","name":null,"type":null,"properties":["read"],"value":"-"},{"uuid":"1270fde2fd5e4e4fb866241f105f7b15","name":null,"type":null,"properties":["read"],"value":"\u0001\bYellow LED~5~1"}],"type":null,"createdAt":"2020-07-14T20:32:05.979Z","updatedAt":"2020-07-14T20:32:12.105Z","SubClientId":1521}}],"NodeId":35}],"category":"Display","version":"0.0.1"},{"id":"36","internalFlowId":"36","type":"quantum","selected":false,"x":4722.987,"y":-689.637,"name":"Green LED","mappingDescription":"No instructions defined!","description":"A simple light can just be on or off.","color":"#02B0EF","qType":"Widget","originalName":"LED","factoryId":null,"properties":{"mappableCategory":{"category":5,"subCategory":1},"multiWidget":false,"manufacturer":"generic"},"ports":[{"id":"8678","internalFlowId":"7468","type":"quantum","selected":false,"name":"57234bc5-fec4-44db-a5f6-a57b321c88d6","in":true,"label":"On/Off","description":"Nothing added here yet.","qTrigger":true,"defaultValue":"","properties":{"clientService":{"key":"q_digital_out","name":"Digital Out","uuid":"efc403fb-d447-5100-8f26-c6942cc3db39","value_len":"1","props":["write","read"],"propChar":[],"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}}},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":0,"clients":[{"id":2871,"createdAt":"2020-07-14T21:04:38.230Z","updatedAt":"2020-07-14T21:04:38.230Z","clientId":228,"subClientId":1519,"serviceId":5927,"PortId":8678,"client":{"id":228,"name":"Q #01953","mac_address":"08:6b:d7:49:07:a1","proxy":"02:81:e6:8e:59:ca","state":"OFF","rssi":-57,"batteryLevel":100,"batteryMode":"USB","lifeCycle":false,"manufacturer":"Quantum","category":{"category":null},"advertisement":{"localName":"Q #01953","txPowerLevel":1,"serviceData":[],"serviceUuids":["5155414e54554d430000ffffffffffff"],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]},"energyInformation":{"batteryLevel":"100%","batteryVoltage":"3284mV","deviceVoltage":"3.286V","internalResistance":"0.07","powerTypeNumeric":1,"powerType":"USB"},"createdAt":"2020-07-14T20:24:52.501Z","updatedAt":"2020-07-14T21:01:33.358Z","proxyLinkId":1},"subClient":{"id":1519,"name":"Green LED","category":{"category":5,"subCategory":1},"index":7,"createdAt":"2020-07-14T20:32:05.463Z","updatedAt":"2020-07-14T20:32:11.535Z","ClientId":228},"service":{"id":5927,"client_mac_address":null,"name":"On/Off","signalType":"Digital Out","serviceKey":"q_digital_out","uuid":"efc403fbd44751068f26c6942cc3db39","characteristics":[{"uuid":"6375a20d31ae4456aaf68fc84e3cce26","name":null,"type":null,"properties":["read"],"value":"On/Off"},{"uuid":"a97ba6d9c40941188735b5bef87b9afd","name":null,"type":null,"properties":["read","write"],"value":"\u0000"},{"uuid":"93d79faa21ed4ce7b658d9bcb06bd943","name":null,"type":null,"properties":["read"],"value":"-"},{"uuid":"1270fde2fd5e4e4fb866241f105f7b15","name":null,"type":null,"properties":["read"],"value":"\u0001\u0006Green LED~5~1"}],"type":null,"createdAt":"2020-07-14T20:32:05.976Z","updatedAt":"2020-07-14T20:32:12.102Z","SubClientId":1519}}],"NodeId":36}],"category":"Display","version":"0.0.1"},{"id":"37","internalFlowId":"37","type":"quantum","selected":false,"x":4711.447,"y":-485.226,"name":"Red LED","mappingDescription":"No instructions defined!","description":"A simple light can just be on or off.","color":"#02B0EF","qType":"Widget","originalName":"LED","factoryId":null,"properties":{"mappableCategory":{"category":5,"subCategory":1},"multiWidget":false,"manufacturer":"generic"},"ports":[{"id":"8679","internalFlowId":"7469","type":"quantum","selected":false,"name":"ceac32f2-af79-483d-8a98-0be48e430dac","in":true,"label":"On/Off","description":"Nothing added here yet.","qTrigger":true,"defaultValue":"","properties":{"clientService":{"key":"q_digital_out","name":"Digital Out","uuid":"efc403fb-d447-5100-8f26-c6942cc3db39","value_len":"1","props":["write","read"],"propChar":[],"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}}},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":0,"clients":[{"id":2872,"createdAt":"2020-07-14T21:04:38.230Z","updatedAt":"2020-07-14T21:04:38.230Z","clientId":228,"subClientId":1518,"serviceId":5926,"PortId":8679,"client":{"id":228,"name":"Q #01953","mac_address":"08:6b:d7:49:07:a1","proxy":"02:81:e6:8e:59:ca","state":"OFF","rssi":-57,"batteryLevel":100,"batteryMode":"USB","lifeCycle":false,"manufacturer":"Quantum","category":{"category":null},"advertisement":{"localName":"Q #01953","txPowerLevel":1,"serviceData":[],"serviceUuids":["5155414e54554d430000ffffffffffff"],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]},"energyInformation":{"batteryLevel":"100%","batteryVoltage":"3284mV","deviceVoltage":"3.286V","internalResistance":"0.07","powerTypeNumeric":1,"powerType":"USB"},"createdAt":"2020-07-14T20:24:52.501Z","updatedAt":"2020-07-14T21:01:33.358Z","proxyLinkId":1},"subClient":{"id":1518,"name":"Red LED","category":{"category":5,"subCategory":1},"index":6,"createdAt":"2020-07-14T20:32:05.370Z","updatedAt":"2020-07-14T20:32:11.425Z","ClientId":228},"service":{"id":5926,"client_mac_address":null,"name":"On/Off","signalType":"Digital Out","serviceKey":"q_digital_out","uuid":"efc403fbd44751058f26c6942cc3db39","characteristics":[{"uuid":"6375a20d31ae4456aaf68fc84e3cce26","name":null,"type":null,"properties":["read"],"value":"On/Off"},{"uuid":"a97ba6d9c40941188735b5bef87b9afd","name":null,"type":null,"properties":["read","write"],"value":"\u0000"},{"uuid":"93d79faa21ed4ce7b658d9bcb06bd943","name":null,"type":null,"properties":["read"],"value":"-"},{"uuid":"1270fde2fd5e4e4fb866241f105f7b15","name":null,"type":null,"properties":["read"],"value":"\u0001\u0005Red LED~5~1"}],"type":null,"createdAt":"2020-07-14T20:32:05.975Z","updatedAt":"2020-07-14T20:32:12.100Z","SubClientId":1518}}],"NodeId":37}],"category":"Display","version":"0.0.1"},{"id":"38","internalFlowId":"38","type":"quantum","selected":false,"x":4700.588,"y":-330.299,"name":"Blue LED","mappingDescription":"No instructions defined!","description":"A simple light can just be on or off.","color":"#02B0EF","qType":"Widget","originalName":"LED","factoryId":null,"properties":{"mappableCategory":{"category":5,"subCategory":1},"multiWidget":false,"manufacturer":"generic"},"ports":[{"id":"8680","internalFlowId":"7470","type":"quantum","selected":false,"name":"118a1f80-49c1-4126-bfc0-e2d0a008a6a4","in":true,"label":"On/Off","description":"Nothing added here yet.","qTrigger":true,"defaultValue":"Blue","properties":{"clientService":{"key":"q_digital_out","name":"Digital Out","uuid":"efc403fb-d447-5100-8f26-c6942cc3db39","value_len":"1","props":["write","read"],"propChar":[],"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}}},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":0,"clients":[{"id":2873,"createdAt":"2020-07-14T21:04:38.230Z","updatedAt":"2020-07-14T21:04:38.230Z","clientId":228,"subClientId":1520,"serviceId":5928,"PortId":8680,"client":{"id":228,"name":"Q #01953","mac_address":"08:6b:d7:49:07:a1","proxy":"02:81:e6:8e:59:ca","state":"OFF","rssi":-57,"batteryLevel":100,"batteryMode":"USB","lifeCycle":false,"manufacturer":"Quantum","category":{"category":null},"advertisement":{"localName":"Q #01953","txPowerLevel":1,"serviceData":[],"serviceUuids":["5155414e54554d430000ffffffffffff"],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]},"energyInformation":{"batteryLevel":"100%","batteryVoltage":"3284mV","deviceVoltage":"3.286V","internalResistance":"0.07","powerTypeNumeric":1,"powerType":"USB"},"createdAt":"2020-07-14T20:24:52.501Z","updatedAt":"2020-07-14T21:01:33.358Z","proxyLinkId":1},"subClient":{"id":1520,"name":"Blue LED","category":{"category":5,"subCategory":1},"index":8,"createdAt":"2020-07-14T20:32:05.553Z","updatedAt":"2020-07-14T20:32:11.639Z","ClientId":228},"service":{"id":5928,"client_mac_address":null,"name":"On/Off","signalType":"Digital Out","serviceKey":"q_digital_out","uuid":"efc403fbd44751078f26c6942cc3db39","characteristics":[{"uuid":"6375a20d31ae4456aaf68fc84e3cce26","name":null,"type":null,"properties":["read"],"value":"On/Off"},{"uuid":"a97ba6d9c40941188735b5bef87b9afd","name":null,"type":null,"properties":["read","write"],"value":"\u0000"},{"uuid":"93d79faa21ed4ce7b658d9bcb06bd943","name":null,"type":null,"properties":["read"],"value":"-"},{"uuid":"1270fde2fd5e4e4fb866241f105f7b15","name":null,"type":null,"properties":["read"],"value":"\u0001\u0007Blue LED~5~1"}],"type":null,"createdAt":"2020-07-14T20:32:05.978Z","updatedAt":"2020-07-14T20:32:12.104Z","SubClientId":1520}}],"NodeId":38}],"category":"Display","version":"0.0.1"},{"id":"39","internalFlowId":"39","type":"quantum","selected":false,"x":4694.346,"y":-171,"name":"Yellow LED","mappingDescription":"No instructions defined!","description":"A simple light can just be on or off.","color":"#02B0EF","qType":"Widget","originalName":"LED","factoryId":null,"properties":{"mappableCategory":{"category":5,"subCategory":1},"multiWidget":false,"manufacturer":"generic"},"ports":[{"id":"8681","internalFlowId":"7471","type":"quantum","selected":false,"name":"4e0b1079-0fa3-4768-998b-7fbf87efb7a7","in":true,"label":"On/Off","description":"Nothing added here yet.","qTrigger":true,"defaultValue":"","properties":{"clientService":{"key":"q_digital_out","name":"Digital Out","uuid":"efc403fb-d447-5100-8f26-c6942cc3db39","value_len":"1","props":["write","read"],"propChar":[],"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}}},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":0,"clients":[{"id":2874,"createdAt":"2020-07-14T21:04:38.230Z","updatedAt":"2020-07-14T21:04:38.230Z","clientId":228,"subClientId":1521,"serviceId":5929,"PortId":8681,"client":{"id":228,"name":"Q #01953","mac_address":"08:6b:d7:49:07:a1","proxy":"02:81:e6:8e:59:ca","state":"OFF","rssi":-57,"batteryLevel":100,"batteryMode":"USB","lifeCycle":false,"manufacturer":"Quantum","category":{"category":null},"advertisement":{"localName":"Q #01953","txPowerLevel":1,"serviceData":[],"serviceUuids":["5155414e54554d430000ffffffffffff"],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]},"energyInformation":{"batteryLevel":"100%","batteryVoltage":"3284mV","deviceVoltage":"3.286V","internalResistance":"0.07","powerTypeNumeric":1,"powerType":"USB"},"createdAt":"2020-07-14T20:24:52.501Z","updatedAt":"2020-07-14T21:01:33.358Z","proxyLinkId":1},"subClient":{"id":1521,"name":"Yellow LED","category":{"category":5,"subCategory":1},"index":9,"createdAt":"2020-07-14T20:32:05.669Z","updatedAt":"2020-07-14T20:32:11.741Z","ClientId":228},"service":{"id":5929,"client_mac_address":null,"name":"On/Off","signalType":"Digital Out","serviceKey":"q_digital_out","uuid":"efc403fbd44751088f26c6942cc3db39","characteristics":[{"uuid":"6375a20d31ae4456aaf68fc84e3cce26","name":null,"type":null,"properties":["read"],"value":"On/Off"},{"uuid":"a97ba6d9c40941188735b5bef87b9afd","name":null,"type":null,"properties":["read","write"],"value":"\u0000"},{"uuid":"93d79faa21ed4ce7b658d9bcb06bd943","name":null,"type":null,"properties":["read"],"value":"-"},{"uuid":"1270fde2fd5e4e4fb866241f105f7b15","name":null,"type":null,"properties":["read"],"value":"\u0001\bYellow LED~5~1"}],"type":null,"createdAt":"2020-07-14T20:32:05.979Z","updatedAt":"2020-07-14T20:32:12.105Z","SubClientId":1521}}],"NodeId":39}],"category":"Display","version":"0.0.1"},{"id":"40","internalFlowId":"40","type":"quantum","selected":false,"x":-224.945,"y":-597.102,"name":"Reset Button","mappingDescription":"No instructions defined!","description":"A button which can turn things on or off.","color":"#02B0EF","qType":"Widget","originalName":"Button","factoryId":null,"properties":{"mappableCategory":{"category":7,"subCategory":1},"multiWidget":false,"manufacturer":"generic"},"ports":[{"id":"8682","internalFlowId":"7472","type":"quantum","selected":false,"name":"f1057905-bb29-4101-86ef-de7c7f305766","in":false,"label":"State","description":"This output is used to send out the state of the button.","qTrigger":null,"defaultValue":null,"properties":{"clientService":{"key":"q_digital_in","name":"Digital In","uuid":"4ae77ff2-1d7c-5100-96d0-50b42a0fc08a","value_len":"1","props":["read","notify"],"propChar":[],"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}}},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}},"index":0,"clients":[{"id":2875,"createdAt":"2020-07-14T21:04:38.230Z","updatedAt":"2020-07-14T21:04:38.230Z","clientId":228,"subClientId":1517,"serviceId":5925,"PortId":8682,"client":{"id":228,"name":"Q #01953","mac_address":"08:6b:d7:49:07:a1","proxy":"02:81:e6:8e:59:ca","state":"OFF","rssi":-57,"batteryLevel":100,"batteryMode":"USB","lifeCycle":false,"manufacturer":"Quantum","category":{"category":null},"advertisement":{"localName":"Q #01953","txPowerLevel":1,"serviceData":[],"serviceUuids":["5155414e54554d430000ffffffffffff"],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]},"energyInformation":{"batteryLevel":"100%","batteryVoltage":"3284mV","deviceVoltage":"3.286V","internalResistance":"0.07","powerTypeNumeric":1,"powerType":"USB"},"createdAt":"2020-07-14T20:24:52.501Z","updatedAt":"2020-07-14T21:01:33.358Z","proxyLinkId":1},"subClient":{"id":1517,"name":"Reset","category":{"category":7,"subCategory":1},"index":5,"createdAt":"2020-07-14T20:32:05.274Z","updatedAt":"2020-07-14T20:32:11.332Z","ClientId":228},"service":{"id":5925,"client_mac_address":null,"name":"State","signalType":"Digital In","serviceKey":"q_digital_in","uuid":"4ae77ff21d7c510496d050b42a0fc08a","characteristics":[{"uuid":"6375a20d31ae4456aaf68fc84e3cce26","name":null,"type":null,"properties":["read"],"value":"State"},{"uuid":"a97ba6d9c40941188735b5bef87b9afd","name":null,"type":null,"properties":["read","notify"],"value":"\u0000"},{"uuid":"93d79faa21ed4ce7b658d9bcb06bd943","name":null,"type":null,"properties":["read"],"value":"-"},{"uuid":"1270fde2fd5e4e4fb866241f105f7b15","name":null,"type":null,"properties":["read"],"value":"\u0001\u0004Reset~7~1"}],"type":null,"createdAt":"2020-07-14T20:32:05.973Z","updatedAt":"2020-07-14T20:32:12.099Z","SubClientId":1517}}],"NodeId":40}],"category":"Input Control","version":"0.0.1"},{"id":"41","internalFlowId":"2c28594c8d","type":"quantum","selected":false,"x":3078.211,"y":298.336,"name":"Incorrect Pattern Sequence","mappingDescription":null,"description":"This Sequencer Returns Digital Inputs in order.","color":"#DE00BC","qType":"Snippet","originalName":"Data Sequence","factoryId":null,"properties":{"executeCode":"//number of out ports\nlet ports = 10;\nlet out = [];\n\nfor(let i = 0; i < ports; i++){\n out.push(new Date());\n}\n\nreturn out;"},"ports":[{"id":"8683","internalFlowId":"9c518d5b-56e8-4588-85f0-307e146e0003","type":"quantum","selected":false,"name":"7eddab85-4f89-4697-96ac-3e6183f87bf6","in":true,"label":"Trigger","description":null,"qTrigger":true,"defaultValue":null,"properties":{"defaultHidden":true},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":0,"clients":[],"NodeId":41},{"id":"8684","internalFlowId":"dedc0940-e510-4eff-a494-6037d67f73d4","type":"quantum","selected":false,"name":"1e29e5ed-d091-44c0-9659-c2a103aff575","in":false,"label":"Trigger 1","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":1,"clients":[],"NodeId":41},{"id":"8685","internalFlowId":"cc750d87-51e5-4424-b973-9e5de781532e","type":"quantum","selected":false,"name":"591ee607-004a-47d5-858e-99efeaea1ae1","in":false,"label":"Trigger 2","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":2,"clients":[],"NodeId":41},{"id":"8686","internalFlowId":"7f4839e9-dc64-47ae-8c38-43d1d9943f36","type":"quantum","selected":false,"name":"8786f6dc-4363-4fc8-a791-69e151567921","in":false,"label":"Trigger 3","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":3,"clients":[],"NodeId":41},{"id":"8687","internalFlowId":"c02b4f70-ee5b-4725-b1f6-e9b29ccc3a59","type":"quantum","selected":false,"name":"1a835260-bae7-4597-844c-5e055721c2b9","in":false,"label":"Trigger 4","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":4,"clients":[],"NodeId":41},{"id":"8688","internalFlowId":"13b7ca8f-d34a-4ab0-8668-7b9b982aa7af","type":"quantum","selected":false,"name":"60a86ec8-6469-47cc-b445-36789acef3af","in":false,"label":"Trigger 5","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":5,"clients":[],"NodeId":41},{"id":"8689","internalFlowId":"3dd58eff-8622-494e-85d8-58817f3bf0f5","type":"quantum","selected":false,"name":"14d22eb4-8dc7-4d53-95a9-c747c45118c7","in":false,"label":"Trigger 6","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":6,"clients":[],"NodeId":41},{"id":"8690","internalFlowId":"8adf1fc0-11fa-48f5-a4dc-77ee93dd874d","type":"quantum","selected":false,"name":"728957a6-f464-40c4-9768-7cdff940fb77","in":false,"label":"Trigger 7","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":7,"clients":[],"NodeId":41},{"id":"8691","internalFlowId":"5deaec9e-3926-45dc-85bb-48d18ec9a79c","type":"quantum","selected":false,"name":"276c9ffd-2709-4dae-b00d-b558af298452","in":false,"label":"Trigger 8","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":8,"clients":[],"NodeId":41},{"id":"8692","internalFlowId":"c3f35eb3-b394-4917-a636-9d105a3f0f4c","type":"quantum","selected":false,"name":"8072a399-f524-41ac-9e48-b5d6e9cf9ff7","in":false,"label":"Trigger 9","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":9,"clients":[],"NodeId":41},{"id":"8693","internalFlowId":"d282b1d4-1993-40fe-8560-ff5002f4a890","type":"quantum","selected":false,"name":"049e6540-b7a7-4133-b89d-ae048e242a55","in":false,"label":"Trigger 10","description":null,"qTrigger":null,"defaultValue":null,"properties":{},"signalType":{"key":"trigger","name":"Trigger","baseType":{"name":"String"}},"index":10,"clients":[],"NodeId":41}],"category":"Data","version":"0.0.1"}],"status":"Stopped","rendering":{"id":"1002","tabs":[{"id":"1108","internalFlowId":"1107","name":"Tab 1","position":0,"groups":[{"id":"1451","internalFlowId":"1450","name":"Group 1","position":0,"gadgets":[{"id":"7686","NodeId":23,"GadgetGroupId":1451,"position":0},{"id":"7687","NodeId":24,"GadgetGroupId":1451,"position":1},{"id":"7688","NodeId":25,"GadgetGroupId":1451,"position":2},{"id":"7689","NodeId":26,"GadgetGroupId":1451,"position":3},{"id":"7690","NodeId":21,"GadgetGroupId":1451,"position":4},{"id":"7691","NodeId":22,"GadgetGroupId":1451,"position":5},{"id":"7692","NodeId":19,"GadgetGroupId":1451,"position":6},{"id":"7693","NodeId":20,"GadgetGroupId":1451,"position":7},{"id":"7694","NodeId":6,"GadgetGroupId":1451,"position":8}]}]}]},"createdAt":"2020-07-13T21:45:39.580Z","errorLog":null,"debugFlag":true,"version":"0.0.1"}
Simon Says Firmware.json
JSON{"id":163,"name":"Simon Says","commit":"1.2.2-development-3917e7e7","lifecycle":false,"signal":[{"disabled":false,"subClientIndex":0,"subClientName":"Reset","subClientCategory":7,"subClientSubCategory":1,"serviceName":"State","service":"q_digital_in","driver":"custom_mcp23017_in","driverValues":{"address":"27","pull_up":0,"port":"'B'","pin":"4"},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}},{"disabled":false,"subClientIndex":1,"subClientName":"Red","subClientCategory":7,"subClientSubCategory":1,"serviceName":"State","service":"q_digital_in","driver":"custom_mcp23017_in","driverValues":{"address":"27","port":"'B'","pin":"0","pull_up":0},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}},{"disabled":false,"subClientIndex":2,"subClientName":"Blue","subClientCategory":7,"subClientSubCategory":1,"serviceName":"State","service":"q_digital_in","driver":"custom_mcp23017_in","driverValues":{"address":"27","port":"'B'","pin":"1","pull_up":0},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}},{"disabled":false,"subClientIndex":3,"subClientName":"Green","subClientCategory":7,"subClientSubCategory":1,"serviceName":"State","service":"q_digital_in","driver":"custom_mcp23017_in","driverValues":{"address":"27","port":"'B'","pin":"2","pull_up":0},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}},{"disabled":false,"subClientIndex":4,"subClientName":"Yellow","subClientCategory":7,"subClientSubCategory":1,"serviceName":"State","service":"q_digital_in","driver":"custom_mcp23017_in","driverValues":{"address":"27","port":"'B'","pin":"3","pull_up":0},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}},{"disabled":false,"subClientIndex":5,"subClientName":"RedLED","subClientCategory":5,"subClientSubCategory":1,"serviceName":"On/Off","service":"q_digital_out","driver":"custom_mcp23017_out","driverValues":{"address":"27","port":"'A'","pin":"0","mode":0},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}},{"disabled":false,"subClientIndex":6,"subClientName":"GreenLED","subClientCategory":5,"subClientSubCategory":1,"serviceName":"On/Off","service":"q_digital_out","driver":"custom_mcp23017_out","driverValues":{"address":"27","port":"'A'","pin":"1","mode":0},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}},{"disabled":false,"subClientIndex":7,"subClientName":"BlueLED","subClientCategory":5,"subClientSubCategory":1,"serviceName":"On/Off","service":"q_digital_out","driver":"custom_mcp23017_out","driverValues":{"address":"27","port":"'A'","pin":"2","mode":0},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}},{"disabled":false,"subClientIndex":8,"subClientName":"YellowLED","subClientCategory":5,"subClientSubCategory":1,"serviceName":"On/Off","service":"q_digital_out","driver":"custom_mcp23017_out","driverValues":{"address":"27","port":"'A'","pin":"3","mode":0},"signalType":{"key":"digital","name":"Digital","baseType":{"name":"Boolean"}}}],"version":"0.0.1"}
Comments