Flowchart representing the algorithm of software design of pulse generator unit of LED based phototherapy system.