From 63d621328509ca6aba53306ea4e589b92ff3f284 Mon Sep 17 00:00:00 2001 From: Stefan Sterz Date: Sat, 30 Jan 2016 19:15:43 +0100 Subject: [PATCH] make pin optional --- nodejs/ar-com/rc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {