Created
March 31, 2016 19:38
-
-
Save jorgeavaldez/169f603deb130cf928356f574595949f to your computer and use it in GitHub Desktop.
FYD - Keep the Servo in one Position while Processing Happens
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void MoveServo(){ | |
r.setVerbose(true); | |
r.attachServo(RXTXRobot.SERVO1, 10); //Connect the servos to the Arduino | |
r.moveServo(RXTXRobot.SERVO1, 90); // Move Servo 1 to location 30 | |
for (int i = 0; i < 20; i++) { | |
System.out.println("MEMES"); | |
r.moveServo(RXTXRobot.SERVO1, 90); | |
} | |
r.sleep(8000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment