Skip to content

Commit

Permalink
TFT DMA in drawBMP() disabled; fix possible but complex, see comments
Browse files Browse the repository at this point in the history
  • Loading branch information
PaintYourDragon committed Sep 18, 2019
1 parent 9cf25fe commit 197f096
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Adafruit_ImageReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,12 @@ ImageReturnCode Adafruit_ImageReader::coreBMP(
file.read(sdbuf, sizeof sdbuf); // Load from SD
if(transact) tft->startWrite(); // Start TFT SPI transact
if(destidx) { // If buffered TFT data
tft->writePixels(dest, destidx, false); // Write it
// Non-blocking writes (DMA) have been temporarily
// disabled until this can be rewritten with two
// alternating 'dest' buffers (else the nonblocking
// data out is overwritten in the dest[] write below).
//tft->writePixels(dest, destidx, false); // Write it
tft->writePixels(dest, destidx, true); // Write it
destidx = 0; // and reset dest index
}
} else { // Canvas is simpler,
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Adafruit ImageReader Library
version=2.0.1
version=2.0.2
author=Adafruit
maintainer=Adafruit <[email protected]>
sentence=Companion library for Adafruit_GFX to load images from SD card.
Expand Down

0 comments on commit 197f096

Please sign in to comment.