Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void loop()
- {
- for (phi = 175; phi >= 5; phi -= 1) // goes from 0 degrees to 180 degrees in steps of 1 degree
- {
- phiservo.write(phi); // tell servo to go to position in variable 'pos'
- delay(15);
- }
- phiservo.write(175);
- delay(2000);
- }
Advertisement
Add Comment
Please, Sign In to add comment