cannot load 2 or more images on ft810 with 800*480 7 inch display
Closed this issue · 0 comments
Hey, there is a big problem and i am working to fix it but i fail.
my hardware: FT810, 7 inch 800*480 display
programming with GD3 library on arduino DUE.
the problem is that loading fist image is good but when i try to load second image it always shows as you can see on attached video (its on zip).
video_2019-04-12_13-17-52.zip
i load the first image like this:
GD.cmd_loadimage(0, 0);
GD.load("Ab1.jpg");
GD.Clear();
GD.Begin(BITMAPS);
GD.Vertex2ii(0, 0);
GD.End();
GD.swap();
and after that i load the second image like this:
GD.BitmapHandle(1);
GD.cmd_loadimage(-1, 0);
GD.load("Ab2.jpg");
then for displaying second image i use this code in a loop:
GD.Clear();
GD.Begin(BITMAPS);
GD.Vertex2ii(0,0, 1);
GD.End();
GD.swap();