Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
729dcfec3d | ||
|
|
1fa4b0670c | ||
|
|
bd8e0f60f2 | ||
|
|
b20a56e7a6 |
@@ -4,7 +4,7 @@ on:
|
||||
pull_request:
|
||||
branches: [develop]
|
||||
push:
|
||||
branches: [develop, "refactor/**", "feature/**"]
|
||||
branches: [develop, "refactor/**", "feature/**", "fix/**"]
|
||||
tags: ["v*"]
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
@@ -301,13 +301,13 @@ void hal_display_flush(void)
|
||||
s_dirty = false;
|
||||
return;
|
||||
}
|
||||
lcd_window(0, 0, LCD_W - 1, LCD_H - 1);
|
||||
const int chunk_rows = 16;
|
||||
for (int y = 0; y < LCD_H; y += chunk_rows) {
|
||||
int rows = chunk_rows;
|
||||
if (y + rows > LCD_H) {
|
||||
rows = LCD_H - y;
|
||||
}
|
||||
lcd_window(0, y, LCD_W - 1, y + rows - 1);
|
||||
uint32_t packed = ((uint32_t)0x32 << 24) | ((uint32_t)LCD_CMD_RAMWR << 8);
|
||||
esp_lcd_panel_io_tx_color(s_io, packed, &s_fb[y * LCD_W],
|
||||
(size_t)rows * LCD_W * sizeof(uint16_t));
|
||||
|
||||
Reference in New Issue
Block a user