[−][src]Trait ssd1306::displaysize::DisplaySize
Display information
This trait describes information related to a particular display. This includes resolution, offset and framebuffer size.
Associated Types
type BufferSize: ArrayLength<u8>
[src]
Size of framebuffer. Because the display is monocrome, this is width * height / 8
Associated Constants
pub const WIDTH: u8
[src]
Width in pixels
pub const HEIGHT: u8
[src]
Height in pixels
pub const OFFSETX: u8
[src]
Horizontal offset in pixels
pub const OFFSETY: u8
[src]
Vertical offset in pixels
Required methods
pub fn configure(
&self,
iface: &mut impl WriteOnlyDataCommand
) -> Result<(), DisplayError>
[src]
&self,
iface: &mut impl WriteOnlyDataCommand
) -> Result<(), DisplayError>
Send resolution-dependent configuration to the display
See Command::ComPinConfig
for more information
Implementors
impl DisplaySize for DisplaySize64x48
[src]
pub const WIDTH: u8
[src]
pub const HEIGHT: u8
[src]
pub const OFFSETX: u8
[src]
pub const OFFSETY: u8
[src]
type BufferSize = U384
pub fn configure(
&self,
iface: &mut impl WriteOnlyDataCommand
) -> Result<(), DisplayError>
[src]
&self,
iface: &mut impl WriteOnlyDataCommand
) -> Result<(), DisplayError>
impl DisplaySize for DisplaySize72x40
[src]
pub const WIDTH: u8
[src]
pub const HEIGHT: u8
[src]
pub const OFFSETX: u8
[src]
pub const OFFSETY: u8
[src]
type BufferSize = U360
pub fn configure(
&self,
iface: &mut impl WriteOnlyDataCommand
) -> Result<(), DisplayError>
[src]
&self,
iface: &mut impl WriteOnlyDataCommand
) -> Result<(), DisplayError>
impl DisplaySize for DisplaySize96x16
[src]
pub const WIDTH: u8
[src]
pub const HEIGHT: u8
[src]
type BufferSize = U192
pub fn configure(
&self,
iface: &mut impl WriteOnlyDataCommand
) -> Result<(), DisplayError>
[src]
&self,
iface: &mut impl WriteOnlyDataCommand
) -> Result<(), DisplayError>
impl DisplaySize for DisplaySize128x32
[src]
pub const WIDTH: u8
[src]
pub const HEIGHT: u8
[src]
type BufferSize = U512
pub fn configure(
&self,
iface: &mut impl WriteOnlyDataCommand
) -> Result<(), DisplayError>
[src]
&self,
iface: &mut impl WriteOnlyDataCommand
) -> Result<(), DisplayError>
impl DisplaySize for DisplaySize128x64
[src]
pub const WIDTH: u8
[src]
pub const HEIGHT: u8
[src]
type BufferSize = U1024
pub fn configure(
&self,
iface: &mut impl WriteOnlyDataCommand
) -> Result<(), DisplayError>
[src]
&self,
iface: &mut impl WriteOnlyDataCommand
) -> Result<(), DisplayError>