I'm afraid there isn't a way to use those two separately - they both use the same hardware, it's just that one is a negated version of the other one.
You should hopefully be able to find a set of pins that don't share the same TIMx_CHy part?
Or... How fast/accurate do you need the PWM to go? You can still use software PWM on pins that are tricky with something like analogWrite(pin, 0.5, { freq: 100, soft:true }).
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.
I'm afraid there isn't a way to use those two separately - they both use the same hardware, it's just that one is a negated version of the other one.
You should hopefully be able to find a set of pins that don't share the same
TIMx_CHy
part?Or... How fast/accurate do you need the PWM to go? You can still use software PWM on pins that are tricky with something like
analogWrite(pin, 0.5, { freq: 100, soft:true })
.