led flashing functions restructured
led flashing functions restructured