Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Servo Rotation (Single)
- * 4/7/20
- */
- #include <Servo.h>
- Servo servoMotor;
- void setup() {
- servoMotor.attach (9); //Attach which pin the motor uses
- }
- void loop() {
- //Turn the motor 180 degrees
- servoMotor.write(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement