yes using the PWM command is by far the better way to get pulse width modulation without the worry for the individual for next loops...