             
             //     delayUs;delayUs;
         }
-        Serial.println(millis()-ttt);
     }else{
         motionDir = 1;
         while(true){

long count = 0;
int motionDir = 1;
long targetDuringTime = 200;
long currentDuringTime = 0;
int motionAcc = 1;
bool isMoving = false;
void updateMotion()
{
    if(isMoving){
        if(motionDir>0&&currentDuringTime>10){
            if(motionDir>150){
                motionAcc = -1;
                motionDir=150;

    long y0 = yPosition;
    long x1 = tx;
    long y1 = ty;
    currentDuringTime = max(targetDuringTime+500,1000);
    motionDir = 1;
    motionAcc = 1;
    long dx,dy,sx,sy;
