added ability to control lights with PWM via counters