ni-c / heimcontrol.js

Home-Automation with node.js and Raspberry PI
MIT License
1.41k stars 297 forks source link

Add activelow support for active low devices #75

Open schneiderr opened 10 years ago

schneiderr commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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