Add parallel bus read for ST7796

Fixes #2440
This commit is contained in:
Bodmer
2023-02-23 16:04:14 +00:00
parent 12f5918211
commit ab55b0ed03

View File

@ -1329,7 +1329,7 @@ void TFT_eSPI::readRect(int32_t x, int32_t y, int32_t w, int32_t h, uint16_t *da
int32_t lw = dw;
uint16_t* line = data;
while (lw--) {
#ifdef ILI9486_DRIVER
#if defined (ILI9486_DRIVER) || defined (ST7796_DRIVER)
// Read the RGB 16 bit colour
*line++ = readByte() | (readByte() << 8);
#else