Skip to content

Instantly share code, notes, and snippets.

@cpswan

cpswan/README.md Secret

Created January 10, 2014 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cpswan/1a5dac58f4ed38b46d18 to your computer and use it in GitHub Desktop.
Save cpswan/1a5dac58f4ed38b46d18 to your computer and use it in GitHub Desktop.
PiLite output

Send payload to serial output on /dev/ttyAMA0 at 9600 baud for Ciseco Pi-LITE lots of LEDs board.

Flow comes with "Hello World" injector, which can be replaced with any other payload source.

Requires serialport package to be installed before starting Node-RED

npm install serialport

Further background and details at http://blog.thestateofme.com/2013/12/30/pi-lite-with-node-red/

[{"id":"709199ac.8f6e68","type":"serial-port","serialport":"/dev/ttyAMA0","serialbaud":"9600","newline":"\\n","addchar":"false"},{"id":"79ac2e40.8653d","type":"inject","name":"","topic":"","payload":"Hello World","repeat":"","crontab":"","once":false,"x":96,"y":140,"z":"1da70e35.e258f2","wires":[["95caacb5.6a355"]]},{"id":"95caacb5.6a355","type":"serial out","name":"PiLite","serial":"709199ac.8f6e68","x":254,"y":140,"z":"1da70e35.e258f2","wires":[]}]
@andypiper
Copy link

win!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment