You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • 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?


Avatar for Gordon @Gordon started