a current regulator for non - isolated , line voltage led driver circuits solves the problem of led flicker caused by line noise in the visible frequency range . in one aspect of the invention , led flicker frequency may be increased beyond the line frequency . in another aspect , line voltages in excess of led voltage ratings may be tolerated . the driver may be implemented using discrete circuit elements or in software and utilizes separate current regulation for different segments of an ac line voltage cycle .