Skip to content

Instantly share code, notes, and snippets.

@gorenje
Last active November 12, 2024 17:05
Show Gist options
  • Save gorenje/456b94b04fcce9355bcad0751fc6bd48 to your computer and use it in GitHub Desktop.
Save gorenje/456b94b04fcce9355bcad0751fc6bd48 to your computer and use it in GitHub Desktop.
Example of Node-RED flow embeded in a page
[{"id":"be2109bba90b6c5a","type":"tab","label":"[I2C] Scroll pHAT","disabled":false,"info":"::: aim\n\nTo control a [Scroll pHAT](https://github.com/pimoroni/scroll-phat) board from [Pimoroni](https://learn.pimoroni.com/). The idea is to use the [i2c bus](https://en.wikipedia.org/wiki/I%C2%B2C) to control the board.\n\nThe Scroll pHAT board being used is the simplest 5 by 11 LED with a single brightness setting for all pixels.\n\n:::\n\n::: palette\n\n- [node-red-contrib-i2c](https://flows.nodered.org/node/node-red-contrib-i2c)\n- [node-red-dashboard](https://flows.nodered.org/node/node-red-dashboard)\n\n:::\n\n### Requirements\n\nThere are several descriptions on setting up the i2c bus on a Raspberry Pi:\n\n- [i2c-bus documentation ay i2c-bus package](https://github.com/fivdi/i2c-bus/blob/master/doc/raspberry-pi-i2c.md)\n- [the install script for the Scroll pHAT](https://get.pimoroni.com/scrollphat) was helpful\n\nI used a Raspberry Pi Model 4 for doing this, your mileage might vary.\n\n### Background\n\nThe details of the device can be obtained from the [driver](https://github.com/pimoroni/scroll-phat/blob/5a0a47f6e4faac649d89054135baa542889ff3fa/library/scrollphat/IS31FL3730.py#L5-L8) code:\n\n```\nself.I2C_ADDR = 0x60\nself.CMD_SET_MODE = 0x00\nself.CMD_SET_BRIGHTNESS = 0x19\nself.MODE_5X11 = 0b00000011\n```\n\nAnd this [line](https://github.com/pimoroni/scroll-phat/blob/5a0a47f6e4faac649d89054135baa542889ff3fa/library/scrollphat/IS31FL3730.py#L55) that gives the cmd (i.e., 0x01) for setting the pixels:\n\n```\nself.bus.write_i2c_block_data(self.i2cConstants.I2C_ADDR, 0x01, self.window)\n```\n\nAlso each update of the pixels needs to end with [0xff](https://github.com/pimoroni/scroll-phat/blob/5a0a47f6e4faac649d89054135baa542889ff3fa/library/scrollphat/IS31FL3730.py#L52). \n\nSince the device has no state, every update of the pixels needs to update all pixels. This then becomes an array of 11 columns plus 0xff as terminator, meaning that each update must be an array of [12 bytes](https://github.com/pimoroni/scroll-phat/blob/5a0a47f6e4faac649d89054135baa542889ff3fa/library/scrollphat/IS31FL3730.py#L55).\n\nA column can be represented by an array of five entries, one each for the row. These are converted to a byte value using their binary representation:\n\n```\nrow1 - off\nrow2 - on\nrow3 - off\nrow4 - on\nrow5 - off\n ==> - 0b01010 ==> 10 \n```\n\nThis means that an array of:\n\n```\n[10,10,10,10,10, 10,10,10,10,10, 10, 255]\n```\n\nwould light up rows two and four (with 255 being the 0xff terminator).\n\n### Flow explanation\n\nThe mode (which has to be 3) can be set with <a class=\"ahl-group-only\" data-ids=\"d652d4252503fe67\">the mode group</a> and the brightness (anything above zero) can be set <a class=\"ahl-group-only\" data-ids=\"03592b0b9f23f3d8\">with this group</a>.\n\nThe <a class=\"ahl-group-only\" data-ids=\"b1e519b5af689236\">reset group</a> can be used to turn all leds on or off.\n\nThere is a dashboard for toggling each led on or off and this dashboard is defined by the <a class=\"ahl-group-only\" data-ids=\"1402586a30f105d0\">toggle switch group</a> that is order as the LEDs on the Scroll pHAT.\n\nThe <a class=\"ahl-group-only\" data-ids=\"ab64c81acf44871f\">logic group</a> does a number of things:\n\n- ignore the messages that reset the board (<a class=\"ahl-node-only\" data-ids=\"d0dfd5c2bb23a4c1\">switch</a>)\n- convert the `topic` that contains the location of the toggle to column and row values (<a class=\"ahl-node-only\" data-ids=\"cac24f6fc0bd7d29\">change node</a>)\n- buffer multiple messages into a single array of updates. This prevents sending too many updates to the device but adds an delay of a second to the display update (<a class=\"ahl-node-only\" data-ids=\"66af8b2471b1bd15\">join node</a>)\n- compute the current board configuration and store the state into the flow, create an array of the i2c bus. (<a class=\"ahl-node-only\" data-ids=\"db160558b9740bd7\">function node</a>)\n\nTwo other groups provide API support so that this flow can be used by other flows:\n\n- <a class=\"ahl-group-only\" data-ids=\"2cef1b81382b8789\">Individualisation</a> group provides the logic to toggle single pixels.\n- <a class=\"ahl-group-only\" data-ids=\"4fc569799f29c7b7\">API group</a> provides a simple API inferface upon which other flows may use to interact with the LED board.\n\n### Dashboard\n\nA dashboard page is created which allows updating each pixel individually:\n\n![img](https://cdn.openmindmap.org/content/1691866427961_Screen_Shot_2023-08-12_at_20.53.31.png)\n\nThe end result of that is\n\n![img](https://cdn.openmindmap.org/content/1691327462428_signal-2023-08-06-145626_002.jpeg)\n\n### Related flows\n\n- <a href=\"https://flowhub.org/f/49221ed0e76e27c3\">Flow providing a Swagger</a> defined API for this flow.\n\n- <a href=\"https://flowhub.org/f/81d46dabe68094e4\">Flow for doing a ticker</a> with the Scroll pHAT.\n\n","env":[]},{"id":"03589edea68a6797","type":"group","z":"be2109bba90b6c5a","name":"Dashboard controlling individual pixels","style":{"label":true},"nodes":["44155e73989ee6cd","a8d4ef53a109f115","de7062b5dfd47cd0","dcc8d33b0b47c2ca","a13498ab11e6218d","80938dc13211e851","cf3e11edefe7d9ee","a4de349e02676964","acbfc402445acb9e","802a96d19ac23855","748b561ba0ca4c10","7694ed83652eb797","b1e519b5af689236","1402586a30f105d0","ab64c81acf44871f"],"x":301.92866401672404,"y":701.5000267028809,"w":2892.214253616333,"h":378.0556640625},{"id":"d652d4252503fe67","type":"group","z":"be2109bba90b6c5a","name":"mode must be 3","style":{"label":true},"nodes":["cc3d51d76f7179f1","bfcc911c0fb1f030","3f86b15127dfcb42","228a0977a6c5031f","6b92d7b66993f06c","1e4f2a41918e023e","f93c334edfe2ffb2","e331b9804652a86d","e808a9451f2f8e36","2db3fca5e3af2279"],"x":1443.8333740234375,"y":1208.6666259765625,"w":424,"h":481},{"id":"03592b0b9f23f3d8","type":"group","z":"be2109bba90b6c5a","name":"Brightness","style":{"label":true},"nodes":["2d6b51ae2231889d","e84dc01b9e4d4583","a92c79d1ef56cdf8","bf0385aaa167f577","8acc8eab0abb2d2c","5de2c7b3712c14b6","ee01a68518cce3b7","9f6bdbda0d6b9833","380ea4841daf85ea","d5f27d69158167cf","98a8dfa9d66cde90","47d68fab21bf370c","968a87e4b855d9ab","d9be5e8bea2144c6","b4401ff552bec0fd","11a23ab34c272233","19500d61ccefd6a8","3b7c2e4be2d7b91d","f42ac867e85cd20c","b94ebeeb90f68ef4","6dab38218d76c104","523df64899ef2e8a"],"x":724.3333129882812,"y":1144.8333740234375,"w":646.5,"h":590},{"id":"2cef1b81382b8789","type":"group","z":"be2109bba90b6c5a","name":"allow individual pixels to be toggled","style":{"label":true},"nodes":["5423d73f8c0f3fef","781890eada304959","cb499d7b79da3f60","d81ddab64b5e6d34","35329fa8ae082626","1ec5d5d215a414d1","3bcafb159f5e7bc4","5e652ba03665caed","1513a3803d097d27","499868492eaf13c2","2ced6af3ed9bf2a3","57360677515f28ee"],"x":300,"y":323.5,"w":1715,"h":263},{"id":"4fc569799f29c7b7","type":"group","z":"be2109bba90b6c5a","name":"APIs","style":{"label":true},"nodes":["b6db635a0b4a4bfc","259bf8083e21a786","b1a6d68cec9a6f89","53d3662bddce099d"],"x":156,"y":505,"w":82,"h":737},{"id":"06c55c40af591ce0","type":"group","z":"be2109bba90b6c5a","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["419388e924718f03","5fa26c6d814e8fea","3d25aa66aea872db","304bb8671c4b4b7b","01221b71c7c9ad38","6a896b3232c9d147"],"x":365.4167175292969,"y":1354.1666259765625,"w":275.75,"h":194.5},{"id":"b1e519b5af689236","type":"group","z":"be2109bba90b6c5a","g":"03589edea68a6797","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["42928dde21adec92","9345e57d14746ff1","eb0de226b1c4f675","548ce2e6b510128f"],"x":327.92866401672404,"y":780.9284973144531,"w":172,"h":236.07152938842773},{"id":"1402586a30f105d0","type":"group","z":"be2109bba90b6c5a","g":"03589edea68a6797","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["1caa133a21df33f9","3a635e4d0e9a583b","19e1a5013bb34d16","662c4069d1239711","9f891367693bcf8e","76fd6c01ef8fe8fa","04cbd53d0fb77a48","67086e8cf8eb3f63","5b116a11980652c5","f6c05888624a9c40","ae0f23ca013db581","31c6b39eb2dd59bc","54b4753cc69d0bac","53130ad59081df7e","256a9c2b66c23512","4d29f7da14560867","43e413e9569b6ebf","4e4ef6544db88000","59ca3cdd20e1a8a8","48a534615e517101","864cdd9958a1acb3","7988590e8d60fff4","5108fea3f9330ce8","8aff1bc45750b65c","c71ccfbe046214d1","7e83f99b0fd949ac","b9315e45ae6af7a2","9e55653e13700f05","558297730485b28d","43fca37eddc59a08","2e787a317d14fbc2","e8414e26576a6aaf","3b347be872172247","802d773c635b7fd4","2a526cf008a759bc","34f63c7e4151c853","a79a77eba0f99c93","18fc96b752b5bbc4","52c088f46820c014","6a26450d96622ff1","eb8475ba13b1f210","8103f2155eee6a44","55f8b4d3b68e1d91","adec7bd4d9059fd7","4a1f7041b805fd8b","df9bcb72264c3fee","42f777405f2177db","67e5cd0758028c08","3b93b3125bdf3b57","9b50a4e2e34ecbc3","30dc24db56cd2c53","cefe1fe6f71139a7","1345732abc939fbe","4a923822672d36d5","8f78cef9ec527d6f"],"x":803.6428310394292,"y":739.5000267028809,"w":1377.714237213135,"h":309.0277786254883},{"id":"ab64c81acf44871f","type":"group","z":"be2109bba90b6c5a","g":"03589edea68a6797","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["66af8b2471b1bd15","cac24f6fc0bd7d29","db160558b9740bd7","d0dfd5c2bb23a4c1","64fe2177a64e0d73"],"x":2501.50001411438,"y":727.5000267028809,"w":503,"h":326.0556640625},{"id":"a8d4ef53a109f115","type":"junction","z":"be2109bba90b6c5a","g":"03589edea68a6797","x":2321.550926554203,"y":780.1015973091125,"wires":[["64fe2177a64e0d73"]]},{"id":"de7062b5dfd47cd0","type":"junction","z":"be2109bba90b6c5a","g":"03589edea68a6797","x":2321.550926554203,"y":838.347650885582,"wires":[["64fe2177a64e0d73"]]},{"id":"dcc8d33b0b47c2ca","type":"junction","z":"be2109bba90b6c5a","g":"03589edea68a6797","x":736.7950268864636,"y":779.1851980686188,"wires":[["1caa133a21df33f9","3a635e4d0e9a583b","19e1a5013bb34d16","662c4069d1239711","9f891367693bcf8e","76fd6c01ef8fe8fa","04cbd53d0fb77a48","67086e8cf8eb3f63","5b116a11980652c5","f6c05888624a9c40","ae0f23ca013db581"]]},{"id":"a13498ab11e6218d","type":"junction","z":"be2109bba90b6c5a","g":"03589edea68a6797","x":736.7950268864636,"y":899.4622492790222,"wires":[["5108fea3f9330ce8","b9315e45ae6af7a2","2e787a317d14fbc2","8aff1bc45750b65c","9e55653e13700f05","e8414e26576a6aaf","c71ccfbe046214d1","558297730485b28d","3b347be872172247","7e83f99b0fd949ac","43fca37eddc59a08"]]},{"id":"80938dc13211e851","type":"junction","z":"be2109bba90b6c5a","g":"03589edea68a6797","x":736.7950268864636,"y":837.7476006746292,"wires":[["31c6b39eb2dd59bc","54b4753cc69d0bac","53130ad59081df7e","256a9c2b66c23512","4d29f7da14560867","43e413e9569b6ebf","4e4ef6544db88000","59ca3cdd20e1a8a8","48a534615e517101","864cdd9958a1acb3","7988590e8d60fff4"]]},{"id":"cf3e11edefe7d9ee","type":"junction","z":"be2109bba90b6c5a","g":"03589edea68a6797","x":552.071518979754,"y":898.8572305951798,"wires":[["dcc8d33b0b47c2ca","80938dc13211e851","a13498ab11e6218d","a4de349e02676964","acbfc402445acb9e"]]},{"id":"a4de349e02676964","type":"junction","z":"be2109bba90b6c5a","g":"03589edea68a6797","x":736.7950268864636,"y":955.9375718832016,"wires":[["802d773c635b7fd4","34f63c7e4151c853","18fc96b752b5bbc4","6a26450d96622ff1","8103f2155eee6a44","2a526cf008a759bc","a79a77eba0f99c93","52c088f46820c014","eb8475ba13b1f210","55f8b4d3b68e1d91","adec7bd4d9059fd7"]]},{"id":"acbfc402445acb9e","type":"junction","z":"be2109bba90b6c5a","g":"03589edea68a6797","x":736.7950268864636,"y":1009.1245166063309,"wires":[["4a1f7041b805fd8b","3b93b3125bdf3b57","df9bcb72264c3fee","9b50a4e2e34ecbc3","1345732abc939fbe","42f777405f2177db","30dc24db56cd2c53","4a923822672d36d5","67e5cd0758028c08","cefe1fe6f71139a7","8f78cef9ec527d6f"]]},{"id":"802a96d19ac23855","type":"junction","z":"be2109bba90b6c5a","g":"03589edea68a6797","x":2321.550926554203,"y":898.9296153783798,"wires":[["64fe2177a64e0d73"]]},{"id":"64fe2177a64e0d73","type":"junction","z":"be2109bba90b6c5a","g":"ab64c81acf44871f","x":2535.0305500507357,"y":897.2857151031494,"wires":[["d0dfd5c2bb23a4c1"]]},{"id":"748b561ba0ca4c10","type":"junction","z":"be2109bba90b6c5a","g":"03589edea68a6797","x":2321.550926554203,"y":954.3173048496246,"wires":[["64fe2177a64e0d73"]]},{"id":"7694ed83652eb797","type":"junction","z":"be2109bba90b6c5a","g":"03589edea68a6797","x":2321.550926554203,"y":1006.8226735591888,"wires":[["64fe2177a64e0d73"]]},{"id":"46128c98520b39bb","type":"ui_spacer","z":"be2109bba90b6c5a","name":"spacer","group":"afbdfc413e8cce91","order":49,"width":7,"height":1},{"id":"afbdfc413e8cce91","type":"ui_group","name":"Scroll pHAT Display","tab":"993bd221027b291c","order":1,"disp":true,"width":"11","collapse":false,"className":""},{"id":"993bd221027b291c","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false},{"id":"12d1091e796bd522","type":"ui_base","theme":{"name":"theme-light","lightTheme":{"default":"#0094CE","baseColor":"#0094CE","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":false},"darkTheme":{"default":"#097479","baseColor":"#097479","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":false},"customTheme":{"name":"Untitled Theme 1","default":"#4B7930","baseColor":"#4B7930","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"},"themeState":{"base-color":{"default":"#0094CE","value":"#0094CE","edited":false},"page-titlebar-backgroundColor":{"value":"#0094CE","edited":false},"page-backgroundColor":{"value":"#fafafa","edited":false},"page-sidebar-backgroundColor":{"value":"#ffffff","edited":false},"group-textColor":{"value":"#1bbfff","edited":false},"group-borderColor":{"value":"#ffffff","edited":false},"group-backgroundColor":{"value":"#ffffff","edited":false},"widget-textColor":{"value":"#111111","edited":false},"widget-backgroundColor":{"value":"#0094ce","edited":false},"widget-borderColor":{"value":"#ffffff","edited":false},"base-font":{"value":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"}},"angularTheme":{"primary":"indigo","accents":"blue","warn":"red","background":"grey","palette":"light"}},"site":{"name":"Node-RED Dashboard","hideToolbar":"false","allowSwipe":"false","lockMenu":"false","allowTempTheme":"true","dateFormat":"DD/MM/YYYY","sizes":{"sx":48,"sy":48,"gx":6,"gy":6,"cx":6,"cy":6,"px":0,"py":0}}},{"id":"0928b48a68410fc7","type":"FlowCompareCfg","name":"FlowCompare","data":"some default value"},{"id":"2bf92932ba05f42d","type":"NodeFactorySidebarCfg","pkgname":"node-red-dashboard","pkgversion":"latest","otptype":"totp","algorithm":"SHA1","secret":"OTP_SECRET","secretType":"env","issuer":"","otplabel":"","digits":6,"counter":0,"period":30},{"id":"94856ee5faeb1cee","type":"Flow2MermaidCfg","name":"Flow2Uml","direction":"TB","genmereditor":""},{"id":"982a139571e1dd53","type":"AdressBookCfg","name":"AdressBook","data":"some default value"},{"id":"5af8513dcca42d56","type":"auto_layout_config","name":"AutoLayout","algorithm":"dagre_lr","settings":"{\"dagre_lr\":{\"rankdir\":\"LR\",\"marginx\":20,\"marginy\":20,\"nodesep\":30,\"ranksep\":50},\"dagre_longest_path\":{\"rankdir\":\"LR\",\"marginx\":2,\"marginy\":2,\"ranker\":\"longest-path\",\"nodesep\":2,\"ranksep\":2},\"elkjs_mr_tree\":{\"algorithm\":\"mrtree\",\"childAreaHeight\":4500,\"childAreaWidth\":4500,\"org.eclipse.elk.direction\":\"RIGHT\"},\"elkjs_layered_upwards\":{\"algorithm\":\"org.eclipse.elk.layered\",\"elk.direction\":\"UP\",\"cycleBreaking.strategy\":\"INTERACTIVE\",\"layering.strategy\":\"INTERACTIVE\",\"crossingMinimization.semiInteractive\":true,\"separateConnectedComponents\":true,\"nodePlacement.strategy\":\"NETWORK_SIMPLEX\",\"spacing.nodeNode\":70,\"spacing.nodeNodeBetweenLayers\":25,\"spacing.edgeNode\":25,\"spacing.edgeNodeBetweenLayers\":20,\"spacing.edgeEdge\":20,\"spacing.edgeEdgeBetweenLayers\":15,\"elk.hierarchyHandling\":\"INCLUDE_CHILDREN\",\"elk.layered.spacing.edgeNodeBetweenLayers\":40,\"elk.layered.nodePlacement.bk.fixedAlignment\":\"BALANCED\",\"layering.layerConstraint\":\"FIRST\"},\"elkjs_layered_downwards\":{\"algorithm\":\"org.eclipse.elk.layered\",\"elk.direction\":\"DOWN\",\"cycleBreaking.strategy\":\"INTERACTIVE\",\"layering.strategy\":\"INTERACTIVE\",\"crossingMinimization.semiInteractive\":true,\"separateConnectedComponents\":true,\"nodePlacement.strategy\":\"NETWORK_SIMPLEX\",\"spacing.nodeNode\":70,\"spacing.nodeNodeBetweenLayers\":25,\"spacing.edgeNode\":25,\"spacing.edgeNodeBetweenLayers\":20,\"spacing.edgeEdge\":20,\"spacing.edgeEdgeBetweenLayers\":15},\"elkjs_box\":{\"algorithm\":\"org.eclipse.elk.box\",\"childAreaHeight\":3000,\"childAreaWidth\":3000},\"pull_request_2267\":{}}"},{"id":"b656ef2ec8e7bcde","type":"ScratchPadCfg","name":"ScratchPad","scratches":[]},{"id":"63f0b681056a1807","type":"FlowHubCfg","apiToken":"","apiTokenType":"","fullname":"","email":"","flowid":"","flowrevision":"","notab":false,"pushcomment":"","pushnewflows":false,"forcepush":false,"tokens":[],"flowrevisions":{}},{"id":"cc3d51d76f7179f1","type":"i2c out","z":"be2109bba90b6c5a","g":"d652d4252503fe67","name":"mode","busno":"1","address":"96","command":"0","payload":"payload","payloadType":"msg","count":"1","x":1791.8333740234375,"y":1449.6666259765625,"wires":[[]]},{"id":"bfcc911c0fb1f030","type":"inject","z":"be2109bba90b6c5a","g":"d652d4252503fe67","name":"1","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":1539.8333740234375,"y":1299.5416259765625,"wires":[["cc3d51d76f7179f1"]]},{"id":"3f86b15127dfcb42","type":"inject","z":"be2109bba90b6c5a","g":"d652d4252503fe67","name":"2","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"2","payloadType":"num","x":1539.8333740234375,"y":1349.4166259765625,"wires":[["cc3d51d76f7179f1"]]},{"id":"228a0977a6c5031f","type":"inject","z":"be2109bba90b6c5a","g":"d652d4252503fe67","name":"0","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":1539.8333740234375,"y":1249.6666259765625,"wires":[["cc3d51d76f7179f1"]]},{"id":"6b92d7b66993f06c","type":"inject","z":"be2109bba90b6c5a","g":"d652d4252503fe67","name":"3","props":[{"p":"payload"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"3","payloadType":"num","x":1539.8333740234375,"y":1399.2916259765625,"wires":[["cc3d51d76f7179f1"]]},{"id":"1e4f2a41918e023e","type":"inject","z":"be2109bba90b6c5a","g":"d652d4252503fe67","name":"4","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"4","payloadType":"num","x":1539.8333740234375,"y":1449.1666259765625,"wires":[["cc3d51d76f7179f1"]]},{"id":"f93c334edfe2ffb2","type":"inject","z":"be2109bba90b6c5a","g":"d652d4252503fe67","name":"5","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"5","payloadType":"num","x":1539.8333740234375,"y":1499.0416259765625,"wires":[["cc3d51d76f7179f1"]]},{"id":"e331b9804652a86d","type":"inject","z":"be2109bba90b6c5a","g":"d652d4252503fe67","name":"6","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"6","payloadType":"num","x":1539.8333740234375,"y":1548.9166259765625,"wires":[["cc3d51d76f7179f1"]]},{"id":"e808a9451f2f8e36","type":"inject","z":"be2109bba90b6c5a","g":"d652d4252503fe67","name":"7","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"7","payloadType":"num","x":1539.8333740234375,"y":1598.7916259765625,"wires":[["cc3d51d76f7179f1"]]},{"id":"2db3fca5e3af2279","type":"inject","z":"be2109bba90b6c5a","g":"d652d4252503fe67","name":"8","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"8","payloadType":"num","x":1539.8333740234375,"y":1648.6666259765625,"wires":[["cc3d51d76f7179f1"]]},{"id":"44155e73989ee6cd","type":"i2c out","z":"be2109bba90b6c5a","g":"03589edea68a6797","name":"pixel","busno":"1","address":"96","command":"1","payload":"payload","payloadType":"msg","count":"12","x":3118.1429176330566,"y":886.0000133514404,"wires":[[]]},{"id":"1caa133a21df33f9","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":1,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c1r1","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":879.6428310394292,"y":780.5000267028809,"wires":[["a8d4ef53a109f115"]]},{"id":"3a635e4d0e9a583b","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":2,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c2r1","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1002.2142547607427,"y":780.5000267028809,"wires":[["a8d4ef53a109f115"]]},{"id":"19e1a5013bb34d16","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":3,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c3r1","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1124.7856784820563,"y":780.5000267028809,"wires":[["a8d4ef53a109f115"]]},{"id":"662c4069d1239711","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":4,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c4r1","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1247.3571022033698,"y":780.5000267028809,"wires":[["a8d4ef53a109f115"]]},{"id":"9f891367693bcf8e","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":5,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c5r1","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1369.9285259246833,"y":780.5000267028809,"wires":[["a8d4ef53a109f115"]]},{"id":"76fd6c01ef8fe8fa","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":6,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c6r1","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1492.4999496459968,"y":780.5000267028809,"wires":[["a8d4ef53a109f115"]]},{"id":"04cbd53d0fb77a48","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":7,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c7r1","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1615.0713733673103,"y":780.5000267028809,"wires":[["a8d4ef53a109f115"]]},{"id":"67086e8cf8eb3f63","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":8,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c8r1","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1737.6427970886236,"y":780.5000267028809,"wires":[["a8d4ef53a109f115"]]},{"id":"5b116a11980652c5","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":9,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c9r1","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1860.214220809937,"y":780.5000267028809,"wires":[["a8d4ef53a109f115"]]},{"id":"f6c05888624a9c40","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":10,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c10r1","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1982.78564453125,"y":780.5000267028809,"wires":[["a8d4ef53a109f115"]]},{"id":"ae0f23ca013db581","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":11,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c11r1","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":2105.357068252564,"y":780.5000267028809,"wires":[["a8d4ef53a109f115"]]},{"id":"31c6b39eb2dd59bc","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":12,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c1r2","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":879.6428310394292,"y":839.0715599060059,"wires":[["de7062b5dfd47cd0"]]},{"id":"54b4753cc69d0bac","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":13,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c2r2","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1002.2142547607427,"y":839.0715599060059,"wires":[["de7062b5dfd47cd0"]]},{"id":"53130ad59081df7e","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":14,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c3r2","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1124.7856784820563,"y":839.0715599060059,"wires":[["de7062b5dfd47cd0"]]},{"id":"256a9c2b66c23512","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":15,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c4r2","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1247.3571022033698,"y":839.0715599060059,"wires":[["de7062b5dfd47cd0"]]},{"id":"4d29f7da14560867","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":16,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c5r2","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1369.9285259246833,"y":839.0715599060059,"wires":[["de7062b5dfd47cd0"]]},{"id":"43e413e9569b6ebf","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":17,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c6r2","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1492.4999496459968,"y":839.0715599060059,"wires":[["de7062b5dfd47cd0"]]},{"id":"4e4ef6544db88000","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":18,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c7r2","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1615.0713733673103,"y":839.0715599060059,"wires":[["de7062b5dfd47cd0"]]},{"id":"59ca3cdd20e1a8a8","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":19,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c8r2","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1737.6427970886236,"y":839.0715599060059,"wires":[["de7062b5dfd47cd0"]]},{"id":"48a534615e517101","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":20,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c9r2","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1860.214220809937,"y":839.0715599060059,"wires":[["de7062b5dfd47cd0"]]},{"id":"864cdd9958a1acb3","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":21,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c10r2","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1982.78564453125,"y":839.0715599060059,"wires":[["de7062b5dfd47cd0"]]},{"id":"7988590e8d60fff4","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":22,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c11r2","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":2105.357068252564,"y":839.0715599060059,"wires":[["de7062b5dfd47cd0"]]},{"id":"42928dde21adec92","type":"inject","z":"be2109bba90b6c5a","g":"b1e519b5af689236","name":"all off","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":423.92866401672404,"y":821.9284973144531,"wires":[["548ce2e6b510128f"]]},{"id":"5108fea3f9330ce8","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":23,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c1r3","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":879.6428310394292,"y":900.71435546875,"wires":[["802a96d19ac23855"]]},{"id":"8aff1bc45750b65c","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":26,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c4r3","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1247.3571022033698,"y":900.71435546875,"wires":[["802a96d19ac23855"]]},{"id":"c71ccfbe046214d1","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":29,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c7r3","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1615.0713733673103,"y":900.71435546875,"wires":[["802a96d19ac23855"]]},{"id":"7e83f99b0fd949ac","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":32,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c10r3","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1982.78564453125,"y":900.71435546875,"wires":[["802a96d19ac23855"]]},{"id":"b9315e45ae6af7a2","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":24,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c2r3","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1002.2142547607427,"y":900.71435546875,"wires":[["802a96d19ac23855"]]},{"id":"9e55653e13700f05","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":27,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c5r3","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1369.9285259246833,"y":900.71435546875,"wires":[["802a96d19ac23855"]]},{"id":"558297730485b28d","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":30,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c8r3","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1737.6427970886236,"y":900.71435546875,"wires":[["802a96d19ac23855"]]},{"id":"43fca37eddc59a08","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":33,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c11r3","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":2105.357068252564,"y":900.71435546875,"wires":[["802a96d19ac23855"]]},{"id":"2e787a317d14fbc2","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":25,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c3r3","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1124.7856784820563,"y":900.71435546875,"wires":[["802a96d19ac23855"]]},{"id":"e8414e26576a6aaf","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":28,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c6r3","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1492.4999496459968,"y":900.71435546875,"wires":[["802a96d19ac23855"]]},{"id":"3b347be872172247","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":31,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c9r3","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1860.214220809937,"y":900.71435546875,"wires":[["802a96d19ac23855"]]},{"id":"9345e57d14746ff1","type":"inject","z":"be2109bba90b6c5a","g":"b1e519b5af689236","name":"all on","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":423.92866401672404,"y":976.0000267028809,"wires":[["eb0de226b1c4f675"]]},{"id":"802d773c635b7fd4","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":34,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c1r4","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":879.6428310394292,"y":955.5718040466309,"wires":[["748b561ba0ca4c10"]]},{"id":"2a526cf008a759bc","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":39,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c6r4","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1492.4999496459968,"y":955.5718040466309,"wires":[["748b561ba0ca4c10"]]},{"id":"34f63c7e4151c853","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":35,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c2r4","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1002.2142547607427,"y":955.5718040466309,"wires":[["748b561ba0ca4c10"]]},{"id":"a79a77eba0f99c93","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":40,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c7r4","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1615.0713733673103,"y":955.5718040466309,"wires":[["748b561ba0ca4c10"]]},{"id":"18fc96b752b5bbc4","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":36,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c3r4","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1124.7856784820563,"y":955.5718040466309,"wires":[["748b561ba0ca4c10"]]},{"id":"52c088f46820c014","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":41,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c8r4","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1737.6427970886236,"y":955.5718040466309,"wires":[["748b561ba0ca4c10"]]},{"id":"6a26450d96622ff1","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":37,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c4r4","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1247.3571022033698,"y":955.5718040466309,"wires":[["748b561ba0ca4c10"]]},{"id":"eb8475ba13b1f210","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":42,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c9r4","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1860.214220809937,"y":955.5718040466309,"wires":[["748b561ba0ca4c10"]]},{"id":"8103f2155eee6a44","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":38,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c5r4","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1369.9285259246833,"y":955.5718040466309,"wires":[["748b561ba0ca4c10"]]},{"id":"55f8b4d3b68e1d91","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":43,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c10r4","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1982.78564453125,"y":955.5718040466309,"wires":[["748b561ba0ca4c10"]]},{"id":"adec7bd4d9059fd7","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":44,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c11r4","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":2105.357068252564,"y":955.5718040466309,"wires":[["748b561ba0ca4c10"]]},{"id":"4a1f7041b805fd8b","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":45,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c1r5","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":879.6428310394292,"y":1007.5278053283691,"wires":[["7694ed83652eb797"]]},{"id":"df9bcb72264c3fee","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":46,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c3r5","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1124.7856784820563,"y":1007.5278053283691,"wires":[["7694ed83652eb797"]]},{"id":"42f777405f2177db","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":47,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c6r5","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1492.4999496459968,"y":1007.5278053283691,"wires":[["7694ed83652eb797"]]},{"id":"67e5cd0758028c08","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":48,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c9r5","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1860.214220809937,"y":1007.5278053283691,"wires":[["7694ed83652eb797"]]},{"id":"3b93b3125bdf3b57","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":45,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c2r5","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1002.2142547607427,"y":1007.5278053283691,"wires":[["7694ed83652eb797"]]},{"id":"9b50a4e2e34ecbc3","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":46,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c4r5","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1247.3571022033698,"y":1007.5278053283691,"wires":[["7694ed83652eb797"]]},{"id":"30dc24db56cd2c53","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":47,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c7r5","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1615.0713733673103,"y":1007.5278053283691,"wires":[["7694ed83652eb797"]]},{"id":"cefe1fe6f71139a7","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":48,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c10r5","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1982.78564453125,"y":1007.5278053283691,"wires":[["7694ed83652eb797"]]},{"id":"1345732abc939fbe","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":46,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c5r5","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1369.9285259246833,"y":1007.5278053283691,"wires":[["7694ed83652eb797"]]},{"id":"4a923822672d36d5","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":47,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c8r5","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":1737.6427970886236,"y":1007.5278053283691,"wires":[["7694ed83652eb797"]]},{"id":"8f78cef9ec527d6f","type":"ui_switch","z":"be2109bba90b6c5a","g":"1402586a30f105d0","name":"","label":"","tooltip":"","group":"afbdfc413e8cce91","order":48,"width":1,"height":1,"passthru":true,"decouple":"false","topic":"c11r5","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":2105.357068252564,"y":1007.5278053283691,"wires":[["7694ed83652eb797"]]},{"id":"66af8b2471b1bd15","type":"join","z":"be2109bba90b6c5a","g":"ab64c81acf44871f","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"1","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":2757.00782661438,"y":911.6822776794434,"wires":[["db160558b9740bd7"]]},{"id":"cac24f6fc0bd7d29","type":"change","z":"be2109bba90b6c5a","g":"ab64c81acf44871f","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t \"val\": $$.payload,\t \"key\": $$.topic,\t \"col\": $parseInteger($replace($replace($$.topic,/c/,''),/r.+$/,''), \"99\"),\t \"row\": $parseInteger($replace($replace($$.topic,/c[0-9]+/,''),/r/,''), \"99\")\t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":2679.92872505188,"y":839.7142601013184,"wires":[["66af8b2471b1bd15"]]},{"id":"db160558b9740bd7","type":"function","z":"be2109bba90b6c5a","g":"ab64c81acf44871f","name":"prepare data and store \\n state into the flow context","func":"/* Pixels are columns first:\n [ c1, c2, c3 .... c11, 255 ]\nwhere each 'c' is an array of 5 values representing the rows.\n*/\n\nvar pixels = flow.get(\"pixels\") || [1,2,3,4,5,6,7,8,9,10,11].map(function (d) { return new Array(0,0,0,0,0) })\n\nfor ( var idx = 0 ; idx < msg.payload.length ; idx++ ) {\n var p = msg.payload[idx];\n pixels[p.col-1][5-p.row] = p.val ? 1 : 0;\n}\n\nflow.set('pixels', pixels);\n\nmsg.payload = [...pixels.map( (vals) => {\n return eval(\"0b\" + vals.join(\"\"))\n}), 255];\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":2868.50001411438,"y":1000.5556907653809,"wires":[["44155e73989ee6cd"]]},{"id":"d0dfd5c2bb23a4c1","type":"switch","z":"be2109bba90b6c5a","g":"ab64c81acf44871f","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"reset","vt":"str"},{"t":"else"}],"checkall":"false","repair":false,"outputs":2,"x":2577.50001411438,"y":768.5000267028809,"wires":[[],["cac24f6fc0bd7d29"]]},{"id":"2d6b51ae2231889d","type":"i2c out","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"brightness","busno":"1","address":"96","command":"25","payload":"payload","payloadType":"msg","count":"1","x":1094.3333129882812,"y":1445.8333740234375,"wires":[[]]},{"id":"e84dc01b9e4d4583","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"1","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":820.3333129882812,"y":1268.4583740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"a92c79d1ef56cdf8","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"2","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"2","payloadType":"num","x":820.3333129882812,"y":1327.0833740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"bf0385aaa167f577","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"0","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":820.3333129882812,"y":1209.8333740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"8acc8eab0abb2d2c","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"3","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"3","payloadType":"num","x":820.3333129882812,"y":1385.7083740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"5de2c7b3712c14b6","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"4","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"4","payloadType":"num","x":820.3333129882812,"y":1444.3333740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"ee01a68518cce3b7","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"5","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"5","payloadType":"num","x":820.3333129882812,"y":1502.9583740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"9f6bdbda0d6b9833","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"6","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"6","payloadType":"num","x":820.3333129882812,"y":1561.5833740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"380ea4841daf85ea","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"7","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"7","payloadType":"num","x":820.3333129882812,"y":1620.2083740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"d5f27d69158167cf","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"8","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"8","payloadType":"num","x":820.3333129882812,"y":1678.8333740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"98a8dfa9d66cde90","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"9","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"9","payloadType":"num","x":980.8333129882812,"y":1693.8333740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"47d68fab21bf370c","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"10","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"10","payloadType":"num","x":1090.8333129882812,"y":1667.8333740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"968a87e4b855d9ab","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"11","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"11","payloadType":"num","x":1166.8333129882812,"y":1618.8333740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"d9be5e8bea2144c6","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"12","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"12","payloadType":"num","x":1228.8333129882812,"y":1570.8333740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"b4401ff552bec0fd","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"13","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"13","payloadType":"num","x":1274.8333129882812,"y":1521.8333740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"11a23ab34c272233","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"14","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"14","payloadType":"num","x":1294.8333129882812,"y":1465.8333740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"19500d61ccefd6a8","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"15","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"15","payloadType":"num","x":1278.8333129882812,"y":1406.8333740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"3b7c2e4be2d7b91d","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"16","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"16","payloadType":"num","x":1244.8333129882812,"y":1346.8333740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"f42ac867e85cd20c","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"17","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"17","payloadType":"num","x":1178.8333129882812,"y":1302.8333740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"b94ebeeb90f68ef4","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"18","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"18","payloadType":"num","x":1112.8333129882812,"y":1264.8333740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"6dab38218d76c104","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"19","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"19","payloadType":"num","x":1047.8333129882812,"y":1223.8333740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"523df64899ef2e8a","type":"inject","z":"be2109bba90b6c5a","g":"03592b0b9f23f3d8","name":"20","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"20","payloadType":"num","x":990.8333129882812,"y":1185.8333740234375,"wires":[["2d6b51ae2231889d"]]},{"id":"b6db635a0b4a4bfc","type":"link in","z":"be2109bba90b6c5a","g":"4fc569799f29c7b7","name":"[scrollphat] brightness","links":["8a8c4bc4e56d4ed9","6a896b3232c9d147"],"x":197,"y":1201,"wires":[["2d6b51ae2231889d","419388e924718f03"]],"info":"`msg` must have a payload with a value betwenn zero and 20:\n\n```\nmsg.payload = <brightness value 0 to 20>\n```\n\nwhere 0 is no brightness, i.e. off, and 20 is the highest brightness.\n"},{"id":"eb0de226b1c4f675","type":"change","z":"be2109bba90b6c5a","g":"b1e519b5af689236","name":"all on","rules":[{"t":"set","p":"topic","pt":"msg","to":"reset","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":423.92866401672404,"y":920,"wires":[["cf3e11edefe7d9ee"]]},{"id":"548ce2e6b510128f","type":"change","z":"be2109bba90b6c5a","g":"b1e519b5af689236","name":"all off","rules":[{"t":"set","p":"topic","pt":"msg","to":"reset","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":423.92866401672404,"y":875,"wires":[["cf3e11edefe7d9ee"]]},{"id":"259bf8083e21a786","type":"link in","z":"be2109bba90b6c5a","g":"4fc569799f29c7b7","name":"[scrollphat] all off","links":["5031135bc60eb1ab","01221b71c7c9ad38"],"x":197,"y":764.3333333333334,"wires":[["548ce2e6b510128f"]],"info":"`msg` needs not payload."},{"id":"b1a6d68cec9a6f89","type":"link in","z":"be2109bba90b6c5a","g":"4fc569799f29c7b7","name":"[scrollphat] all on","links":["213ead979035ac25","3d25aa66aea872db"],"x":197,"y":982.6666666666667,"wires":[["eb0de226b1c4f675"]],"info":"`msg` needs not payload."},{"id":"5423d73f8c0f3fef","type":"switch","z":"be2109bba90b6c5a","g":"2cef1b81382b8789","name":"col switch","property":"col","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"eq","v":"4","vt":"num"},{"t":"eq","v":"5","vt":"num"},{"t":"eq","v":"6","vt":"num"},{"t":"eq","v":"7","vt":"num"},{"t":"eq","v":"8","vt":"num"},{"t":"eq","v":"9","vt":"num"},{"t":"eq","v":"10","vt":"num"},{"t":"eq","v":"11","vt":"num"}],"checkall":"false","repair":false,"outputs":11,"x":386,"y":453,"wires":[["781890eada304959"],["cb499d7b79da3f60"],["d81ddab64b5e6d34"],["35329fa8ae082626"],["1ec5d5d215a414d1"],["3bcafb159f5e7bc4"],["5e652ba03665caed"],["1513a3803d097d27"],["499868492eaf13c2"],["2ced6af3ed9bf2a3"],["57360677515f28ee"]]},{"id":"53d3662bddce099d","type":"link in","z":"be2109bba90b6c5a","g":"4fc569799f29c7b7","name":"[scrollphat] set single pixel on or off","links":["808f931788e5cf71"],"x":197,"y":546,"wires":[["5423d73f8c0f3fef"]],"info":"`msg` must be of the form:\n\n```\nmsg = {\n col: <column 1 to 11>,\n row: <row 1 to 5>,\n payload: <true or false - on or off>\n}\n```"},{"id":"781890eada304959","type":"switch","z":"be2109bba90b6c5a","g":"2cef1b81382b8789","name":"col 1","property":"row","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"eq","v":"4","vt":"num"},{"t":"eq","v":"5","vt":"num"}],"checkall":"true","repair":false,"outputs":5,"x":701,"y":387,"wires":[["1caa133a21df33f9"],["31c6b39eb2dd59bc"],["5108fea3f9330ce8"],["802d773c635b7fd4"],["4a1f7041b805fd8b"]]},{"id":"cb499d7b79da3f60","type":"switch","z":"be2109bba90b6c5a","g":"2cef1b81382b8789","name":"col 2","property":"row","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"eq","v":"4","vt":"num"},{"t":"eq","v":"5","vt":"num"}],"checkall":"true","repair":false,"outputs":5,"x":824.8,"y":396.5,"wires":[["3a635e4d0e9a583b"],["54b4753cc69d0bac"],["b9315e45ae6af7a2"],["34f63c7e4151c853"],["3b93b3125bdf3b57"]]},{"id":"d81ddab64b5e6d34","type":"switch","z":"be2109bba90b6c5a","g":"2cef1b81382b8789","name":"col 3","property":"row","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"eq","v":"4","vt":"num"},{"t":"eq","v":"5","vt":"num"}],"checkall":"true","repair":false,"outputs":5,"x":948.5999999999999,"y":407,"wires":[["19e1a5013bb34d16"],["53130ad59081df7e"],["2e787a317d14fbc2"],["18fc96b752b5bbc4"],["df9bcb72264c3fee"]]},{"id":"35329fa8ae082626","type":"switch","z":"be2109bba90b6c5a","g":"2cef1b81382b8789","name":"col 4","property":"row","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"eq","v":"4","vt":"num"},{"t":"eq","v":"5","vt":"num"}],"checkall":"true","repair":false,"outputs":5,"x":1072.3999999999999,"y":421.5,"wires":[["662c4069d1239711"],["256a9c2b66c23512"],["8aff1bc45750b65c"],["6a26450d96622ff1"],["9b50a4e2e34ecbc3"]]},{"id":"1ec5d5d215a414d1","type":"switch","z":"be2109bba90b6c5a","g":"2cef1b81382b8789","name":"col 5","property":"row","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"eq","v":"4","vt":"num"},{"t":"eq","v":"5","vt":"num"}],"checkall":"true","repair":false,"outputs":5,"x":1196.1999999999998,"y":436,"wires":[["9f891367693bcf8e"],["4d29f7da14560867"],["9e55653e13700f05"],["8103f2155eee6a44"],["1345732abc939fbe"]]},{"id":"3bcafb159f5e7bc4","type":"switch","z":"be2109bba90b6c5a","g":"2cef1b81382b8789","name":"col 6","property":"row","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"eq","v":"4","vt":"num"},{"t":"eq","v":"5","vt":"num"}],"checkall":"true","repair":false,"outputs":5,"x":1319.9999999999998,"y":450.5,"wires":[["76fd6c01ef8fe8fa"],["43e413e9569b6ebf"],["e8414e26576a6aaf"],["2a526cf008a759bc"],["42f777405f2177db"]]},{"id":"5e652ba03665caed","type":"switch","z":"be2109bba90b6c5a","g":"2cef1b81382b8789","name":"col 7","property":"row","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"eq","v":"4","vt":"num"},{"t":"eq","v":"5","vt":"num"}],"checkall":"true","repair":false,"outputs":5,"x":1443.7999999999997,"y":465,"wires":[["04cbd53d0fb77a48"],["4e4ef6544db88000"],["c71ccfbe046214d1"],["a79a77eba0f99c93"],["30dc24db56cd2c53"]]},{"id":"1513a3803d097d27","type":"switch","z":"be2109bba90b6c5a","g":"2cef1b81382b8789","name":"col 8","property":"row","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"eq","v":"4","vt":"num"},{"t":"eq","v":"5","vt":"num"}],"checkall":"true","repair":false,"outputs":5,"x":1567.5999999999997,"y":479.5,"wires":[["67086e8cf8eb3f63"],["59ca3cdd20e1a8a8"],["558297730485b28d"],["52c088f46820c014"],["4a923822672d36d5"]]},{"id":"499868492eaf13c2","type":"switch","z":"be2109bba90b6c5a","g":"2cef1b81382b8789","name":"col 9","property":"row","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"eq","v":"4","vt":"num"},{"t":"eq","v":"5","vt":"num"}],"checkall":"true","repair":false,"outputs":5,"x":1691.3999999999996,"y":494,"wires":[["5b116a11980652c5"],["48a534615e517101"],["3b347be872172247"],["eb8475ba13b1f210"],["67e5cd0758028c08"]]},{"id":"2ced6af3ed9bf2a3","type":"switch","z":"be2109bba90b6c5a","g":"2cef1b81382b8789","name":"col 10","property":"row","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"eq","v":"4","vt":"num"},{"t":"eq","v":"5","vt":"num"}],"checkall":"true","repair":false,"outputs":5,"x":1815.1999999999996,"y":508.5,"wires":[["f6c05888624a9c40"],["864cdd9958a1acb3"],["7e83f99b0fd949ac"],["55f8b4d3b68e1d91"],["cefe1fe6f71139a7"]]},{"id":"57360677515f28ee","type":"switch","z":"be2109bba90b6c5a","g":"2cef1b81382b8789","name":"col 11","property":"row","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"eq","v":"4","vt":"num"},{"t":"eq","v":"5","vt":"num"}],"checkall":"true","repair":false,"outputs":5,"x":1939,"y":523,"wires":[["ae0f23ca013db581"],["7988590e8d60fff4"],["43fca37eddc59a08"],["adec7bd4d9059fd7"],["8f78cef9ec527d6f"]]},{"id":"419388e924718f03","type":"ui_slider","z":"be2109bba90b6c5a","g":"06c55c40af591ce0","name":"","label":"brightness","tooltip":"","group":"afbdfc413e8cce91","order":56,"width":0,"height":0,"passthru":true,"outs":"all","topic":"topic","topicType":"msg","min":0,"max":"127","step":1,"className":"","x":461.4167175292969,"y":1395.1666259765625,"wires":[["6a896b3232c9d147"]]},{"id":"5fa26c6d814e8fea","type":"ui_button","z":"be2109bba90b6c5a","g":"06c55c40af591ce0","name":"","group":"afbdfc413e8cce91","order":57,"width":0,"height":0,"passthru":false,"label":"All On","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":441.4167175292969,"y":1452.6666259765625,"wires":[["3d25aa66aea872db"]]},{"id":"3d25aa66aea872db","type":"link out","z":"be2109bba90b6c5a","g":"06c55c40af591ce0","name":"link out 8","mode":"link","links":["b1a6d68cec9a6f89"],"x":600.1667175292969,"y":1452.6666259765625,"wires":[]},{"id":"304bb8671c4b4b7b","type":"ui_button","z":"be2109bba90b6c5a","g":"06c55c40af591ce0","name":"","group":"afbdfc413e8cce91","order":57,"width":0,"height":0,"passthru":false,"label":"All Off","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":441.4167175292969,"y":1507.6666259765625,"wires":[["01221b71c7c9ad38"]]},{"id":"01221b71c7c9ad38","type":"link out","z":"be2109bba90b6c5a","g":"06c55c40af591ce0","name":"link out 9","mode":"link","links":["259bf8083e21a786"],"x":600.1667175292969,"y":1507.6666259765625,"wires":[]},{"id":"6a896b3232c9d147","type":"link out","z":"be2109bba90b6c5a","g":"06c55c40af591ce0","name":"link out 10","mode":"link","links":["b6db635a0b4a4bfc"],"x":600.1667175292969,"y":1395.1666259765625,"wires":[]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment