Jupiter GPIO Read

A node for reading the Jupiter Boards GPIO pins. It uses the wiringPI library in command line fashion. It has to be polled with any input (even empty) to provide a result.

Configuration parameters:

  • "pin": the GPIO pin number as a string.

Inputs:

  • msg.payload: triggers the flow execution.

Outputs:

  • msg.payload: the GPIO digital value ("1" or "0").
[{"id":"6db3dd40.2eefd4","type":"subflow","name":"Jupiter GPIO Read","info":"A node for reading the Jupiter Boards GPIO pins. It uses the wiringPI library in command line fashion.\nIt has to be polled with any input (even empty) to provide a result.\n\nConfiguration parameters:\n- \"pin\": the GPIO pin number as a string.\n\nInputs:\n- msg.payload: triggers the flow execution.\n\nOutputs:\n- msg.payload: the GPIO digital value (\"1\" or \"0\").","category":"","in":[{"x":40,"y":80,"wires":[{"id":"5d4f08ed.8e44e8"}]}],"out":[{"x":520,"y":60,"wires":[{"id":"91a7ce79.8ec16","port":0}]}],"env":[{"name":"pin","type":"str","value":"0","ui":{"label":{"en-US":"pin"},"type":"input","opts":{"types":["str"]}}}],"color":"#C0DEED","icon":"node-red/inject.svg"},{"id":"5d4f08ed.8e44e8","type":"function","z":"6db3dd40.2eefd4","name":"Format Paremeters","func":"msg.payload = env.get(\"pin\");\nreturn msg;","outputs":1,"noerr":0,"x":190,"y":80,"wires":[["91a7ce79.8ec16"]]},{"id":"91a7ce79.8ec16","type":"exec","z":"6db3dd40.2eefd4","command":"gpio read ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"GPIO Read","x":390,"y":80,"wires":[[],[],[]]}]

Collection Info

Flow Info

Created 5 years, 2 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • exec (x1)
  • function (x1)
Other
  • subflow (x1)

Tags

  • JupiterSystem
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option