@@ -31,7 +31,7 @@ use esp_hal::{
31
31
use esp_println:: { logger:: init_logger_from_env, println} ;
32
32
use log:: info;
33
33
use mipidsi:: options:: { ColorOrder , Orientation } ;
34
- use mipidsi:: { Builder , models:: ILI9341Rgb565 } ;
34
+ use mipidsi:: { Builder , models:: GC9A01 } ;
35
35
use mipidsi:: { interface:: SpiInterface , options:: ColorInversion } ;
36
36
// includes NonSend and NonSendMut
37
37
@@ -49,7 +49,7 @@ type MyDisplay = mipidsi::Display<
49
49
ExclusiveDevice < SpiDmaBus < ' static , Blocking > , Output < ' static > , Delay > ,
50
50
Output < ' static > ,
51
51
> ,
52
- ILI9341Rgb565 ,
52
+ GC9A01 ,
53
53
Output < ' static > ,
54
54
> ;
55
55
@@ -317,10 +317,10 @@ fn main() -> ! {
317
317
// Reset pin
318
318
let reset = Output :: new ( peripherals. GPIO10 , Level :: Low , OutputConfig :: default ( ) ) ;
319
319
// Initialize the display using mipidsi's builder.
320
- let mut display: MyDisplay = Builder :: new ( ILI9341Rgb565 , di)
320
+ let mut display: MyDisplay = Builder :: new ( GC9A01 , di)
321
321
. reset_pin ( reset)
322
322
. display_size ( 240 , 240 )
323
- . orientation ( Orientation :: new ( ) . flip_horizontal ( ) )
323
+ // .orientation(Orientation::new().flip_horizontal())
324
324
. color_order ( ColorOrder :: Bgr )
325
325
. invert_colors ( ColorInversion :: Inverted )
326
326
. init ( & mut display_delay)
0 commit comments