|
Post by ceejee on Sept 16, 2015 13:04:36 GMT -8
Hi guys, i'm trying to load an image with the example code but nothing shows on the display.
#include <EEPROM.h>
#include <SPI.h>
#include <GD2.h>
void setup() //' A{
{
Serial.begin(1000000); // JCB
GD.begin();
GD.cmd_loadimage(0, 0);
GD.load("healsky3.jpg");
}
void loop()
{
GD.Clear();
GD.Begin(BITMAPS);
GD.Vertex2ii(0, 0);
GD.swap();
} //' }A
what's wrong ?
|
|
|
Post by jamesbowman on Sept 16, 2015 14:14:03 GMT -8
This code looks fine. Is the SD card formatted to FAT32 with the sample images copied to it?
|
|
|
Post by ceejee on Sept 17, 2015 9:50:26 GMT -8
Thanks for the nice support man ! I'm happy to see my logo on screen now.
Btw: Can I set a touch tag on the bitmap ?
|
|