Control LED by time slice