     }
   }
 }
+
 void ideal(int r, int g, int b){
   tintPixels(r,g,b,100);
   if(waitTime(&flashTimeMark, 3000)){

  }
  strip.show();
}


float linearTween (float t, float b, float c, float d) {
  return c*t/d + b;

  }
}

int checkMotionDetection(){
   if(waitTime(&flashTimeMark, 1000)){
     hasMotion = digitalRead(10);
     if (hasMotion == HIGH) {
        wasEnabled = true;
        return wasEnabled; 
     }
   }
   return wasEnabled; 
}
void off(int r, int g, int b){
  tintPixels(r, g, b, 0);  
}
