Skip to content

ESP32S3 DMA - EVE Text Issue #158

@Ed-Tronics

Description

@Ed-Tronics

Hi Rudolph,

Hope you're well and enjoying life. I have got a great UI set up for my project now, thanks to your excellent library! However, I've found a weird bug with the text command in my context.

Environment
Platform-IO (VS-Code extension)
ESP32-S3
ESP-IDF / Arduino framework
Riverdi EVE3 5" (EVE_RiTFT50)

Problem
When EVE_cmd_text_burst is the last command in a burst list, it can exhibit the following:

  • Not appearing at all (this can be resolved by a no op or other basic command before and after)
  • Affecting the previous command (in my case, gauge background major divisions only partially shown
  • String is sometimes truncated by 1 character

My Code
Although I use switches and macros to do various things, my code is essentially:

  EVE_start_cmd_burst();
  EVE_cmd_dl_burst(CMD_DLSTART);
  EVE_color_rgb_burst(BLACK);

  // Some other static gauge backgrounds, text etc

   EVE_cmd_gauge_burst(
   370,                                    // X position
   ROW_7of9,                                // Y position
   GAUGE_RADIUS_MED,                        // Radius size
   EVE_OPT_NOBACK | EVE_OPT_NOPOINTER,      // Options for background
   AuxDevice_OnBd.getConfig().Gauge.MajorDivisions, // Major divisions from device config
   GAUGE_MIN,                               // Minor divisions
   0,                                       // Value (0 for background)
   GAUGE_STEPS                              // Number of steps
   );
   EVE_cmd_text_burst(370, (ROW_7of9 + 30), TNR_FONT, EVE_OPT_CENTERX, "Axx");

  // Dynamic text, needles etc

  EVE_cmd_dl_burst(DL_DISPLAY);
  EVE_cmd_dl_burst(CMD_SWAP);
  EVE_end_cmd_burst();

.. and what I see is lots of minor divisions and one major division at the end. I have confirmed a display list size of <2.5kB.
I can get around it for now with no ops, but it would be nice to find out what the problem is!

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions