AC light control with zero crossing detection