Skip to content

Instantly share code, notes, and snippets.

@ale140
ale140 / 3servos.ino
Last active May 2, 2017 06:01
control de 3 servos con pulsadores, el tercero debe de girar sólo mientras se active el pulsador y cambiar de sentido cuando se presione el otro
#include <Servo.h>
Servo myservo; // create servo object to control a servo
Servo myservo2;
Servo myservo3;
int pos = 85; // variable to store the servo's starting position
int pos2 = 85;
int pos3 = 85;