Open
Description
feature request: Servo
class: servo.write(int angle, float rotationspeed)
angle
: degrees (endpoint)rotationspeed
: degrees per second
e.g.,
servo.write(90); // let the servo move to position 90° immediately
delay(1000);
servo.write(180, 10.0); // moves the servo from the current position (90°) to position 180° by a rotation speed of 10°/sec
The function must not be blocking, so that a following command can be started immediately before the further movement has been finished (simultaneous movement)
servo1.write(180, 10.0);
servo2.write(45, 5.0);