khoih-prog / TimerInterrupt

This library enables you to use Interrupt from Hardware Timers on an Arduino, such as Nano, UNO, Mega, etc. It now supports 16 ISR-based timers, while consuming only 1 hardware Timer. Timers' interval is very long (ulong millisecs). The most important feature is they're ISR-based timers. Therefore, their executions are not blocked by bad-behaving functions or tasks. This important feature is absolutely necessary for mission-critical tasks.
MIT License
98 stars 11 forks source link

Error compiling for arduino leonardo #13

Closed eslavko closed 3 years ago

eslavko commented 3 years ago

Hello... Just entering include line in sketch #include the compiling is not possible for leonardo board

compile give: /home/slavko/Arduino/libraries/TimerInterrupt-master/src/TimerInterrupt-Impl.h: In member function 'void TimerInterrupt::resumeTimer()': /home/slavko/Arduino/libraries/TimerInterrupt-master/src/TimerInterrupt-Impl.h:599:3: error: 'else' without a previous 'if' else if (_timer == 1) ^~~~ exit status 1 Error compiling for board Arduino Leonardo.

khoih-prog commented 3 years ago

Sorry this library now does not support Arduino Leonardo board. I'll try to release a new version to add support to Arduino Leonardo board within several days.

khoih-prog commented 3 years ago

The new release has been published to provide support to AVR ATMEGA_16U4, ATMEGA_32U4 such as Leonardo, YUN, ESPLORA, etc.

Please test and report if it's OK.

Your contribution is noted in Contributions and Thanks


Releases v1.3.0

  1. Add support to AVR ATMEGA_16U4, ATMEGA_32U4 such as Leonardo, YUN, ESPLORA, etc.
  2. Update examples