     {
         servoPos -= servoRotationAngel;
     }
-
-    // todo - center would be nice as well
-    if(servoPos >= 90) { servoRight = true; } else { servoRight = false; }
 
     return servoPos;
 }


uint8_t GetNextServoAngle()
{
    if(servoPos >= 180)
    {
        servoDirectionRight = false;
        servoPos = 180;
    }
    if(servoPos <= 0)
    {
        servoDirectionRight = true;
        servoPos = 0;
    }

    if(servoDirectionRight)
    {
        servoPos += servoRotationAngel;
    }

const uint8_t servoPin = 6;
const uint8_t servoRotationAngel = 10;

enum direction {
  left,
  center,
  right
};

uint8_t servoPos = 90;
direction servoMovement = right;
direction servoLocation = center;


void setup()
{
