Page 1 of 1

Statically-Allocated I2C Component

Posted: Mon Sep 06, 2021 8:17 pm
by therealergo
Hey All!

In a recent project, I was having issues with jitter caused by all of the ESP-IDF I2C driver's heap allocations. It looks like there's currently work going into updating this driver to allow static allocation in the ESP-IDF repo, but unfortunately I'm stuck on ESP-IDF 4.3 right now so I can't use it. To work around this, I created a simple (~100loc) component that allows for statically-allocated use of the existing I2C driver. You can find it here https://github.com/therealergo/i2c_esp32_static if that sounds like something you'd find handy.

Re: Statically-Allocated I2C Component

Posted: Sat Sep 11, 2021 6:10 am
by fasani
Good job there! And interesting contribution.
I starred this in GitHub since may come in handy soon