Skip to content

Guition JC4827W543 - gfx->flush() conflicts with touch and SD #557

Answered by gamebox13
gamebox13 asked this question in Q&A
Discussion options

You must be logged in to vote

I solve problem by declaring custom SPI after few attemps.

....................
#define SD_MISO     13
#define SD_MOSI     11
#define SD_SCLK     12
#define SD_CS       10
static SPIClass spiSD{ HSPI };
void setup() {
.......................
spiSD.begin(SD_SCLK, SD_MISO, SD_MOSI, SD_CS); 
    ts.begin(spiSD);
   ts.setRotation(1);
  if (!SD.begin(SD_CS,spiSD)) {
    Serial.println("Card Mount Failed");
    return;
  }
............................

Now it works fine together and I build some GPS navigator with OSM tiles from SD cache or Wifi. But have some problem with img buffers for tiles because now I am using only file buffers which every time decoded by PNG library for drawing
and I t…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@DaAiElaina
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by gamebox13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants