pwm_set_phase_correct() function
Set PWM phase correct on/off Setting phase control to true means that instead of wrapping back to zero when the wrap point is reached, the PWM starts counting back down. The output frequency is halved when phase-correct mode is enabled.
Arguments
slice_num
PWM slice number
phase_correct
true to set phase correct modulation, false to set trailing edge