initialising pwm commands when we know how many pwm modules we have, not in construct