@Alligator , variable frequency PWM is not part of the Core or Photon firmware functions, at least not at this time.
@Alligator Check out our 'hack' of using the serial i/f to generate PWM. It is possible to customise for a selection of duty cycles. 30kHz is supported in the code.
We have finally found an easy way to get Hardware PWM for Infrared signals using the Photon, using the UART hack below.
It may also be of use to others looking for faster PWM and variable duty cycles at 10% intervals.
The full source code and IR driver circuit are availabe via the link above or via http://www.AnalysIR.com/
PS: This should also work on Spark & other fast MCUs, if needed. (untested)
.[image]