jc07
Junior Member
Posts: 19
|
Post by jc07 on Feb 10, 2020 17:20:18 GMT -8
Hey Guys, I am using the Teensy 3.6 with the GD23ZUTX Library and the Sdfat Beta library. I am using the riverid RVT50UQFNWC0x screen. I am having the issue that if I put a image passed 500 pixels in the x direction my screen will not post the image. I just get a black screen. If I place the image at (0,0) then the picture shows up great. I can place the image all along the y direction but no the x. I have posted below some code. I have also attached the image i am working with that is having issues. What do you guys think? do i need to so something different? #include <GD23ZUTX.h>
void setup()
{
GD.begin();
GD.BitmapHandle(1);
GD.cmd_loadimage(0,0);
GD.load("xWave14_623-410.png");
MP();
}
void loop()
{}
void MP()
{
while(1)
{
GD.Clear();
GD.SaveContext();
GD.Begin(BITMAPS);
GD.Vertex2ii(623,410,1);
GD.RestoreContext();
GD.swap();
}
}
Attachments:
|
|
|
Post by jamesbowman on Feb 10, 2020 18:45:36 GMT -8
Right, Vertex2ii has a limit of 511 pixels in X and Y. Instead use Vertex2f, like this:
GD.BitmapHandle(1); GD.Cell(0); GD.Vertex2f(16 * 623, 16 * 410);
|
|