|
Post by Thomas on Jan 16, 2019 6:01:19 GMT -8
I've been trying to use cmd_mediafifo to load an image onto an FT_813. Every time I run my code it compiles, but the screen just goes blank. I've been trying to follow the solution here (it's in German) but nothing is working. Here is the program I'm trying to run, right now I just have a test array of bytes to test if the program runs properly. If I take out the cmd_load() call, the screen is drawn properly. void setup() {
GD.begin();
byte testArray[4] = {0x11, 0x22, 0x33, 0x44};
GD.cmd_mediafifo(0, 4);
GD.flush();
for(int i = 0; i < 4; i++){
GD.wr(i, testArray[i]);
}
GD.wr32(REG_MEDIAFIFO_WRITE, 3);
GD.cmd_loadimage(64, OPT_MEDIAFIFO);
GD.flush();
}
void loop() {
GD.ClearColorRGB(0x103000);
GD.Clear();
GD.Begin(RECTS);
GD.ColorRGB(0xFF2D00);
GD.Tag(50);
GD.Vertex2ii(100, 50);
GD.Vertex2ii(450, 100);
GD.swap();
}
Does anyone know how to use this function properly? Any help is appreciated.
|
|