make pin optional

This commit is contained in:
Stefan Sterz 2016-01-30 19:15:43 +01:00
parent 84559145e8
commit 63d6213285
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
var RC = function (arduino, pin) {
if(!arduino){throw new Error('Arduino must be set');}
this.arduino = arduino;
this.pin = pin;
this.pin = pin && pin || 11;
}
RC.prototype.send = function(tristate) {