A small stack of low-level libraries for driving peripherals from a Raspberry Pi Pico:

  • vish_busio — serial bus implementations (I2C, SPI) for the Pico.
  • vish_i2cdev — a low-level I2C device base class built on top of vish_busio.
  • vish_ina260 — a driver for the INA260 current sensor, built on vish_i2cdev.

Each layer only depends on the one below it, so a new I2C sensor driver is mostly just filling in register maps on top of vish_i2cdev.