BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Author Topic: CMD_TESTCARD() only shows for a moment  (Read 8230 times)

rmand

  • Newbie
  • *
  • Posts: 11
    • View Profile
CMD_TESTCARD() only shows for a moment
« on: November 08, 2022, 08:30:47 PM »

trying to test the new set up and I can't seem to get the test card to stay on (other display lists show just fine).  This is based on EVE LIB for ESP32.

Code: [Select]
EVE_LIB_BeginCoProList();
  EVE_CMD_DLSTART();
  EVE_CLEAR_COLOR_RGB(0, 0, 0);
  EVE_CLEAR(1,1,1);
  EVE_CMD_TESTCARD();
  EVE_DISPLAY();
  EVE_CMD_SWAP();
  EVE_LIB_EndCoProList();
  EVE_LIB_AwaitCoProEmpty();

When I run the above code, it flash the test card and goes back to a blank screen.  Not running any other code that would cause the screen to clear.


Code: [Select]
EVE_LIB_BeginCoProList();
  EVE_CMD_DLSTART();
  EVE_CLEAR_COLOR_RGB(0, 0, 0);
  EVE_CLEAR(1,1,1);
  EVE_COLOR_HEX(0xFFFFFF);
  EVE_CMD_TEXT(100,100, 31, 0, "Hello, World!");
  EVE_DISPLAY();
  EVE_CMD_SWAP();
  EVE_LIB_EndCoProList();
  EVE_LIB_AwaitCoProEmpty();

Above code stays on the screen.

What is the correct way of using CMD_TESTCARD().
Logged

Rudolph

  • Sr. Member
  • ****
  • Posts: 391
    • View Profile
Re: CMD_TESTCARD() only shows for a moment
« Reply #1 on: November 09, 2022, 05:15:30 PM »

CMD_TESTCARD does not really need anything, the co-processor takes care of everything.

I just added this in my startup

EVE_cmd_dl(CMD_TESTCARD);
DELAY_MS(5000);

And now the testcard is displayed for 5 seconds.

I am guessing this would be this in the AN25 EVE LIB:

EVE_LIB_BeginCoProList();
EVE_CMD_TESTCARD();
EVE_LIB_EndCoProList();
delay()

So what your code effectively does is to swap the display-list with the testcard out again right away.
Logged

rmand

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: CMD_TESTCARD() only shows for a moment
« Reply #2 on: November 11, 2022, 06:08:49 PM »


Quote
Code: [Select]
I am guessing this would be this in the AN25 EVE LIB:

EVE_LIB_BeginCoProList();
EVE_CMD_TESTCARD();
EVE_LIB_EndCoProList();
delay()

This works, thank you!
Logged