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.

Topics - raydem

Pages: [1]
1
Discussion - EVE / Text with newline doesn't work
« on: October 26, 2022, 11:22:20 AM »
Hi,
I want to use the newline function inside the string, but it only draws a strange symbol at the position of "\n". I checked the programming guide and says to only include the "\n" in the string. I am using the font 18.

Code: [Select]
cmd_text(80, 60, 29, OPT_CENTER,"one two\nthree
four");

I am using this
Code: [Select]
cmd_text(80, 60, 18, EVE_OPT_CENTERY,"User:\n");

2
Discussion - EVE / Custom Fonts
« on: October 26, 2022, 09:03:37 AM »
Hello,
I am trying to use various custom fonts saved in RAM. I can draw with the font that I loaded first but not with the following ones. I guess the problem is the address to load the fonts. I use fonts converted and compressed with EAB 2.6.1. I am loading in RAM the raw file(.raw)

Code: [Select]

    #define EVE_RAM_G         0x00000000u

    FillDataLoadImage(0u, EVE_RAM_G, arial20_L2, sizeof(arial20_L2), INFLATE_IMAGE);   // index image, address in RAM, data, data size, format
    FillDataLoadImage(1u,  sizeof(arial20_L2), arial20_L4, sizeof(arial20_L4), INFLATE_IMAGE); // index image, address in RAM, data, data size, format

    Write32BitsInArray(start, CMD_SETFONT2);
    Write32BitsInArray(cont, (uint32)0u); //Font 0
    Write32BitsInArray(cont, EVE_RAM_G); // address
    Write32BitsInArray(cont, (uint32)32u); // first character

    Write32BitsInArray(start, CMD_SETFONT2);
    Write32BitsInArray(cont, (uint32)1u); //Font 1
    Write32BitsInArray(cont, sizeof(arial20_L2)); // address
    Write32BitsInArray(cont, (uint32)32u); // first character

3
Discussion - EVE / Blind effect with draw images
« on: October 24, 2022, 12:10:46 PM »
Hello, 
I get a weird refresh effect (like a blind) when the screen draws a full image after the screen has shown a full image before. But when the screen displays, for example, a list and then draws a full image, it's fine.

This is the configuration:
Code: [Select]
#define EVE_VSIZE   (320u)  /* Tvd Number of visible lines (in lines) - display height */               //lint !e960 Violates MISRA 2004 Required Rule 20.2, Re-use of C90 identifier pattern
#define EVE_HSIZE   (240u)  /* Thd Length of visible part of line (in PCLKs) - display width */         //lint !e960 Violates MISRA 2004 Required Rule 20.2, Re-use of C90 identifier pattern

#define EVE_VSYNC0  (10u)   /* Tvf Vertical Front Porch */                                              //lint !e960 Violates MISRA 2004 Required Rule 20.2, Re-use of C90 identifier pattern
#define EVE_VSYNC1  (12u)   /* Tvf + Tvp Vertical Front Porch plus Vsync Pulse width */                 //lint !e960 Violates MISRA 2004 Required Rule 20.2, Re-use of C90 identifier pattern
#define EVE_VOFFSET (22u)   /* Tvf + Tvp + Tvb Number of non-visible lines (in lines) */                //lint !e960 Violates MISRA 2004 Required Rule 20.2, Re-use of C90 identifier pattern
#define EVE_VCYCLE  (343u)  /* Tv Total number of lines (visible and non-visible) (in lines) */         //lint !e960 Violates MISRA 2004 Required Rule 20.2, Re-use of C90 identifier pattern

#define EVE_HSYNC0  (16u)   /* Thf Horizontal Front Porch */                                            //lint !e960 Violates MISRA 2004 Required Rule 20.2, Re-use of C90 identifier pattern
#define EVE_HSYNC1  (36u)   /* Thf + Thp Horizontal Front Porch plus Hsync Pulse width */               //lint !e960 Violates MISRA 2004 Required Rule 20.2, Re-use of C90 identifier pattern
#define EVE_HOFFSET (76u)   /* Thf + Thp + Thb Length of non-visible part of line (in PCLK cycles) */   //lint !e960 Violates MISRA 2004 Required Rule 20.2, Re-use of C90 identifier pattern
#define EVE_HCYCLE  (317u)  /* Total length of line (visible and non-visible) (in PCLKs) */             //lint !e960 Violates MISRA 2004 Required Rule 20.2, Re-use of C90 identifier pattern

#define EVE_PCLK    (5u)    /* 60/5 = 12 MHz                                            */              //lint !e960 Violates MISRA 2004 Required Rule 20.2, Re-use of C90 identifier pattern
#define EVE_PCLKPOL (1u)    /* negative active clock edge                               */              //lint !e960 Violates MISRA 2004 Required Rule 20.2, Re-use of C90 identifier pattern
#define EVE_SWIZZLE (0u)    /* order of bits in each colour channel to be reserved.     */              //lint !e960 Violates MISRA 2004 Required Rule 20.2, Re-use of C90 identifier pattern
#define EVE_CSPREAD (0u)    /* helps reduce the switching noise                         */              //lint !e960 Violates MISRA 2004 Required Rule 20.2, Re-use of C90 identifier pattern

4
General Discussion / name of the font
« on: April 21, 2022, 12:09:40 PM »
hello,

Do you know what is the name of the font include in the FT811? I need it for the display designer.

Thank you

5
Discussion - EVE / Standby mode
« on: December 18, 2021, 02:38:37 AM »
Hello,
Question.... When send the command Standby (0x41) the display should turns off?

6
Discussion - EVE / FT811 only draw first time
« on: November 30, 2021, 01:46:34 PM »
Hello,

I posted in the other topic, but I think that it is better to open new toppic. Sorry if it is wrong.

I am working with FT811 and I achieved to draw in the display one time only. The second time, nothing happens.

Code: [Select]
Private void W32(uint8 *start, const uint32 data){
    uint8 cont = *start;

    gpDataBuffer[++cont] = (uint8)(data & 0x000000ff);
    gpDataBuffer[++cont] = (uint8)(data >> 8);
    gpDataBuffer[++cont] = (uint8)(data >> 16);
    gpDataBuffer[++cont] = (uint8)(data >> 24);

    *start = cont;
}

    Private void StaticBackground(uint16 *start){
        uint8 cont = *start;

        uint32 address =  EVE_RAM_DL; // 0x00300000;

        gpDataBuffer[cont] = (uint8)((address >> 16) | MEM_WRITE);
        gpDataBuffer[++cont] = (uint8)(address >> 8);
        gpDataBuffer[++cont] = (uint8)(address & 0x000000ff);


           if(change == 0u){
                W32(&cont, CLEAR_COLOR_RGB(0,255,255));
                W32(&cont, COLOR_RGB(255,0,0));
           }
           else{
                W32(&cont, CLEAR_COLOR_RGB(255,255,0));
                W32(&cont, COLOR_RGB(0,255,0));
           }
       
         W32(&cont, CLEAR(1,1,1));
        W32(&cont, BEGIN(EVE_POINTS));
        W32(&cont, POINT_SIZE(200));
        W32(&cont, VERTEX2II(120,120,0,0));
        W32(&cont, END());
        W32(&cont, DISPLAY());

       SendGraphicData(++cont); //Send over SPI the buffer
}

void Main(){
    uint8 change = 0u;
    Init_EVE();
    while(1){
        StaticBackground(0);
        EveMemWrite(SEND_8_BITS, REG_DLSWAP, EVE_DLSWAP_FRAME); //Send over SPI DLSWAP
        if (0u == change)
               change = 1u;
        else
               change = 0u;

        DELAY_MS(5000);
}
}

7
Discussion - EVE / FT811 read REG_ID
« on: November 15, 2021, 10:31:33 PM »
Hello,

I have a FT811 and I am triying to Read the REG_ID, but only get 0xBE. My code is:

Code: [Select]

          EVE_pdn_clear();
  DELAY_MS(21); /* minimum time to allow from rising PD_N to first access is 20ms */
          EVE_cmdWrite(EVE_CLKEXT,0); /* setup EVE for external clock */
          EVE_cmdWrite(EVE_CLKSEL,0x46); /* set clock to 72 MHz */
          EVE_cmdWrite(EVE_ACTIVE,0); /* start EVE */
          DELAY_MS(500);
          chipid = EVE_memRead8(REG_ID);

And the SPI signals are:

CLKEXT and CLKSEL commands.


Active command.


Read REG_ID.

Pages: [1]