|
Post by rayman on Sept 19, 2017 23:41:50 GMT -8
hi, i would like to load a jpg, but i always get a coprocessor exception where is the mistake here i tried ASSETS_END and -1 GD.BitmapHandle(15); // GD.cmd_loadimage(ASSETS_END, 0); GD.cmd_loadimage(-1, 0); GD.load("AAA.jpg"); the jpg may have to be in a certain format thx for hints ...
|
|
|
Post by rayman on Sept 19, 2017 23:46:21 GMT -8
forget it, the jpg is to big, i split the image and now works fine ...
|
|
|
Post by from Turkey on May 13, 2019 2:34:42 GMT -8
too big means how much? Couse I have the same problem? eve small size still gives same error??
|
|
|
Post by jamesbowman on May 13, 2019 5:46:56 GMT -8
There is a sample program with the GD library "jpeg.ino" that loads a JPEG from microSD. Does that work?
|
|
erkan
Junior Member
Posts: 12
|
Post by erkan on May 13, 2019 6:21:29 GMT -8
There is a sample program with the GD library "jpeg.ino" that loads a JPEG from microSD. Does that work Tnaks for reply but Unfotunatly no. I am using different board let me ask how should I make compile in SDcard support manualy? May be problem bcause of it? For example for assets it says "cannot open file bla.gd2" From flash oc MCU it is ok. bu tfrom SD car offf no any suggst?
|
|
|
Post by jamesbowman on May 13, 2019 6:32:14 GMT -8
|
|
erkan
Junior Member
Posts: 12
|
Post by erkan on May 13, 2019 7:13:33 GMT -8
Thaks again FTDI 810 installed board I am using and Sir, I did what you said, now I have got black screen As above, I can read what is inside SD car which SanDisk by the way. Here above code which has to load asset from SD card. SD CS pin hooked to 9 Still what is wrong?
|
|
erkan
Junior Member
Posts: 12
|
Post by erkan on May 13, 2019 7:38:19 GMT -8
I did this change that is SD cs pin to 5 and load image code as bleow Here is the result... offff.. what is wrong?
|
|
erkan
Junior Member
Posts: 12
|
Post by erkan on May 13, 2019 7:50:29 GMT -8
in wiring.h there is code bleow, it says CS of board is 8 but should'nt be 10?
#ifndef CS #if defined(ESP8266) #define CS D8 #else #define CS 8 #endif #endif
|
|
|
Post by tftlcdcyg on May 13, 2019 10:50:46 GMT -8
Your micro SD card must be maximum 8 Gb class 10
|
|
erkan
Junior Member
Posts: 12
|
Post by erkan on May 13, 2019 12:06:46 GMT -8
Your micro SD card must be maximum 8 Gb class 10 Sir, class 10 means what? I have tried both 2 Gb and 16 Gb ones, but got same result.
|
|
erkan
Junior Member
Posts: 12
|
Post by erkan on May 24, 2019 5:54:37 GMT -8
external SD card issue
can it be because of highbits or low bits of SPI.transfer?
|
|