pub fn new(device_id: u8) -> I2CDisplay {
        let device_path = format!("/dev/i2c-{}", device_id);
        let d = LinuxI2CDevice::new(device_path, ADDRESS).unwrap();
        let mut display = I2CDisplay {
            device: d,
            frame: 0,
        };

        display.init_display().unwrap();

        display
    }
/// Creates a new I2CDisplay device using the I2C device identified by the provided
/// `device_id` (normally 1 or 2).
Creates a new I2CDisplay device using the I2C device identified by the provided
`device_id` (normally 1 or 2).
Creates a new I2CDisplay device using the I2C device identified by the provided ` device_id ` ( normally 1 or 2 ) .
pub fn new(device_id: u8) -> I2CDisplay {
        let device_path = format!("/dev/i2c-{}", device_id);
        let d = LinuxI2CDevice::new(device_path, ADDRESS).unwrap();
        let mut display = I2CDisplay {
            device: d,
            frame: 0,
        };
        display.init_display().unwrap();
        display
    }
pub fn new ( device_id : u8 ) -> I2CDisplay { let device_path = format ! ( " " device_id ) ; let d = LinuxI2CDevice :: new ( device_path , ADDRESS ) . unwrap ( ) ; let mut display = I2CDisplay { device : d , frame : 0 , } ; display . init_display ( ) . unwrap ( ) ; display }
Creates a new I2CDisplay device using the I2C device identified by the provided
`device_id` (normally 1 or 2).
Creates a new I2CDisplay device using the I2C device identified by the provided ` device_id ` ( normally 1 or 2 ) .
device_id
u8