@@ -31,7 +31,7 @@ use esp_hal::{
3131use esp_println:: { logger:: init_logger_from_env, println} ;
3232use log:: info;
3333use mipidsi:: options:: { ColorOrder , Orientation } ;
34- use mipidsi:: { Builder , models:: ILI9341Rgb565 } ;
34+ use mipidsi:: { Builder , models:: GC9A01 } ;
3535use mipidsi:: { interface:: SpiInterface , options:: ColorInversion } ;
3636// includes NonSend and NonSendMut
3737
@@ -49,7 +49,7 @@ type MyDisplay = mipidsi::Display<
4949 ExclusiveDevice < SpiDmaBus < ' static , Blocking > , Output < ' static > , Delay > ,
5050 Output < ' static > ,
5151 > ,
52- ILI9341Rgb565 ,
52+ GC9A01 ,
5353 Output < ' static > ,
5454> ;
5555
@@ -317,10 +317,10 @@ fn main() -> ! {
317317 // Reset pin
318318 let reset = Output :: new ( peripherals. GPIO10 , Level :: Low , OutputConfig :: default ( ) ) ;
319319 // 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)
321321 . reset_pin ( reset)
322322 . display_size ( 240 , 240 )
323- . orientation ( Orientation :: new ( ) . flip_horizontal ( ) )
323+ // .orientation(Orientation::new().flip_horizontal())
324324 . color_order ( ColorOrder :: Bgr )
325325 . invert_colors ( ColorInversion :: Inverted )
326326 . init ( & mut display_delay)
0 commit comments