Jupiter GPIO Pwm

A node for writing the Jupiter Boards GPIO pins in PWM mode. It uses the wiringPI library in command line fashion.

Configuration parameters:

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

Inputs:

  • msg.payload: the PWM value ("0" to "1023").

Outputs: None

[{"id":"1760916d.76669f","type":"subflow","name":"Jupiter GPIO Pwm","info":"A node for writing the Jupiter Boards GPIO pins in PWM mode. It uses the wiringPI library in command line fashion.\n\nConfiguration parameters:\n- \"pin\": the GPIO pin number as a string.\n\nInputs:\n- msg.payload: the PWM value (\"0\" to \"1023\").\n\nOutputs:\nNone","category":"","in":[{"x":160,"y":100,"wires":[{"id":"1c0642ac.c2b72d"}]}],"out":[],"env":[{"name":"pin","type":"str","value":"0"}],"color":"#C0DEED","icon":"node-red/trigger.svg"},{"id":"1c0642ac.c2b72d","type":"function","z":"1760916d.76669f","name":"Format Paremeters","func":"msg.payload = env.get(\"pin\") + \" \" + msg.payload;\nreturn msg;","outputs":1,"noerr":0,"x":310,"y":100,"wires":[["bc0d99ee.a64ba8"]]},{"id":"bc0d99ee.a64ba8","type":"exec","z":"1760916d.76669f","command":"gpio pwm","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"GPIO Pwm","x":510,"y":100,"wires":[[],[],[]]}]

Collection Info

prev

Flow Info

Created 5 years, 1 month 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