ohmtech-rdi / eurorack-blocks

Software to Hardware Prototyping for Eurorack using C++, Max/Gen~ or Faust
Other
304 stars 21 forks source link

Move I2C operations out of audio thread #471

Open ohmtech-rdi opened 1 year ago

ohmtech-rdi commented 1 year ago

Currently, for the kivu12 board, the LED driver update is done in the audio thread. The function itself is blocking, and we don't know how much it blocks or even if the upper bounds of this delay has an acceptable value.

Typically we have one user that might suffer from this issue.

Rather than that, we should move the call to this function from the main thread, and maybe somehow introduce an abstraction for the boards to implement that.