rpi-gpio.js icon indicating copy to clipboard operation
rpi-gpio.js copied to clipboard

Switch on and off a lamp using relay

Open muscaiu opened this issue 7 years ago • 1 comments
trafficstars

Is there an example for switching a simple lamp on and off using a relay? I'm using a raspbery pi and a 5v relay, i'm able to switch it on and off using python code, but i'm not into python. I would like to use node and js instead.

This is my setup: pi_gpio

Thank you!

muscaiu avatar May 13 '18 06:05 muscaiu

This isn't a support forum. It's a place to track bugs and feature requests for this module. There is an example for writing and reading the gpio pins on the main page of this doc.

fusionstream avatar Mar 17 '19 01:03 fusionstream