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

Main Menu

CMD_TESTCARD() only shows for a moment

Started by rmand, November 08, 2022, 08:30:47 PM

Previous topic - Next topic

rmand

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.

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.


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().

Rudolph

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.

rmand


Quote

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!