st7567s/interface.rs
1//! Display interface convienience factory methods
2
3pub use display_interface_i2c::I2CInterface;
4
5/// Wrapper for creating an I2CInterface with device-specific parameters
6pub struct I2CDisplayInterface;
7
8impl I2CDisplayInterface {
9 /// Create a new I2CInterface for the ST7567S display
10 pub fn new<I2C>(i2c: I2C) -> I2CInterface<I2C>
11 where
12 I2C: embedded_hal::blocking::i2c::Write,
13 {
14 I2CInterface::new(i2c, 0x3f, 0x40)
15 }
16}