Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Add activelow support for active low devices #75

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

schneiderr
Copy link

I am started using active low relays with heimcontrol and in order to get them to switch on when pressing the on switch, i created an almost exact replica of the led method, but i have switched the on method to set the pin LOW and the off method to set the pin HIGH.

You will also need to add activelow.js and update the index.js duino file in order for this to work.

├── node_modules
| ├── index.js (must update file to include activelow.js)
├── lib
| ├── activelow.js (Must add file)

These files can be downloaded here.

@ni-c
Copy link
Owner

ni-c commented Jun 12, 2014

Great work! Thank you!

Can you add the activelow.js to https://github.com/ni-c/duino and create a pull request? The duino-node_module for heimcontrol.js is installed from that repository.

@schneiderr
Copy link
Author

I've created a pull request on your duino fork.

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

Successfully merging this pull request may close these issues.

2 participants