Module interface

Module interface 

Source
Expand description

§Communication Interface

This module defines the CommunicationInterface trait and provides implementations for I2C and SPI (planned). It abstracts the underlying hardware communication details.

§Example

Creating an I2C interface.

use mini_oled::interface::i2c::I2cInterface;

// let i2c = ...; // Your embedded-hal I2C driver
let interface = I2cInterface::new(i2c, 0x3C);

Modules§

i2c
spi

Traits§

CommunicationInterface
Trait representing the communication interface with the display.