From 4e28a308b041226f0694beab171d1e90e11492bb Mon Sep 17 00:00:00 2001 From: jacktech24 Date: Tue, 25 Nov 2014 20:42:17 +0100 Subject: [PATCH] fixed bug, replaced servoWrite with analogWrite where it should be --- nodes/core/hardware/35-arduino.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/core/hardware/35-arduino.js b/nodes/core/hardware/35-arduino.js index 795e99074..1241239cb 100644 --- a/nodes/core/hardware/35-arduino.js +++ b/nodes/core/hardware/35-arduino.js @@ -130,7 +130,7 @@ module.exports = function(RED) { msg.payload = msg.payload * 1; if ((msg.payload >= 0) && (msg.payload <= 255)) { //console.log(msg.payload, node.pin); - node.board.servoWrite(node.pin, msg.payload); + node.board.analogWrite(node.pin, msg.payload); } } if (node.state == "SERVO") {