OcoBri wrote:And is there more than one PWM-capable pin?
See
this link.
There are two PWM channels on the PI 3B. Typically the user only has real access to channel 0, so that leaves really only one (1) PWM pin (by default) which you have access to: pin12 GPIO18.
Having said that, there are other pins... see the link above... and with pigpio there are many (somehow) I haven't played with it yet... but that's on my back-burner.
Again, I don't yet know how pigpio works--- but it is possible to 'create' your own PWM capability with your own software! Although, its not the same as having a dedicated oscillator for the purpose. PWM does not have to run fast... even low audio frequencies work well... heck even frequencies above 8Hz are useful; and you can generate those yourself easily handling the duty cycle yourself. Basically, you make your own oscillator running in one thread, and then you communicate to that thread via interprocess comms to handle the duty cycle! (I'm not sure yet, but I think that is what Joan is doing with pigpio; I might be wrong of course).