@@ -136,30 +136,12 @@ void common_hal_displayio_display_construct(displayio_display_obj_t *self,
136
136
137
137
// Set the group after initialization otherwise we may send pixels while we delay in
138
138
// initialization.
139
- mp_printf (& mp_plat_print , "Inside display make_new\n" );
140
- is_null (& circuitpython_splash );
141
- //is_null(0);
142
- // if(circuitpython_splash == mp_const_none) {
143
- // mp_printf(&mp_plat_print, "Splash is NULL \n");
144
- // }
145
- // mp_printf(&mp_plat_print, *circuitpython_splash);
146
- // mp_printf(&mp_plat_print, "\n");
147
- //common_hal_displayio_display_show(self, &circuitpython_splash);
148
- common_hal_displayio_display_set_auto_refresh (self , auto_refresh );
149
- }
150
139
151
- void is_null (displayio_group_t * root_group ){
152
- if (root_group == NULL ){
153
- mp_printf (& mp_plat_print , "root_group is NULL\n" );
154
- }else {
155
- mp_printf (& mp_plat_print , "root_group not NULL" );
156
- }
140
+ common_hal_displayio_display_set_root_group (self , & circuitpython_splash );
141
+ common_hal_displayio_display_set_auto_refresh (self , auto_refresh );
157
142
}
158
143
159
144
bool common_hal_displayio_display_show (displayio_display_obj_t * self , displayio_group_t * root_group ) {
160
- if (root_group == NULL ){
161
- mp_printf (& mp_plat_print , "Its NULL inside display.show()\n" );
162
- }
163
145
return displayio_display_core_set_root_group (& self -> core , root_group );
164
146
}
165
147
@@ -448,7 +430,10 @@ void release_display(displayio_display_obj_t *self) {
448
430
449
431
void reset_display (displayio_display_obj_t * self ) {
450
432
common_hal_displayio_display_set_auto_refresh (self , true);
451
- common_hal_displayio_display_show (self , & circuitpython_splash );
433
+ circuitpython_splash .x = 0 ; // reset position in case someone moved it.
434
+ circuitpython_splash .y = 0 ;
435
+ supervisor_start_terminal (self -> core .width , self -> core .height );
436
+ common_hal_displayio_display_set_root_group (self , & circuitpython_splash );
452
437
}
453
438
454
439
void displayio_display_collect_ptrs (displayio_display_obj_t * self ) {
0 commit comments