use a bitmask to decide whether or not we will set a PWM to a new value