WiringProject / Wiring

Wiring Framework
http://wiring.org.co/
Other
217 stars 168 forks source link

Add a simple Timer example for CTC mode. #5

Open ydirson opened 12 years ago

ydirson commented 12 years ago

It was a bit of a hassle to make Timer1 to work without an example.

This one is surely not perfect, as calling setMode() with a literal value is likely to scare people away. A step further would be to add a better API to HardwareSerial, but this example has the merit of working today :)