heimcontrol.js icon indicating copy to clipboard operation
heimcontrol.js copied to clipboard

Add activelow support for active low devices

Open schneiderr opened this issue 11 years ago • 2 comments

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.

schneiderr avatar Jun 11 '14 21:06 schneiderr

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.

ni-c avatar Jun 12 '14 07:06 ni-c

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

schneiderr avatar Jun 16 '14 14:06 schneiderr