Changes to make examples compile on Arduino Leonardo

Changes to make examples compile on Arduino Leonardo
Changed timers to specific to Leonardo