Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch on and off a lamp using relay #82

Open
muscaiu opened this issue May 13, 2018 · 1 comment
Open

Switch on and off a lamp using relay #82

muscaiu opened this issue May 13, 2018 · 1 comment

Comments

@muscaiu
Copy link

muscaiu commented May 13, 2018

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants