You might just be able to use:
s.move(0.5, 1000, function() { s.move(0.5, Infinity); // hold position }); `
s.move(0.5, 1000, function() { s.move(0.5, Infinity); // hold position });
It feels a bit hacky though! Maybe the servo library should provide a function for it
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
You might just be able to use:
s.move(0.5, 1000, function() { s.move(0.5, Infinity); // hold position });
`It feels a bit hacky though! Maybe the servo library should provide a function for it