dl14
Junior Member
Posts: 22
|
Post by dl14 on Jan 14, 2017 9:56:14 GMT -8
I have these two images and for some reason, Ch13_05.jpg is not being read by the Gameduino but Ch13_04.jpg is fine.. I used the same process for converting both of them.. Can anyone find a difference between the two? Or why the second one won't load? Thanks!
|
|
|
Post by jamesbowman on Jan 22, 2017 12:03:00 GMT -8
Hmm, they both seem to work for me. I copied them both to SD card, then modified the sample sketch "jpeg.ino": #include <EEPROM.h> #include <SPI.h> #include <GD2.h>
void setup() { GD.begin(); GD.cmd_loadimage(0, 0); GD.load("Ch13_05.jpg"); }
void loop() { GD.Clear(); GD.Begin(BITMAPS); GD.Vertex2ii(0, 0); GD.swap(); }
Seems to display fine: One suggestion: make sure that you have updated to the latest GD library, as there were some fixes about 6 months ago for file loading: www.excamera.com/files/Gameduino2.zip
|
|
dl14
Junior Member
Posts: 22
|
Post by dl14 on Jan 22, 2017 15:48:11 GMT -8
Thanks! What is the process for updating the library in Arduino IDE after downloading the .zip file?
It won't let me add the zip file from the "Import Library" option as GD2 library already exists
|
|
|
Post by jamesbowman on Jan 22, 2017 15:54:08 GMT -8
Hmm, I *think* what I did was last time was manually delete the library, then redo "Import Library".
|
|
dl14
Junior Member
Posts: 22
|
Post by dl14 on Jan 22, 2017 17:42:13 GMT -8
Ah okay, thanks I updated the library!
Do the number of images on the SD card matter? I re-formatted the SD card and then all the images work individually but when I put them together (Around 700) some of them don't work..
|
|