Skip to content

Commit f15d4b2

Browse files
authored
Merge pull request #10713 from tannewt/fix_dsi_bottom
Fix mipidsi cache flush
2 parents fa4caf8 + 3f0b1b8 commit f15d4b2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ports/espressif/common-hal/mipidsi/Display.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,9 @@ bool common_hal_mipidsi_display_deinited(mipidsi_display_obj_t *self) {
213213
}
214214

215215
void common_hal_mipidsi_display_refresh(mipidsi_display_obj_t *self) {
216-
// Write back the cache to ensure framebuffer changes are visible
217-
Cache_WriteBack_Addr((uint32_t)(self->framebuffer), self->framebuffer_size);
216+
// Drawing the framebuffer we got from the IDF will flush the cache(s) so
217+
// DMA can see our changes. It won't cause an extra copy.
218+
esp_lcd_panel_draw_bitmap(self->dpi_panel_handle, 0, 0, self->width, self->height, self->framebuffer);
218219

219220
// The DPI panel will automatically refresh from the framebuffer
220221
// No explicit refresh call is needed as the DSI hardware continuously

0 commit comments

Comments
 (0)