@@ -74,24 +74,21 @@ uint8_t display_init_sequence[] = {
7474 0x11 , 0x1d , 0x23 , 0x35 , 0x41 , 0x4b , 0x4b , 0x42 , 0x3A ,
7575 0x27 , 0x1B , 0x08 , 0x09 , 0x03 , 0x00 , 0x01 ,
7676 0x3a , 1 , 0x55 ,
77- 0x36 , 1 , 0x00 ,
77+ 0x36 , 1 , 0x60 ,
7878 0x11 , DELAY , 150 /5 , // Exit Sleep, then delay 150 ms
7979 0x29 , DELAY , 50 /5
8080};
8181
8282void board_init (void ) {
83- busio_spi_obj_t * spi = & displays [0 ].fourwire_bus .inline_bus ;
84- common_hal_busio_spi_construct (spi , & pin_PA13 , & pin_PA12 , & pin_PA14 );
85- common_hal_busio_spi_never_reset (spi );
86-
87- displayio_fourwire_obj_t * bus = & displays [0 ].fourwire_bus ;
88- bus -> base .type = & displayio_fourwire_type ;
89- common_hal_displayio_fourwire_construct (bus ,
90- spi ,
91- & pin_PB05 , // TFT_DC Command or data
92- & pin_PB06 , // TFT_CS Chip select
93- & pin_PA00 , // TFT_RST Reset
94- 24000000 );
83+ displayio_parallelbus_obj_t * bus = & displays [0 ].parallel_bus ;
84+ bus -> base .type = & displayio_parallelbus_type ;
85+ common_hal_displayio_parallelbus_construct (bus ,
86+ & pin_PA16 , // Data0
87+ & pin_PB05 , // Command or data
88+ & pin_PB06 , // Chip select
89+ & pin_PB09 , // Write
90+ & pin_PB04 , // Read
91+ & pin_PA00 ); // Reset
9592
9693 displayio_display_obj_t * display = & displays [0 ].display ;
9794 display -> base .type = & displayio_display_type ;
@@ -101,7 +98,7 @@ void board_init(void) {
10198 320 , // Height
10299 0 , // column start
103100 0 , // row start
104- 270 , // rotation
101+ 0 , // rotation
105102 16 , // Color depth
106103 false, // grayscale
107104 false, // pixels_in_byte_share_row (unused for depths > 8)
0 commit comments