midilab / uClock

A tight BPM clock generator for Arduino and PlatformIO using hardware timer interruption. AVR, Teensy, STM32xx, ESP32 and RP2040 support
https://midilab.co/umodular
MIT License
164 stars 22 forks source link

Update esp32.h #45

Closed DenisM3lo closed 1 week ago

DenisM3lo commented 1 month ago

Update for latest ESP32 timer specs.

midilab commented 1 week ago

Hi @DenisM3lo ,

Thank you for your contribution! This is related to Espressif Arudino core update to 3.0.5 support.

We had another pull request with same changes and decided to merge it instead of this one because i notice a little problem in this PR version:

at setTimer() we should use us_interval instead of _init_clock, otherwise the library wont be able to change bpm timer other than the initialized timer value of _init_clock.

Once again thank you for your time and library support update contribution.