I’ve written a C library that allows non-blocking access to I2C peripherals. It may be of interest if you need to access I2C peripherals from a program that has hard realtime constraints.
The library is available at http://github.com/keith-hanna/pico-nbi. It includes an example showing how a SSD1306 display and a MPU6050 gyro-accelerometer may both be accessed at their maximal rates without greatly slowing down a concurrently running benchmark task.
The library is available at http://github.com/keith-hanna/pico-nbi. It includes an example showing how a SSD1306 display and a MPU6050 gyro-accelerometer may both be accessed at their maximal rates without greatly slowing down a concurrently running benchmark task.
Statistics: Posted by KeithHan — Thu Jan 22, 2026 1:25 pm — Replies 1 — Views 43