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 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.
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](https://user-images.githubusercontent.com/11426309/39960172-93ae7050-5626-11e8-976f-80b919a2367a.jpg)
Thank you!