File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
ports/raspberrypi/boards/lilygo_t_display_rp2040 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ uint8_t display_init_sequence[] = {
66
66
};
67
67
68
68
static void display_init (void ) {
69
- busio_spi_obj_t * spi = & displays [0 ].fourwire_bus .inline_bus ;
69
+ displayio_fourwire_obj_t * bus = & allocate_display_bus ()-> fourwire_bus ;
70
+ busio_spi_obj_t * spi = & bus -> inline_bus ;
70
71
71
72
common_hal_busio_spi_construct (
72
73
spi ,
@@ -77,7 +78,6 @@ static void display_init(void) {
77
78
78
79
common_hal_busio_spi_never_reset (spi );
79
80
80
- displayio_fourwire_obj_t * bus = & displays [0 ].fourwire_bus ;
81
81
bus -> base .type = & displayio_fourwire_type ;
82
82
83
83
common_hal_displayio_fourwire_construct (
@@ -91,7 +91,7 @@ static void display_init(void) {
91
91
0 // phase
92
92
);
93
93
94
- displayio_display_obj_t * display = & displays [ 0 ]. display ;
94
+ displayio_display_obj_t * display = & allocate_display () -> display ;
95
95
display -> base .type = & displayio_display_type ;
96
96
97
97
common_hal_displayio_display_construct (
You can’t perform that action at this time.
0 commit comments