Struct st7735_async_low::Madctl [−][src]
Defines the orientation parameters of the screen.
Example
let mut mctl = Madctl::default(); mctl.set_row_address_order(RowOrder::TopToBottom) .set_column_address_order(ColumnOrder::LeftToRight) .set_row_column_swap(RowColumnSwap::Swapped) .set_vertical_refresh_order(RowOrder::BottomToTop) .set_horizontal_refresh_order(ColumnOrder::RightToLeft) .set_rgb_order(ColorComponentOrder::BlueGreenRed); assert_eq!(mctl.row_address_order(), RowOrder::TopToBottom); assert_eq!(mctl.row_column_swap(), RowColumnSwap::Swapped); // Can invoke `Commands::madctl(mctl)` to send it to the LCD.
Implementations
impl Madctl
[src]
pub fn row_address_order(&self) -> RowOrder
[src]
pub fn set_row_address_order(&mut self, value: RowOrder) -> &mut Self
[src]
pub fn column_address_order(&self) -> ColumnOrder
[src]
pub fn set_column_address_order(&mut self, value: ColumnOrder) -> &mut Self
[src]
pub fn row_column_swap(&self) -> RowColumnSwap
[src]
pub fn set_row_column_swap(&mut self, value: RowColumnSwap) -> &mut Self
[src]
pub fn vertical_refresh_order(&self) -> RowOrder
[src]
pub fn set_vertical_refresh_order(&mut self, value: RowOrder) -> &mut Self
[src]
pub fn horizontal_refresh_order(&self) -> ColumnOrder
[src]
pub fn set_horizontal_refresh_order(&mut self, value: ColumnOrder) -> &mut Self
[src]
pub fn rgb_order(&self) -> ColorComponentOrder
[src]
pub fn set_rgb_order(&mut self, value: ColorComponentOrder) -> &mut Self
[src]
Trait Implementations
impl Clone for Madctl
[src]
fn clone(&self) -> Madctl
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Madctl
[src]
impl Default for Madctl
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,