diff --git a/nodejs/ar-com/rc.js b/nodejs/ar-com/rc.js index df9836b..40763b1 100644 --- a/nodejs/ar-com/rc.js +++ b/nodejs/ar-com/rc.js @@ -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) {