Seeeduino Xiao PWM

I am trying to generate two PWM outputs on the XIAO SAMD21, one at 2kHz, the other at 120Hz. By following the example in the comment marked as the solution to this thread I am able to use the pwm function to change the frequency of one output, but only on pin 1. Is there a way to use pwm to generate two PWM outputs at different frequencies, and is there a way to use the function on a different pin than pin 1? I know the function takes a pin as an argument, but when I try it on other pins I am unable to alter the frequency.