JamesBarwell / rpi-gpio.js

Control Raspberry Pi GPIO pins with node.js
MIT License
657 stars 116 forks source link

Switch on and off a lamp using relay #82

Open muscaiu opened 6 years ago

muscaiu commented 6 years ago

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!

fusionstream commented 5 years ago

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.