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, RST> Graphics<'a, SPI, DC, RST>
impl<'a, SPI, DC, RST> Graphics<'a, SPI, DC, RST>
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
§Exemple
use embassy_st7789v_plot::Graphics;
let mut gfx = Graphics::new(display);
gfx.pixel(100, 150, Color::GREEN).await;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