mirror of
https://github.com/kittywitch/esp32-c3-meepy.git
synced 2026-02-09 07:59:18 -08:00
chore: reformat a little manually
This commit is contained in:
parent
239e5368be
commit
41c3c33a09
1 changed files with 5 additions and 0 deletions
|
|
@ -51,9 +51,11 @@ impl<'spi> TFT<'spi> {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
struct DrawFlipper<'a, 'spi> {
|
||||
display: &'a mut Ili<'spi>,
|
||||
}
|
||||
|
||||
impl<'a, 'spi> DrawTarget for DrawFlipper<'a, 'spi> {
|
||||
type Error = <Ili<'spi> as DrawTarget>::Error;
|
||||
type Color = <Ili<'spi> as DrawTarget>::Color;
|
||||
|
|
@ -68,11 +70,14 @@ impl<'a, 'spi> DrawTarget for DrawFlipper<'a, 'spi> {
|
|||
}))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Dimensions for DrawFlipper<'a, '_> {
|
||||
fn bounding_box(&self) -> Rectangle {
|
||||
self.display.bounding_box()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
impl<'spi> TFT<'spi> {
|
||||
pub fn new(
|
||||
spi2: SPI2<'spi>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue