diff options
| author | Your Name <you@example.com> | 2026-05-18 19:13:23 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-18 19:13:23 +0530 |
| commit | f0f8cca10196b265c3b453f71322239d2ecaf4ae (patch) | |
| tree | 654131659e02068a10eb2f58f7b99d0f06c298ea /components | |
| parent | a02a0dbbf4e945ad00433e3fc9fd2b40550d3e82 (diff) | |
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
Diffstat (limited to 'components')
| -rw-r--r-- | components/axs15231b/axs15231b.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { | |||
| 316 | 316 | ||
| 317 | qspi_write_cmd_d16d16(CASET, 0, s_width - 1); | 317 | qspi_write_cmd_d16d16(CASET, 0, s_width - 1); |
| 318 | qspi_write_cmd_d16d16(RASET, 0, s_height - 1); | 318 | qspi_write_cmd_d16d16(RASET, 0, s_height - 1); |
| 319 | qspi_write_command(RAMWR); | ||
| 319 | 320 | ||
| 320 | int total_pixels = s_width * s_height; | 321 | int total_pixels = s_width * s_height; |
| 321 | int pixel_offset = 0; | 322 | int pixel_offset = 0; |