Within the main () function, initialize the mode timer module after the HAL has initialized the LPTIM1 and before the main loop. Configure it to have a period of 1 second and a pulse of 0.5 seconds.