As a rough rule of thumb, if you hover over the PWM tag in the reference page, it'll give you something like TIMx_CHy. Espruino currently chooses the first one of these (there's a bug open to make it better at choosing).
This means:
If you specify a frequency for TIMx it'll apply to all PWM channels using TIMx
If you use exactly the same TIMx_CHy somewhere else then you'll have problems
Some pins say TIMx_CHyN - this means you get a negated version of the signal that was on TIMx_CHy.
There are other nasties - for instance TIMx can be on one set of pins (usually having numbering near to each other) OR another set, but it can't be spread over two sets - so using TIM1_CH1 on one set will mean that you can't use TIM1_CH2 on the other.
Hope that helps - inside the chip, the arrangement of pins is pretty complex (with a whole bunch of silicon erratas to go with it!). Espruino tries its best to hide it, but occasionally it shows through!
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks - was it you that also reported this bug? I get confused when the usernames are different ;)
It would be good to report this under 'Known Problems' in http://www.espruino.com/EspruinoBoard
As a rough rule of thumb, if you hover over the PWM tag in the reference page, it'll give you something like TIMx_CHy. Espruino currently chooses the first one of these (there's a bug open to make it better at choosing).
This means:
TIMx
it'll apply to all PWM channels usingTIMx
Hope that helps - inside the chip, the arrangement of pins is pretty complex (with a whole bunch of silicon erratas to go with it!). Espruino tries its best to hide it, but occasionally it shows through!