periph
Peripheral chip drivers for embedded systems — sensors, actuators, and other ICs connected via I²C, SPI, or UART.
no_stdcompatible — runs on bare-metal targets (ESP32-S3, STM32, …) and Linux- Generic over
embedded-hal1.0 — bring your own transport - Two-tier API —
*Minimalfor the primary use case,*Fullfor complete chip functionality
Install
Or in Cargo.toml:
[]
= "0.1.0"
Example
use I2cdev;
use Ina226Minimal;
Supported chips
| Chip | Category |
|---|---|
| AS5600 | Magnetometer |
| BMP180 | Pressure sensor |
| BMP280 | Pressure sensor |
| INA219 | Power monitor |
| INA226 | Power monitor |
| INA3221 | Power monitor (3-ch) |
| MCP23017 | IO expander (16-bit) |
| MCP4725 | 12-bit DAC |
| PCF8574 | IO expander (8-bit) |
| PCF8575 | IO expander (16-bit) |
| SK6812RGBW | LED (addressable RGBW) |
| WS2812B | LED (addressable RGB) |