Ahh - ok, that makes a lot more sense! I think there are a few issues:
If you've got multiple PWMs on the same timer hardware then when setting the new value, the main counter value can get reset and you get flicker
Currently espruino is lazy at choosing timers, and if you specify a frequency it doesn't even try and find a timer with the same frequency
You can only have a max of 7 software PWMs - also the more you have the more likely things are to be a bit flickery
I'll see what I can do about the first two in a firmware update, however I think you could probably do ok for now by using three hardware PWMs and 7 software?
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.
Ahh - ok, that makes a lot more sense! I think there are a few issues:
I'll see what I can do about the first two in a firmware update, however I think you could probably do ok for now by using three hardware PWMs and 7 software?