Skip to content

Instantly share code, notes, and snippets.

@jorgeavaldez
Created March 31, 2016 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorgeavaldez/169f603deb130cf928356f574595949f to your computer and use it in GitHub Desktop.
Save jorgeavaldez/169f603deb130cf928356f574595949f to your computer and use it in GitHub Desktop.
FYD - Keep the Servo in one Position while Processing Happens
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