zockerlein

Minimalbeispiel Scanner

Mar 15th, 2020
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. void loop()
  2. {
  3.   for (phi = 175; phi >= 5; phi -= 1)       // goes from 0 degrees to 180 degrees in steps of 1 degree
  4.   {
  5.     phiservo.write(phi);                       // tell servo to go to position in variable 'pos'
  6.     delay(15);
  7.   }
  8.   phiservo.write(175);
  9.   delay(2000);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment