Rotate servo without for() function

Probably need == in these statements

  if (servoposition == 180) {angleincrease = -1; }
  if (servoposition == 0) {angleincrease = 1; }
1 Like