pub struct Graphics<'a, SPI, DC, RST = NoPin>{
pub display: &'a mut St7789v<SPI, DC, RST>,
}Fields§
§display: &'a mut St7789v<SPI, DC, RST>Référence vers l’affichage ST7789V
Implementations§
Source§impl<'a, SPI, DC> Graphics<'a, SPI, DC, NoPin>
impl<'a, SPI, DC> Graphics<'a, SPI, DC, NoPin>
Sourcepub fn new_no_rst(display: &'a mut St7789v<SPI, DC, NoPin>) -> Self
pub fn new_no_rst(display: &'a mut St7789v<SPI, DC, NoPin>) -> Self
Crée un nouveau contexte graphique sans broche RST.
§Arguments
display- Référence mutable vers l’affichage ST7789V
Source§impl<'a, SPI, DC, RST> Graphics<'a, SPI, DC, RST>
impl<'a, SPI, DC, RST> Graphics<'a, SPI, DC, RST>
Sourcepub fn new(display: &'a mut St7789v<SPI, DC, RST>) -> Self
pub fn new(display: &'a mut St7789v<SPI, DC, RST>) -> Self
Crée un nouveau contexte graphique avec broche RST.
§Arguments
display- Référence mutable vers l’affichage ST7789V
Sourcepub async fn pixel(&mut self, x: i32, y: i32, color: Color)
pub async fn pixel(&mut self, x: i32, y: i32, color: Color)
Trace un pixel à la position (x, y) avec la couleur donnée.
Les coordonnées négatives ou en dehors de l’écran sont ignorées silencieusement.
§Arguments
x- Coordonnée X (peut être négative ou hors écran)y- Coordonnée Y (peut être négative ou hors écran)color- Couleur du pixel
Auto Trait Implementations§
impl<'a, SPI, DC, RST> Freeze for Graphics<'a, SPI, DC, RST>
impl<'a, SPI, DC, RST> RefUnwindSafe for Graphics<'a, SPI, DC, RST>
impl<'a, SPI, DC, RST> Send for Graphics<'a, SPI, DC, RST>
impl<'a, SPI, DC, RST> Sync for Graphics<'a, SPI, DC, RST>
impl<'a, SPI, DC, RST> Unpin for Graphics<'a, SPI, DC, RST>
impl<'a, SPI, DC, RST> UnsafeUnpin for Graphics<'a, SPI, DC, RST>
impl<'a, SPI, DC, RST = NoPin> !UnwindSafe for Graphics<'a, SPI, DC, RST>
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