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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Domdom

Pages: [1]
1
Discussion - EVE / Re: What is the purpose of CMD_REGREAD?
« on: October 03, 2023, 03:22:39 AM »
While doing a CMD_CALLLIST, CMD_REGREAD is the only way to read a register. Similar to CMD_MEMWRITE.

2
Hi Louis Cloete,

As you do not need any touch screen functionality, I guess you want to update screen with sensor data, am I right?

You can use a global variable on ESD and connect it with the widget you want, example: A numeric label. Here is how to do it on ESD:

1. in Usr_Source_Files.c, declare the variable name (image 1.JPG)


2. In the page, connect the variable to a widget (image 2.JPG)


Export the project and you can extern that variable in your code.

3
We can use STENCIL to draw that

Code: [Select]
EVE_Cmd_wr32(s_pHalContext, BEGIN(LINES));
    EVE_Cmd_wr32(s_pHalContext, COLOR_RGB(0, 0, 255));
    EVE_Cmd_wr32(s_pHalContext, LINE_WIDTH(10)); //inner circle
    EVE_Cmd_wr32(s_pHalContext, VERTEX2F(5*16, 10*16));
    EVE_Cmd_wr32(s_pHalContext, VERTEX2F(500*16, 300*16));

    EVE_Cmd_wr32(s_pHalContext, STENCIL_FUNC(NEVER, 0x00, 0x00));
    EVE_Cmd_wr32(s_pHalContext, STENCIL_OP(INCR, INCR));
    EVE_Cmd_wr32(s_pHalContext, BEGIN(FTPOINTS));
    EVE_Cmd_wr32(s_pHalContext, POINT_SIZE((uint16_t )((C1 - 5) * 16))); //inner circle
    EVE_Cmd_wr32(s_pHalContext, VERTEX2II(240, 136, 0, 0));

    EVE_Cmd_wr32(s_pHalContext, STENCIL_FUNC(NOTEQUAL, 0x01, 0x01));
    EVE_Cmd_wr32(s_pHalContext, POINT_SIZE((uint16_t )((C1) * 16))); //outer circle
    EVE_Cmd_wr32(s_pHalContext, VERTEX2II(240, 136, 0, 0));

    EVE_Cmd_wr32(s_pHalContext, STENCIL_FUNC(EQUAL, 0x01, 0x01));
    EVE_Cmd_wr32(s_pHalContext, STENCIL_OP(KEEP, KEEP));
    EVE_Cmd_wr32(s_pHalContext, COLOR_RGB(R, G, B));
    EVE_Cmd_wr32(s_pHalContext, POINT_SIZE((uint16_t )((C1) * 16)));
    EVE_Cmd_wr32(s_pHalContext, VERTEX2II(240, 136, 0, 0));

    EVE_Cmd_wr32(s_pHalContext, STENCIL_FUNC(ALWAYS, 0x01, 0x01));
    EVE_Cmd_wr32(s_pHalContext, STENCIL_OP(KEEP, KEEP));

    EVE_Cmd_wr32(s_pHalContext, END());


Pages: [1]