pub struct Ssd13xx<'a, V: Variant, T: Transport<'a>, const WIDTH: usize = CONTROLLER_WIDTH, const HEIGHT: usize = CONTROLLER_HEIGHT> { /* private fields */ }Implementations§
Source§impl<'a, V: Variant, T: Transport<'a>, const WIDTH: usize, const HEIGHT: usize> Ssd13xx<'a, V, T, WIDTH, HEIGHT>
impl<'a, V: Variant, T: Transport<'a>, const WIDTH: usize, const HEIGHT: usize> Ssd13xx<'a, V, T, WIDTH, HEIGHT>
Sourcepub fn new(
transport: &'a T,
buffer: &'static mut [u8],
enable_charge_pump: bool,
panel: PanelConfig,
) -> Self
pub fn new( transport: &'a T, buffer: &'static mut [u8], enable_charge_pump: bool, panel: PanelConfig, ) -> Self
Create the screen driver.
enable_charge_pump is ignored for controllers without a charge pump.
pub fn init_screen(&self)
Trait Implementations§
Source§impl<'a, V: Variant, T: Transport<'a>, const WIDTH: usize, const HEIGHT: usize> Screen<'a> for Ssd13xx<'a, V, T, WIDTH, HEIGHT>
impl<'a, V: Variant, T: Transport<'a>, const WIDTH: usize, const HEIGHT: usize> Screen<'a> for Ssd13xx<'a, V, T, WIDTH, HEIGHT>
Source§fn set_client(&self, client: &'a dyn ScreenClient)
fn set_client(&self, client: &'a dyn ScreenClient)
Set the object to receive the asynchronous command callbacks.
Source§fn get_resolution(&self) -> (usize, usize)
fn get_resolution(&self) -> (usize, usize)
Get a tuple
(width, height) with the current resolution (in pixels). Read moreSource§fn get_pixel_format(&self) -> ScreenPixelFormat
fn get_pixel_format(&self) -> ScreenPixelFormat
Get the current pixel format. Read more
Source§fn get_rotation(&self) -> ScreenRotation
fn get_rotation(&self) -> ScreenRotation
Get the current rotation. Read more
Source§fn set_write_frame(
&self,
x: usize,
y: usize,
width: usize,
height: usize,
) -> Result<(), ErrorCode>
fn set_write_frame( &self, x: usize, y: usize, width: usize, height: usize, ) -> Result<(), ErrorCode>
Sets the write frame. Read more
Source§fn write(
&self,
data: SubSliceMut<'static, u8>,
_continue: bool,
) -> Result<(), ErrorCode>
fn write( &self, data: SubSliceMut<'static, u8>, _continue: bool, ) -> Result<(), ErrorCode>
Write data from
buffer to the selected write frame. Read moreSource§fn set_brightness(&self, brightness: u16) -> Result<(), ErrorCode>
fn set_brightness(&self, brightness: u16) -> Result<(), ErrorCode>
Set the display brightness value. Read more
Source§impl<'a, V: Variant, T: Transport<'a>, const WIDTH: usize, const HEIGHT: usize> ScreenSetup<'a> for Ssd13xx<'a, V, T, WIDTH, HEIGHT>
impl<'a, V: Variant, T: Transport<'a>, const WIDTH: usize, const HEIGHT: usize> ScreenSetup<'a> for Ssd13xx<'a, V, T, WIDTH, HEIGHT>
fn set_client(&self, client: &'a dyn ScreenSetupClient)
Source§fn set_resolution(&self, _resolution: (usize, usize)) -> Result<(), ErrorCode>
fn set_resolution(&self, _resolution: (usize, usize)) -> Result<(), ErrorCode>
Set the screen resolution in pixels with
(X, Y). Read moreSource§fn set_pixel_format(&self, _depth: ScreenPixelFormat) -> Result<(), ErrorCode>
fn set_pixel_format(&self, _depth: ScreenPixelFormat) -> Result<(), ErrorCode>
Set the pixel format. Read more
Source§fn set_rotation(&self, _rotation: ScreenRotation) -> Result<(), ErrorCode>
fn set_rotation(&self, _rotation: ScreenRotation) -> Result<(), ErrorCode>
Set the rotation of the display. Read more
Source§fn get_num_supported_resolutions(&self) -> usize
fn get_num_supported_resolutions(&self) -> usize
Get the number of supported resolutions. Read more
Source§fn get_supported_resolution(&self, index: usize) -> Option<(usize, usize)>
fn get_supported_resolution(&self, index: usize) -> Option<(usize, usize)>
Get the resolution specified by the given index. Read more
Source§fn get_num_supported_pixel_formats(&self) -> usize
fn get_num_supported_pixel_formats(&self) -> usize
Get the number of the pixel formats supported. Read more
Auto Trait Implementations§
impl<'a, V, T, const WIDTH: usize = CONTROLLER_WIDTH, const HEIGHT: usize = CONTROLLER_HEIGHT> !Freeze for Ssd13xx<'a, V, T, WIDTH, HEIGHT>
impl<'a, V, T, const WIDTH: usize = CONTROLLER_WIDTH, const HEIGHT: usize = CONTROLLER_HEIGHT> !RefUnwindSafe for Ssd13xx<'a, V, T, WIDTH, HEIGHT>
impl<'a, V, T, const WIDTH: usize = CONTROLLER_WIDTH, const HEIGHT: usize = CONTROLLER_HEIGHT> !Send for Ssd13xx<'a, V, T, WIDTH, HEIGHT>
impl<'a, V, T, const WIDTH: usize = CONTROLLER_WIDTH, const HEIGHT: usize = CONTROLLER_HEIGHT> !Sync for Ssd13xx<'a, V, T, WIDTH, HEIGHT>
impl<'a, V, T, const WIDTH: usize = CONTROLLER_WIDTH, const HEIGHT: usize = CONTROLLER_HEIGHT> !UnwindSafe for Ssd13xx<'a, V, T, WIDTH, HEIGHT>
impl<'a, V, T, const WIDTH: usize, const HEIGHT: usize> Unpin for Ssd13xx<'a, V, T, WIDTH, HEIGHT>
impl<'a, V, T, const WIDTH: usize, const HEIGHT: usize> UnsafeUnpin for Ssd13xx<'a, V, T, WIDTH, HEIGHT>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more