How do I code to use the Nano timer1 to toggle an output

I am somewhat familiar with coding to make projects function, but I am not knowledgeable about how to use existing hardware timers in the Nano cpu. I need some education as to what and how to utilize these timers without damaging the Nano. I would like to be able to on the fly change the Output toggle rate (on-off). Idon't want to affect the comms of SPl or I2c or Serial. It would be nice to know if there is a library that gives an option like this.

Which Nano? There are half a dozen of them.

If you have the Classic Nano, the TimerOne library should be useful.

Library Docs

1 Like

A ebay Nano clone ver 3

Post a link to the thing.

That should work with TimerOne.

Thanks, I'll try the library and see if it suits what I want to do.
thanks again
Unlike

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.