Stap 3: Controle Servo snelheid
Deze code maakt het dus de servo van 0 tot 180 langzaam verandert.
#include <VarSpeedServo.h> VarSpeedServoservo; void setup() { servo.attach(10); } void loop() { servo.write(0,30,true);//you can change the speed of the servo by changing the second number. servo.write(180,30,true);//you can change the angle of the servo by changing the first number. }