Mutiple simultaneous PWM outputs?

Hi -

In looking at the language reference, it’s not clear if I can set up more than one pin as PWM outputs, and whether I can invoke more than one simultaneous PWM output value.

Has anyone tried this? It’s straightforward if programming at the assembly language level, but that’s not why I bought the Arduino boards! :slight_smile:

Thanks!

  • Steve

You can use digital pins 9 and 10 as PWM outputs, simultaneously and with different values (duty cycles). Just use analogWrite() to start the PWM wave, which will continue until another call to analogWrite (or you try to use the pins for normal digital i/o). In the next release of the software, pin 11 will also be useable as PWM output.