TFT pixel reads for smooth graphics functions now supported.
This commit is contained in:
Bodmer committed 2022-10-12 23:50:28 +01:00
1 parent a3015f0090
commit 49f44e41aa
4 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -1071,7 +1071,7 @@ uint16_t TFT_eSPI::readPixel(int32_t x0, int32_t y0)
#if defined(TFT_PARALLEL_8_BIT) || defined(RP2040_PIO_INTERFACE)
CS_L;
if (!inTransaction) CS_L;
readAddrWindow(x0, y0, 1, 1);
@@ -1091,7 +1091,7 @@ uint16_t TFT_eSPI::readPixel(int32_t x0, int32_t y0)
// Read window pixel 24 bit RGB values and fill in LS bits
uint16_t rgb = ((readByte() & 0xF8) << 8) | ((readByte() & 0xFC) << 3) | (readByte() >> 3);
CS_H;
if (!inTransaction) CS_H;
// Set masked pins D0- D7 to output
busDir(dir_mask, OUTPUT);
@@ -1103,7 +1103,7 @@ uint16_t TFT_eSPI::readPixel(int32_t x0, int32_t y0)
// Fetch the 16 bit BRG pixel
uint16_t bgr = (readByte() << 8) | readByte();
CS_H;
if (!inTransaction) CS_H;
// Set masked pins D0- D7 to output
busDir(dir_mask, OUTPUT);