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:
parent
3a78a2fedd
commit
4e28a308b0
@ -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") {
|
||||
|
Loading…
Reference in New Issue
Block a user