1
General Discussion / Re: FT812 DISPLAY
« on: September 17, 2018, 01:10:57 PM »
Thanks for reply,
Now, I am able to read chip id from FT81x. But Back light is not turning ON ; before it was turning ON during making PD_PIN as a OUTPUT then set to LOW.
can you please explain what is the condition to make Back light turn ON.
It will help me to understand the Display functionality
I have also tried an example of FTDI to display screen But fails to do that.
Please help,
My code:
void ApplicationScreen1()
{
ramDisplayList=RAM_DL+0;
FT800_SPI_SendAddressWR(ramDisplayList); // Write first entry in Display List (first location in DL Ram)
FT800_SPI_Write32(0x02000000); // Clear Color RGB 00000010 BBBBBBBB GGGGGGGG RRRRRRRR (B/G/R = Colour values)
// Clear the Colour, Stencil and Tag buffers. This will set the screen to the 'clear' colour set above.
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList); // Write next entry in display list (each command is 4 bytes)
FT800_SPI_Write32(BEGIN(BITMAPS)); // Clear 00100110 -------- -------- -----CST (C/S/T define which parameters to clear)
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(VERTEX2II(220,110,31,'F'));
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(VERTEX2II(220,110,31,'T'));
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(VERTEX2II(220,110,31,'D'));
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(VERTEX2II(220,110,31,'I'));
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(ENDP());
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(COLOR_RGB(160,22,22)); //SET COLOUR TO RED
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(POINT_SIZE(320)); //SET POINT SIZE TO 20 PIXELS IN RADIUS
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(BEGIN(FTPOINTS)); //START DRAWING POINTS
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(VERTEX2II(192,133,0,0));//RED COLOUR
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(ENDP());
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(DISPLAY());//display image
FT800_SPI_SendAddressWR(REG_DLSWAP); // Writing to the DL_SWAP register...value 10 means render after last frame complete
FT800_SPI_Write32(0x00000002); // 00000000 00000000 00000000 000000SS (SS bits define when render occurs)
}
Now, I am able to read chip id from FT81x. But Back light is not turning ON ; before it was turning ON during making PD_PIN as a OUTPUT then set to LOW.
can you please explain what is the condition to make Back light turn ON.
It will help me to understand the Display functionality
I have also tried an example of FTDI to display screen But fails to do that.
Please help,
My code:
void ApplicationScreen1()
{
ramDisplayList=RAM_DL+0;
FT800_SPI_SendAddressWR(ramDisplayList); // Write first entry in Display List (first location in DL Ram)
FT800_SPI_Write32(0x02000000); // Clear Color RGB 00000010 BBBBBBBB GGGGGGGG RRRRRRRR (B/G/R = Colour values)
// Clear the Colour, Stencil and Tag buffers. This will set the screen to the 'clear' colour set above.
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList); // Write next entry in display list (each command is 4 bytes)
FT800_SPI_Write32(BEGIN(BITMAPS)); // Clear 00100110 -------- -------- -----CST (C/S/T define which parameters to clear)
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(VERTEX2II(220,110,31,'F'));
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(VERTEX2II(220,110,31,'T'));
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(VERTEX2II(220,110,31,'D'));
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(VERTEX2II(220,110,31,'I'));
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(ENDP());
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(COLOR_RGB(160,22,22)); //SET COLOUR TO RED
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(POINT_SIZE(320)); //SET POINT SIZE TO 20 PIXELS IN RADIUS
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(BEGIN(FTPOINTS)); //START DRAWING POINTS
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(VERTEX2II(192,133,0,0));//RED COLOUR
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(ENDP());
ramDisplayList +=4;
FT800_SPI_SendAddressWR(ramDisplayList);
FT800_SPI_Write32(DISPLAY());//display image
FT800_SPI_SendAddressWR(REG_DLSWAP); // Writing to the DL_SWAP register...value 10 means render after last frame complete
FT800_SPI_Write32(0x00000002); // 00000000 00000000 00000000 000000SS (SS bits define when render occurs)
}