Skip to main content

Crate oxstack_drivers

Crate oxstack_drivers 

Source
Expand description

Chip drivers for M5Stack hardware.

Every driver here is written against the portable embedded-hal / embedded-hal-async 1.0 traits, never against a concrete HAL. That keeps them testable on the host (see each module’s tests) and reusable on any board that carries the same chip.

Design rules shared by all drivers:

  • no allocation, no global state, no logging in hot paths;
  • the driver owns its bus handle; sharing a bus is the caller’s job (e.g. embassy-embedded-hal’s I2cDevice);
  • register maps are private; the public API speaks in domain types.

Modules§

axes
Mapping a sensor’s axes onto a board’s.
bmi270
Bosch BMI270 6-axis IMU (accelerometer + gyroscope) over I²C.
es8311
Everest ES8311 mono audio codec (one ADC, one DAC) over I²C control.
st7789
Sitronix ST7789 TFT controller (4-wire SPI, RGB565).
tca8418
TI TCA8418 I²C keypad scanner.