Timers & interrupts PWM

Just to link multiple similar threads, I posted a PWM gist here: Using PWM in Particle Photon

Since the tim_period is not being honoured, I don’t think a custom frequency is possible. Have asked for bright ideas!