TFT DMA in drawBMP() disabled; fix possible but complex, see comments
This commit is contained in:
parent
9cf25febb8
commit
197f09664b
2 changed files with 7 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
name=Adafruit ImageReader Library
|
||||
version=2.0.1
|
||||
version=2.0.2
|
||||
author=Adafruit
|
||||
maintainer=Adafruit <info@adafruit.com>
|
||||
sentence=Companion library for Adafruit_GFX to load images from SD card.
|
||||
|
|
|
|||
Loading…
Reference in a new issue