this might help with using Node-RED on tinker board..
Just found out.. you can import flow json from clipboard in menu ]]]]...
Code:
[{"id":"1ca7165d.c5635a","type":"tab","label":"Tinker Board - Pibrella","disabled":false,"info":"This is my first Node-RED flow for Tinker Board Pibrella, testing LEDs & Asus GPIO outputs with dashboard ;-].."},{"id":"389c6a12.aea466","type":"tab","label":"Tinker Board - Other","disabled":false,"info":""},{"id":"a46ff0b6.d288a","type":"tab","label":"Tinker Board - HW Info","disabled":false,"info":""},{"id":"1990fb84.b4b674","type":"tab","label":"Tinker Board - GPIO","disabled":false,"info":""},{"id":"159f21a7.6e83ee","type":"ui_base","theme":{"name":"theme-dark","lightTheme":{"default":"#0094CE","baseColor":"#8080c0","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":false},"darkTheme":{"default":"#097479","baseColor":"#8000ff","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":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":"#097479","value":"#8000ff","edited":true},"page-titlebar-backgroundColor":{"value":"#8000ff","edited":false},"page-backgroundColor":{"value":"#111111","edited":false},"page-sidebar-backgroundColor":{"value":"#000000","edited":false},"group-textColor":{"value":"#a64dff","edited":false},"group-borderColor":{"value":"#555555","edited":false},"group-backgroundColor":{"value":"#333333","edited":false},"widget-textColor":{"value":"#eeeeee","edited":false},"widget-backgroundColor":{"value":"#8000ff","edited":false},"widget-borderColor":{"value":"#333333","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"}},"site":{"name":"Node-RED Dashboard","hideToolbar":"true","allowSwipe":"true","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":"f27819fe.91d5f8","type":"ui_tab","z":"","name":"Tinker Board - Pibrella","icon":"dashboard","order":1,"disabled":false,"hidden":false},{"id":"9598424e.656a2","type":"ui_group","z":"","name":"Pibrella LEDs","tab":"f27819fe.91d5f8","order":1,"disp":true,"width":"6","collapse":false},{"id":"d1ed5205.9977e","type":"ui_group","z":"","name":"2ndGroup","tab":"f27819fe.91d5f8","order":2,"disp":true,"width":"6","collapse":false},{"id":"faf3178f.48fff8","type":"ui_tab","z":"","name":"Tinker Board - Other","icon":"dashboard","order":2,"disabled":false,"hidden":false},{"id":"16852094.62162f","type":"ui_group","z":"","name":"Other","tab":"faf3178f.48fff8","order":1,"disp":true,"width":"6","collapse":false},{"id":"db421575.768ae8","type":"ui_group","z":"","name":"Col1","tab":"9c1ebe58.28797","order":1,"disp":false,"width":"6"},{"id":"f779a9d0.8200d8","type":"ui_group","z":"","name":"Actions","tab":"9c1ebe58.28797","order":4,"disp":true,"width":"6"},{"id":"b75f2537.11c038","type":"ui_group","z":"","name":"Col2","tab":"9c1ebe58.28797","order":2,"disp":false,"width":"6"},{"id":"a38c82.099d238","type":"ui_group","z":"","name":"Col3","tab":"9c1ebe58.28797","order":3,"disp":false,"width":"6"},{"id":"9c1ebe58.28797","type":"ui_tab","z":"","name":"TB Control","icon":"dashboard","order":4,"disabled":false,"hidden":false},{"id":"8b86bd58.f3f4c","type":"ui_spacer","name":"spacer","group":"b75f2537.11c038","order":2,"width":1,"height":1},{"id":"a2479436.c008a8","type":"debug","z":"389c6a12.aea466","name":"","active":true,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg","x":640,"y":560,"wires":[]},{"id":"2c37fd8f.6c7e92","type":"asus gpio out","z":"1ca7165d.c5635a","name":"GreenLED","pin":"7","set":false,"level":"0","x":610,"y":320,"wires":[]},{"id":"3b157617.cff58a","type":"inject","z":"1ca7165d.c5635a","name":"ON","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":240,"wires":[["6598654b.93b5cc"]]},{"id":"d299f18b.a4492","type":"inject","z":"1ca7165d.c5635a","name":"OFF","topic":"0","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":300,"wires":[["6598654b.93b5cc"]]},{"id":"979c22fc.8a07","type":"asus gpio out","z":"1ca7165d.c5635a","name":"YellowLED","pin":"11","set":false,"level":"0","x":610,"y":240,"wires":[]},{"id":"84066182.831a4","type":"asus gpio out","z":"1ca7165d.c5635a","name":"RedLED","pin":"13","set":false,"level":"0","x":600,"y":160,"wires":[]},{"id":"e29763e2.37bb8","type":"ui_text","z":"1ca7165d.c5635a","group":"9598424e.656a2","order":5,"width":0,"height":0,"name":"LEDs Output","label":"LEDs output state...","format":"{{msg.payload}}","layout":"row-spread","x":370,"y":320,"wires":[]},{"id":"458f2046.f6938","type":"ui_gauge","z":"1ca7165d.c5635a","name":"LEDs Gauge","group":"9598424e.656a2","order":1,"width":0,"height":0,"gtype":"gage","title":"Power","label":"%","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":590,"y":420,"wires":[]},{"id":"856b8245.61b97","type":"ui_slider","z":"1ca7165d.c5635a","name":"LEDs slider","label":"","tooltip":"","group":"9598424e.656a2","order":2,"width":0,"height":0,"passthru":true,"outs":"all","topic":"","min":0,"max":"100","step":1,"x":170,"y":420,"wires":[["84b012b4.b69d9"]]},{"id":"6598654b.93b5cc","type":"ui_switch","z":"1ca7165d.c5635a","name":"LEDs switch","label":"LEDs switch","tooltip":"","group":"9598424e.656a2","order":4,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":370,"y":240,"wires":[["84066182.831a4","979c22fc.8a07","2c37fd8f.6c7e92","e29763e2.37bb8"]]},{"id":"6624f50e.489fcc","type":"asus gpio in","z":"1ca7165d.c5635a","name":"ButtonPIN33","pin":"33","intype":"tri","debounce":"25","read":false,"x":150,"y":160,"wires":[["6598654b.93b5cc"]]},{"id":"3de1ea7d.7d1606","type":"asus gpio in","z":"1ca7165d.c5635a","name":"REDbutton","pin":"23","intype":"down","debounce":"25","read":false,"x":200,"y":100,"wires":[["6598654b.93b5cc"]]},{"id":"e34c3171.2ebba","type":"ui_button","z":"1ca7165d.c5635a","name":"button","group":"9598424e.656a2","order":6,"width":0,"height":0,"passthru":false,"label":"button","tooltip":"","color":"","bgcolor":"","icon":"","payload":"","payloadType":"date","topic":"","x":150,"y":540,"wires":[["c8204676.e1d548"]]},{"id":"84b012b4.b69d9","type":"ui_numeric","z":"1ca7165d.c5635a","name":"","label":"Power %","tooltip":"","group":"9598424e.656a2","order":3,"width":0,"height":0,"wrap":false,"passthru":true,"topic":"","format":"{{value}}","min":0,"max":"100","step":1,"x":380,"y":420,"wires":[["458f2046.f6938","856b8245.61b97"]]},{"id":"9d2fb1f6.0a142","type":"ui_button","z":"1ca7165d.c5635a","name":"","group":"d1ed5205.9977e","order":1,"width":0,"height":0,"passthru":false,"label":"button","tooltip":"","color":"","bgcolor":"","icon":"","payload":"","payloadType":"date","topic":"","x":150,"y":640,"wires":[["5c5984dd.7d4fec"]]},{"id":"6e5b74f0.1b5b0c","type":"debug","z":"1ca7165d.c5635a","name":"","active":true,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg","x":640,"y":640,"wires":[]},{"id":"c8204676.e1d548","type":"debug","z":"1ca7165d.c5635a","name":"","active":true,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg","x":370,"y":540,"wires":[]},{"id":"993dbe1c.7cda8","type":"change","z":"389c6a12.aea466","name":"","rules":[{"t":"set","p":"toggle-me","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":410,"y":260,"wires":[["ddf1c79d.01bb48","a2479436.c008a8"]]},{"id":"cd172b61.e35688","type":"switch","z":"389c6a12.aea466","name":"","property":"toggle-me","propertyType":"flow","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":190,"y":360,"wires":[["456d0cee.415c04"],["8c375dd4.3c0c8"]]},{"id":"4566f623.532bf8","type":"change","z":"389c6a12.aea466","name":"","rules":[{"t":"set","p":"toggle-me","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":650,"y":400,"wires":[["ddf1c79d.01bb48","a2479436.c008a8"]]},{"id":"da4a62a4.9dad3","type":"change","z":"389c6a12.aea466","name":"","rules":[{"t":"set","p":"toggle-me","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":650,"y":320,"wires":[["ddf1c79d.01bb48","a2479436.c008a8"]]},{"id":"bf992c41.ac559","type":"inject","z":"389c6a12.aea466","name":"","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":100,"y":200,"wires":[["993dbe1c.7cda8"]]},{"id":"8c375dd4.3c0c8","type":"change","z":"389c6a12.aea466","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":400,"wires":[["4566f623.532bf8"]]},{"id":"456d0cee.415c04","type":"change","z":"389c6a12.aea466","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":320,"wires":[["da4a62a4.9dad3"]]},{"id":"3aacb1e8.b25c0e","type":"ui_button","z":"389c6a12.aea466","name":"","group":"16852094.62162f","order":1,"width":0,"height":0,"passthru":true,"label":"On / Off","tooltip":"","color":"","bgcolor":"","icon":"","payload":"true","payloadType":"bool","topic":"","x":110,"y":300,"wires":[["cd172b61.e35688"]]},{"id":"e4f30d36.802c9","type":"comment","z":"389c6a12.aea466","name":"At startup set default value (false)","info":"","x":430,"y":220,"wires":[]},{"id":"def28801.7bc4f8","type":"comment","z":"389c6a12.aea466","name":"if flow.state is true set it to false, if flow.state is false set it to true","info":"","x":510,"y":360,"wires":[]},{"id":"b9e35d08.0ba6a","type":"inject","z":"389c6a12.aea466","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":96.5,"y":247,"wires":[["3aacb1e8.b25c0e"]]},{"id":"ddf1c79d.01bb48","type":"ui_text","z":"389c6a12.aea466","group":"16852094.62162f","order":1,"width":0,"height":0,"name":"","label":"On / Off button state...","format":"{{msg.payload}}","layout":"row-spread","x":670,"y":480,"wires":[]},{"id":"e184e47f.bb0da8","type":"ui_gauge","z":"389c6a12.aea466","name":"","group":"16852094.62162f","order":2,"width":0,"height":0,"gtype":"wave","title":"","label":"","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":640,"y":660,"wires":[]},{"id":"5818b707.d599e8","type":"ui_slider","z":"389c6a12.aea466","name":"","label":"","tooltip":"","group":"16852094.62162f","order":3,"width":0,"height":0,"passthru":true,"outs":"all","topic":"","min":0,"max":"100","step":1,"x":250,"y":660,"wires":[["871aa9fb.3a89d8"]]},{"id":"871aa9fb.3a89d8","type":"ui_numeric","z":"389c6a12.aea466","name":"","label":"","tooltip":"","group":"16852094.62162f","order":6,"width":0,"height":0,"wrap":false,"passthru":true,"topic":"","format":"{{value}}","min":0,"max":"100","step":1,"x":410,"y":660,"wires":[["5818b707.d599e8","e184e47f.bb0da8"]]},{"id":"e3286cff.46f83","type":"ui_gauge","z":"a46ff0b6.d288a","name":"","group":"db421575.768ae8","order":2,"width":0,"height":0,"gtype":"donut","title":"CPU Temperature","label":"°C","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":630,"y":120,"wires":[]},{"id":"782c3e0e.bd79c","type":"exec","z":"a46ff0b6.d288a","command":"cat /sys/devices/virtual/thermal/thermal_zone0/temp | cut -c1-3","addpay":false,"append":"","useSpawn":"","timer":"","name":"TB Temp.","x":300,"y":140,"wires":[["76dcd395.4b09bc"],[],[]]},{"id":"c49040bf.642f6","type":"inject","z":"a46ff0b6.d288a","name":"","topic":"","payload":"","payloadType":"date","repeat":"5","crontab":"","once":false,"x":110,"y":160,"wires":[["782c3e0e.bd79c","99c72f0f.99b8c","d2322e20.5ca13"]]},{"id":"76dcd395.4b09bc","type":"function","z":"a46ff0b6.d288a","name":"","func":"str = msg.payload\nmsg.payload = Number(msg.payload)/10;\nreturn msg;","outputs":1,"noerr":0,"x":450,"y":140,"wires":[["e3286cff.46f83","5be209a9.f3cbf8"]]},{"id":"c81c78f4.d94948","type":"ui_button","z":"a46ff0b6.d288a","d":true,"name":"","group":"f779a9d0.8200d8","order":2,"width":0,"height":0,"passthru":false,"label":"Reboot","tooltip":"","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":120,"y":520,"wires":[["bc0df605.ddf668"]]},{"id":"bc0df605.ddf668","type":"exec","z":"a46ff0b6.d288a","command":"reboot","addpay":false,"append":"","useSpawn":"","timer":"","name":"Reboot","x":298,"y":520,"wires":[[],[],[]]},{"id":"caf90f7e.067e4","type":"ui_button","z":"a46ff0b6.d288a","d":true,"name":"","group":"f779a9d0.8200d8","order":3,"width":0,"height":0,"passthru":false,"label":"Shutdown","tooltip":"","color":"","bgcolor":"red","icon":"","payload":"","payloadType":"str","topic":"","x":110,"y":580,"wires":[["45bc9667.4aec08"]]},{"id":"45bc9667.4aec08","type":"exec","z":"a46ff0b6.d288a","command":"shutdown -h now","addpay":false,"append":"","useSpawn":"","timer":"","name":"Shutdown","x":309.5,"y":582.25,"wires":[[],[],[]]},{"id":"5be209a9.f3cbf8","type":"ui_chart","z":"a46ff0b6.d288a","name":"","group":"b75f2537.11c038","order":3,"width":0,"height":0,"label":"CPU Temperature °C - 24Hrs","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"100","removeOlder":"24","removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":true,"outputs":1,"x":660,"y":160,"wires":[[]]},{"id":"99c72f0f.99b8c","type":"exec","z":"a46ff0b6.d288a","command":"top -d 0.5 -b -n2 | grep \"Cpu(s)\"|tail -n 1 | awk '{print $2 + $4}'","addpay":false,"append":"","useSpawn":"","timer":"","name":"CPU Load","x":310,"y":220,"wires":[["dcf2cf2e.32e4c"],[],[]]},{"id":"d2322e20.5ca13","type":"exec","z":"a46ff0b6.d288a","command":"free | grep Mem | awk '{printf \"%.1f\\n\", 100*($3)/$2}'","addpay":false,"append":"","useSpawn":"","timer":"","name":"Memory Load","x":320,"y":300,"wires":[["c3826b9a.c19918"],[],[]]},{"id":"dcf2cf2e.32e4c","type":"ui_gauge","z":"a46ff0b6.d288a","name":"","group":"db421575.768ae8","order":1,"width":0,"height":0,"gtype":"donut","title":"Processor","label":"CPU %","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":660,"y":220,"wires":[]},{"id":"c3826b9a.c19918","type":"ui_gauge","z":"a46ff0b6.d288a","name":"","group":"b75f2537.11c038","order":1,"width":0,"height":0,"gtype":"donut","title":"Memory","label":"RAM %","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":660,"y":300,"wires":[]},{"id":"b94d8f4c.c0fb5","type":"exec","z":"a46ff0b6.d288a","command":"df -h","addpay":false,"append":"","useSpawn":"","timer":"","name":"Disk Usage","x":310,"y":380,"wires":[["cbd4fe06.2812a"],[],[]]},{"id":"7060e615.ee1e28","type":"ui_gauge","z":"a46ff0b6.d288a","name":"","group":"a38c82.099d238","order":1,"width":0,"height":0,"gtype":"donut","title":"Disk","label":"Usage %","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":650,"y":380,"wires":[]},{"id":"cbd4fe06.2812a","type":"function","z":"a46ff0b6.d288a","name":"","func":"var re = /([0-9]{2})%/\nvar idx = msg.payload.search(re);\nvar str = msg.payload;\nif (idx >=0) {\n str = msg.payload.substring(idx, idx + 2);\n}\nmsg.payload = str;\nreturn msg;","outputs":1,"noerr":0,"x":470,"y":380,"wires":[["7060e615.ee1e28"]]},{"id":"4b719a9c.0a5074","type":"inject","z":"a46ff0b6.d288a","name":"","topic":"","payload":"","payloadType":"date","repeat":"60","crontab":"","once":false,"x":110,"y":380,"wires":[["b94d8f4c.c0fb5"]]},{"id":"a2ab098f.91cfe8","type":"ui_button","z":"a46ff0b6.d288a","d":true,"name":"","group":"f779a9d0.8200d8","order":0,"width":0,"height":0,"passthru":false,"label":"Clear Cache","tooltip":"","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":110,"y":660,"wires":[["956c6ef9.d7a5e"]]},{"id":"956c6ef9.d7a5e","type":"exec","z":"a46ff0b6.d288a","command":"sh -c \"sync; echo 3 > /proc/sys/vm/drop_caches\"","addpay":false,"append":"","useSpawn":"","timer":"","name":"Clear Cache","x":310,"y":660,"wires":[[],[],[]]},{"id":"bf5a2911.7b5118","type":"inject","z":"a46ff0b6.d288a","d":true,"name":"","topic":"","payload":"","payloadType":"date","repeat":"43200","crontab":"","once":false,"onceDelay":"","x":110,"y":700,"wires":[["956c6ef9.d7a5e"]]},{"id":"df244937.c3a6f8","type":"debug","z":"1990fb84.b4b674","name":"","active":true,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg","x":600,"y":80,"wires":[]},{"id":"309d1680.d6856a","type":"inject","z":"1990fb84.b4b674","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":80,"wires":[["1d6d02a.44803fd"]]},{"id":"25e8e795.7db6f8","type":"inject","z":"1990fb84.b4b674","name":"","topic":"","payload":"pwmLED.py","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":140,"wires":[["c8f2e412.020ab8"]]},{"id":"1d6d02a.44803fd","type":"exec","z":"1990fb84.b4b674","command":"/root/code/pibrella/pwmLED.py","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"pin164PWM","x":330,"y":80,"wires":[["df244937.c3a6f8"],[],[]]},{"id":"5c5984dd.7d4fec","type":"exec","z":"1ca7165d.c5635a","command":"/root/code/pibrella/pwmLED.py","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"pin164PWM","x":370,"y":640,"wires":[["6e5b74f0.1b5b0c"],["d3df81f8.b91df"],["f289d4b3.1f61c8"]]},{"id":"8d2587be.bdbb28","type":"function","z":"1990fb84.b4b674","name":"exit","func":"msg.payload = msg.kill;\nmsg.kill =\"SIGINT\";\nreturn msg;","outputs":1,"noerr":0,"x":130,"y":180,"wires":[[]]},{"id":"46b2c23e.a3b97c","type":"inject","z":"1990fb84.b4b674","name":"","topic":"","payload":"pibrella","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":420,"wires":[["2c55c912.194936"]]},{"id":"392865d.f30729a","type":"inject","z":"1990fb84.b4b674","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":480,"wires":[["71977b00.721ec4"]]},{"id":"2c55c912.194936","type":"exec","z":"1990fb84.b4b674","command":"pkill -f --signal SIGINT ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":360,"y":420,"wires":[[],[],["ec24a592.f052d8"]]},{"id":"7fd35e22.acf09","type":"debug","z":"1990fb84.b4b674","name":"","active":true,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg","x":580,"y":300,"wires":[]},{"id":"8d574200.1c30a","type":"python3-function","z":"1990fb84.b4b674","name":"pwmPIN#","func":"#!/usr/bin/env python3\n#Testing for software PWM\nimport ASUS.GPIO as GPIO\nimport unittest\nimport time\nPIN=msg['payload']\nLED = PIN\nGPIO.setmode(GPIO.ASUS)\nGPIO.setup(LED, GPIO.OUT)\npwm = GPIO.PWM(LED, 50)\npwm.start(100)\n\n#while True:\nfor i in range(0,3):\n for x in range(0,101,5):\n pwm.ChangeDutyCycle(x)\n time.sleep(0.1)\n for x in range(100,-1,-5):\n pwm.ChangeDutyCycle(x)\n time.sleep(0.1)\nreturn msg","outputs":1,"x":340,"y":300,"wires":[["7fd35e22.acf09"]]},{"id":"6046037a.bb153c","type":"inject","z":"1990fb84.b4b674","name":"PIN#164","topic":"","payload":"164","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":300,"wires":[["8d574200.1c30a"]]},{"id":"2b4cee4d.3a2b72","type":"inject","z":"1990fb84.b4b674","name":"PIN#166","topic":"","payload":"166","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":260,"wires":[["8d574200.1c30a"]]},{"id":"de5ccddd.5a8c","type":"inject","z":"1990fb84.b4b674","name":"PIN#17","topic":"","payload":"17","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":340,"wires":[["8d574200.1c30a"]]},{"id":"71977b00.721ec4","type":"exec","z":"1990fb84.b4b674","command":"~/code/pibrella/pibrella","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":360,"y":480,"wires":[["a2de31c.2f297d"],[],[]]},{"id":"a2de31c.2f297d","type":"debug","z":"1990fb84.b4b674","name":"","active":true,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg","x":620,"y":480,"wires":[]},{"id":"c8f2e412.020ab8","type":"exec","z":"1990fb84.b4b674","command":"pkill -f --signal SIGINT ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":360,"y":140,"wires":[[],[],["8166038b.fbf4d"]]},{"id":"bd7af5fd.e7fbf8","type":"exec","z":"1990fb84.b4b674","command":"gpio read 2","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":330,"y":580,"wires":[["e9411da5.b8523"],[],[]]},{"id":"e9411da5.b8523","type":"debug","z":"1990fb84.b4b674","name":"","active":true,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg","x":620,"y":580,"wires":[]},{"id":"7e0e537d.90610c","type":"inject","z":"1990fb84.b4b674","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"1","x":120,"y":580,"wires":[["bd7af5fd.e7fbf8","2475b17c.e7321e","2d437132.fee6ce","f47e200a.9a15d"]]},{"id":"2475b17c.e7321e","type":"exec","z":"1990fb84.b4b674","command":"gpio read 0","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":330,"y":640,"wires":[["d890de41.b94fb"],[],[]]},{"id":"d890de41.b94fb","type":"debug","z":"1990fb84.b4b674","name":"","active":true,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg","x":620,"y":640,"wires":[]},{"id":"2d437132.fee6ce","type":"exec","z":"1990fb84.b4b674","command":"gpio read 7","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":330,"y":700,"wires":[["fe5727f1.28ef38"],[],[]]},{"id":"fe5727f1.28ef38","type":"debug","z":"1990fb84.b4b674","name":"","active":true,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg","x":620,"y":700,"wires":[]},{"id":"f47e200a.9a15d","type":"exec","z":"1990fb84.b4b674","command":"gpio read 14","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":330,"y":760,"wires":[["79794f16.f5975"],[],[]]},{"id":"79794f16.f5975","type":"debug","z":"1990fb84.b4b674","name":"","active":true,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg","x":620,"y":760,"wires":[]},{"id":"81220665.6003e8","type":"comment","z":"1990fb84.b4b674","name":"redLED","info":"","x":450,"y":580,"wires":[]},{"id":"a3979259.9435e","type":"comment","z":"1990fb84.b4b674","name":"yellowLED","info":"","x":460,"y":640,"wires":[]},{"id":"923c48b1.0d5c98","type":"comment","z":"1990fb84.b4b674","name":"greenLED","info":"","x":460,"y":700,"wires":[]},{"id":"41d12a8.5716cd4","type":"comment","z":"1990fb84.b4b674","name":"redBUTTON","info":"","x":470,"y":760,"wires":[]},{"id":"ec24a592.f052d8","type":"debug","z":"1990fb84.b4b674","name":"","active":true,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg","x":620,"y":420,"wires":[]},{"id":"8166038b.fbf4d","type":"debug","z":"1990fb84.b4b674","name":"","active":true,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg","x":600,"y":140,"wires":[]},{"id":"d3df81f8.b91df","type":"debug","z":"1ca7165d.c5635a","name":"","active":true,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg","x":640,"y":700,"wires":[]},{"id":"f289d4b3.1f61c8","type":"debug","z":"1ca7165d.c5635a","name":"","active":true,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg","x":640,"y":760,"wires":[]}]
this is nuts.... ;-]..
much to learn about this node-RED, I'm going to be busy for a while ;-]]..........