ivanseidel / DueTimer

⏳ Timer Library fully implemented for Arduino DUE
MIT License
212 stars 89 forks source link

PWM , hardware generating #63

Closed abd-alaz closed 6 years ago

abd-alaz commented 6 years ago

Hi There how to use the library to generate PWM (hardware) signal, something similar to the Mega2560 library please

http://playground.arduino.cc/Code/Timer1

regards

ivanseidel commented 6 years ago

Hi @abd-alaz, have you tried using analogWrite(..)? It generates PWM with a default clock frequency. You can also tweek the frequency and other things with a few hacks...