From f0f8cca10196b265c3b453f71322239d2ecaf4ae Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 18 May 2026 19:13:23 +0530 Subject: Fix display: add RAMWR before pixel data, correct colors, smaller text Root cause: missing RAMWR (0x2C) command before pixel data transfer. Without RAMWR, the display didn't know to write data into the RAM window set by CASET/RASET, causing wrapping and double-vision artifacts. - Add qspi_write_command(RAMWR) before pixel data in flush() - Use internal DMA byte-swap buffer (MALLOC_CAP_DMA) for correct colors - Reduce font scale: TollGate scale 2, starting... scale 1 - Centered text positions for 320x480 portrait Display now shows: blue TollGate + yellow starting... on black --- components/axs15231b/axs15231b.c | 1 + 1 file changed, 1 insertion(+) (limited to 'components') diff --git a/components/axs15231b/axs15231b.c b/components/axs15231b/axs15231b.c index 49122a1..7424a20 100644 --- a/components/axs15231b/axs15231b.c +++ b/components/axs15231b/axs15231b.c @@ -316,6 +316,7 @@ void axs15231b_flush(void) { qspi_write_cmd_d16d16(CASET, 0, s_width - 1); qspi_write_cmd_d16d16(RASET, 0, s_height - 1); + qspi_write_command(RAMWR); int total_pixels = s_width * s_height; int pixel_offset = 0; -- cgit v1.2.3