Hello Everybody, How do you display a picture (In code, no LOLO)??
This is what I had tried:
I partially took this from one of the demos in the kit. The demo was clearing the video buffer, so instead of *pbf=0 I replaced it with a color 0x01E0 (green), but it looks weird, it does not paint all the vertical lines why?
also
would this display my picture if I do this:
pfb = (UNS_32*)SRAM_PHYS_BASE
while ((UNS_32)pfb < (image+ DISPLAY_WIDTH*DISPLAY_HEIGHT)*2))
{
*pfb=*(pointer of my picture array)
pfb=pfb+1;
(pointer of my picture)=(pointer of my picture)+1;
}
here is the code:
pfb = (UNS_32*)SRAM_PHYS_BASE
while ((UNS_32)pfb < (image+ DISPLAY_WIDTH*DISPLAY_HEIGHT)*2))
{
*pfb =0x01E0; //(GREEN)
pfb=pfb+1;
}