make pin optional
This commit is contained in:
parent
84559145e8
commit
63d6213285
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Reference in a new issue