Simple delay question

I am using the following code to move the needle on a battery test meter. It is for a prop I am building, it is not actually measuring anything. The code is working great except I would like to be able to pause the needle at the top of the arc. The “delay(10);” in the code affects how long it takes the needle to move to the top of the arc. Is there another delay I could use to pause it at the top?

Many thanks :slight_smile:

/*
 Moving a meter needle
*/


int ledPin = 9;    // + meter connected to digital pin 9, - to ground

void setup()  {
  // nothing happens in setup
}

void loop()  {
  // move needle up from min to max in increments of 5 points:
  for(int fadeValue = 0 ; fadeValue <= 255; fadeValue +=5) {
    // sets the value (range from 0 to 255):
    analogWrite(ledPin, fadeValue);        
    // wait for 10 milliseconds    
    delay(10);                            
  }

  // move needle down from max to min in increments of 5 points:
  for(int fadeValue = 255 ; fadeValue >= 0; fadeValue -=5) {
    // sets the value (range from 0 to 255):
    analogWrite(ledPin, fadeValue);        
    // wait for 10 milliseconds   
    delay(10);                            
  }
}

Insert delay() in between two "for" loops.