sandeepmistry / node-powermate

A Node.js library for the Griffin PowerMate
41 stars 25 forks source link

Add support for multiple PowerMates #2

Closed dkordik closed 11 years ago

dkordik commented 11 years ago

Adds support for multiple PowerMates by passing an index to the PowerMate constructor:

var powermate1 = new PowerMate(0);
var powermate2 = new PowerMate(1);

When omitted, falls back to index 0.

var powermate = new PowerMate();
sandeepmistry commented 11 years ago

Thanks!

Do you have time to update the unit tests? If not, I can do it on the weekend.

sandeepmistry commented 11 years ago

Thanks, released a new version 0.0.2 as well.