XarkLabs / PDQ_GFX_Libs

Optimized fork of Adafruit's GFX library (and drivers) for Arduino (AVR).
114 stars 37 forks source link

Does not work well with sd library #4

Open damarbo33 opened 8 years ago

damarbo33 commented 8 years ago

Is there any chance to get sd and display working togheter at the same time?

damarbo33 commented 8 years ago

Just a clue!

if I do tft.begin() and then SD.begin(SD_CS), I can't write nothing in the screen. But if I modify the method writeCommand in PDQ_ST7735.h to make initially

SPI.beginTransaction(mySPISettings);

and int the end

SPI.endTransaction();

it starts screen working. The problem is SD still not working after I init tft.

Hope it helps

P.D: I am using standard arduino SD lib

XarkLabs commented 8 years ago

Hello, Thanks. This is indeed useful and reinforces my suspicion that the Arduino SPI transaction changes "broke" sharing the SPI port. I plan on investigating this issue this weekend (and fixing a few other small issues).

Andrewsolo commented 7 years ago

Hello, I really want to use your excellent library, but can not adjust work with the SDcard. For example of issue you can try to change Adafruit "spitftbitmap" sketch (Adafruit_ILI9340\examples\spitftbitmap) for working with your lib. Adafruit lib working fine, but your not. I tried different libs for SD Card (Native "SD" lib and "SdFat") Please help to fix this issue.