|
Post by johnleung on Nov 14, 2018 3:59:59 GMT -8
James, but I am not sure why from around 10 system restart, from time to time I have got screen like this. Maybe my QA program is not good. Code is shown here. It seems not related to mipi issue. Instead it is like some problem from FT813. Have you seen display result like this? When this screen shows no CTP event is allowed. /**
* @brief QA program for 5" mipi display with CTP
*/
#include <EEPROM.h>
#include <SPI.h>
#include <GD2.h>
void setup()
{
Serial.begin(115200); // JCB
GD.begin(~GD_STORAGE);
GD.cmd_memset(0, 0x00, long(GD.w) * GD.h); // clear the bitmap
//GD.Clear(); // draw the bitmap
GD.ClearColorRGB(0xff0000);
GD.Clear();
GD.swap();
delay(2000);
GD.ClearColorRGB(0x00ff00);
GD.Clear();
GD.swap();
delay(2000);
GD.ClearColorRGB(0x0000ff);
GD.Clear();
GD.swap();
delay(2000);
GD.Clear(); // draw the bitmap
GD.ColorRGB(0xff2030);
GD.cmd_text(GD.w / 2, GD.h / 2, 31, OPT_CENTER, "sketch demo");
GD.BitmapLayout(L8, GD.w, GD.h);
GD.BitmapSize(NEAREST, BORDER, BORDER, GD.w, GD.h);
GD.Begin(BITMAPS);
GD.ColorRGB(0xffffff);
GD.Vertex2f(0, 0);
GD.cmd_sketch(0, 0, GD.w, GD.h, 0, L8); // start sketching
GD.swap();
GD.finish(); // flush all commands
}
void loop() { }
|
|
|
Post by jamesbowman on Dec 11, 2018 6:12:13 GMT -8
I think that the 813 is not resetting the bitmap base address. It looks like the address is pointing into the character ROM. Try adding this line before BitmapLayout:
GD.BitmapSource(0); GD.BitmapLayout(L8, GD.w, GD.h);
|
|