You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to attach a callback to an interrupt much like the audio interrupt only I'll be adjusting the timer's counter so I can do variable sample rate stuff. I can do this in the while loop but thought the interrupt route would be more efficient and I could avoid cluttering up the main loop (which I was going to use for checking CV inputs and things).
The text was updated successfully, but these errors were encountered:
This is indeed a planned feature, and was only recently added to libDaisy. There's usually a bit of a lag between updates to libDaisy, and DaisyDuino.
That said, DaisyDuino is just a wrapper for Daisy-specific pins, and features not directly provided by the STM32 Core (most specifically audio).
For other, more generic peripherals (timers, serial communication, etc.) you can most likely accomplish your goals with the ST provided API.
It looks like there is a specific HardwareTimer class as part of the ST Arduino Core.
This may already be known since it appears to be in the TODO in tim.h (Dispatch periodic callback(s)) but thought I'd log it here as I ran into that tonight and it took me some time to realize it was missing from DaisyDuino when looking at the general libDaisy docs (https://electro-smith.github.io/libDaisy/classdaisy_1_1_timer_handle.html#a6a3a083902c7b5fbfc431242d60571f4).
I wanted to attach a callback to an interrupt much like the audio interrupt only I'll be adjusting the timer's counter so I can do variable sample rate stuff. I can do this in the while loop but thought the interrupt route would be more efficient and I could avoid cluttering up the main loop (which I was going to use for checking CV inputs and things).
The text was updated successfully, but these errors were encountered: