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:
@@ -44,7 +44,9 @@
|
||||
|
||||
|
||||
// #define SPI_FREQUENCY 27000000
|
||||
#ifndef SPI_FREQUENCY // can be overridden from the PlatformIO build flags
|
||||
#define SPI_FREQUENCY 40000000
|
||||
#endif
|
||||
|
||||
#define SPI_READ_FREQUENCY 20000000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user