Closed tbillion closed 2 years ago
Hi @tbillion
Thanks for your interest and usage of the libraries.
This library enables you to use Interrupt from Hardware Timers on supported Arduino boards such as AVR, Mega-AVR, ESP8266, ESP32, SAMD, SAM DUE, nRF52, STM32F/L/H/G/WB/MP1, Teensy, Nano-33-BLE, etc.
As you know, this TimerInterrupt_Generic library is the merge of the TimerInterrupt libraries, such as RPI_PICO_TimerInterrupt, MBED_RPI_PICO_TimerInterrupt, etc.
The pros:
The cons:
would it be recommended to remove that and install this?
Those TimerInterrupt and this TimerInterrupt_Generic can coexist. So you don't need to remove any library.
also i see every where in the documentation that before using a timer you should see if it is used elsewhere , how do i go about doing that ?
Using TimerInterrupt requires better hardware-related knowledge and skills.
If you suspect something wrong with a Timer, try to change to another one and see if OK.
Read the core or libraries documentation to know if any Timer has been used and verify your assumption. There is no way anybody can know if a Timer has been used or not, without knowing more info (such as libraries in use, internal core usage, etc.)
In the extreme case when you couldn't find any doc, run the minimal code, then debug print the suspected Timer Registers and see if it has been used.
As this is not an issue or bug of this library, I'm closing now and suggest to use the Discussions if not a library's bug.
when i initially came across this timer code i came across the rp2040 only version which has the archived github page, would it be recommended to remove that and install this?
also i see every where in the documentation that before using a timer you should see if it is used elsewhere , how do i go about doing that ?