pub fn new(di: DI, rst: Option<OUT>, bl: Option<OUT>, size_x: u16, size_y: u16) -> Self {
        Self {
            di,
            rst,
            bl,
            size_x,
            size_y,
            orientation: Orientation::default(),
        }
    }
///
/// Creates a new ST7789 driver instance
///
/// # Arguments
///
/// * `di` - a display interface for talking with the display
/// * `rst` - display hard reset pin
/// * `bl` - backlight pin
/// * `size_x` - x axis resolution of the display in pixels
/// * `size_y` - y axis resolution of the display in pixels
///
Creates a new ST7789 driver instance
Creates a new ST7789 driver instance
pub fn new(di: DI, rst: Option<OUT>, bl: Option<OUT>, size_x: u16, size_y: u16) -> Self {
        Self {
            di,
            rst,
            bl,
            size_x,
            size_y,
            orientation: Orientation::default(),
        }
    }
pub fn new ( di : DI , rst : Option < OUT > , bl : Option < OUT > , size_x : u16 , size_y : u16 ) -> Self { Self { di , rst , bl , size_x , size_y , orientation : Orientation :: default ( ) , } }
Creates a new ST7789 driver instance
Creates a new ST7789 driver instance
di
DI
rst
Option<OUT>
bl
Option<OUT>
size_x
u16
size_y
u16
di
DI
rst
Option<OUT>
bl
Option<OUT>
size_x
u16
size_y
u16