Étape 3: Contrôler la vitesse de Servo
Ce code fera donc le servo tournera de 0 à 180 lentement.
#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. }