1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

fixed bug, replaced servoWrite with analogWrite where it should be

This commit is contained in:
jacktech24 2014-11-25 20:42:17 +01:00
parent 3a78a2fedd
commit 4e28a308b0

View File

@ -130,7 +130,7 @@ module.exports = function(RED) {
msg.payload = msg.payload * 1; msg.payload = msg.payload * 1;
if ((msg.payload >= 0) && (msg.payload <= 255)) { if ((msg.payload >= 0) && (msg.payload <= 255)) {
//console.log(msg.payload, node.pin); //console.log(msg.payload, node.pin);
node.board.servoWrite(node.pin, msg.payload); node.board.analogWrite(node.pin, msg.payload);
} }
} }
if (node.state == "SERVO") { if (node.state == "SERVO") {