Arduino Timer 1 Library manipulate Timer value I'm using Timer1 library for generation of pulse.
But in my code, at some places i need to change the timer values.
Can anyone suggest the ways to do it.

In below code in place of 370000, I need to change the value after getting some inputs in conditional loops.
Ex. if (x==1) Timer value should be 370000 else 185000.

#include &lt;TimerOne.h&gt;

int count = 0;
int LED = 13;

void setup() {
 pinMode(LED, OUTPUT);
 Timer1.initialize(370000);
 Serial.begin(9600);
}

void loop() {
 Serial.print("Count Value: ");
 Serial.println(count++);
}
When you look into TimerOne.h, which is the header file for the TimerOne library, you can see at line 55 the method

void setPeriod(unsigned long microseconds)


which can be used to set the period of the timer at any time in your program. The method TimerOne.initialize() also calls this method to set the timer period.