MiataDrive: flicker-free framebuffer rendering + 80 MHz SPI

Render every frame into a full-frame TFT_eSprite (16 bpp, PSRAM) and push
it to the panel in one continuous SPI stream — direct scattered draw calls
raced the panel scan-out and flickered. renderRoad split into projection
and draw passes: the sky now fills down to the topmost road row (fixes the
stale band at the horizon over crests) and the nearest segment is extended
to the screen bottom (fixes the wobbling stale strip). fillTrap uses
incremental edge interpolation. SPI raised to 80 MHz via build flag
(Setup210 define guarded) so the frame push fits the 33 ms budget.
This commit is contained in:
Dejvino
2026-11-12 23:17:43 +01:00
parent 9de07c46dd
commit d542d6ffa7
4 changed files with 142 additions and 66 deletions
+4
View File
@@ -67,6 +67,10 @@ build_flags =
-DDISABLE_ALL_LIBRARY_WARNINGS
; MiataDrive: full-frame push needs headroom — 80 MHz halves the frame
; transfer vs the stock 40 MHz. If your panel shows artifacts, drop to 40000000.
-DSPI_FREQUENCY=80000000
-DRADIOLIB_EXCLUDE_CC1101
-DRADIOLIB_EXCLUDE_NRF24
-DRADIOLIB_EXCLUDE_RF69