Changes the period of a previously created timer. It can be called to change the period of an running or stopped timer. Note that changing the period of a dormant timer will also start the timer.
newPeriod is the new timer period (unsigned int)
// EXAMPLE USAGE timer.changePeriod(1000); // Reset period of timer to 1000ms.
You can also specify a value using chrono literals, for example:
timer.changePeriod(2min) for 2 minutes.