mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-07-31 19:24:46 +02:00
Fix parallel bus pixelRead for ST7796
This commit is contained in:
@@ -1182,7 +1182,7 @@ uint16_t TFT_eSPI::readPixel(int32_t x0, int32_t y0)
|
|||||||
// Set masked pins D0- D7 to output
|
// Set masked pins D0- D7 to output
|
||||||
busDir(GPIO_DIR_MASK, OUTPUT);
|
busDir(GPIO_DIR_MASK, OUTPUT);
|
||||||
|
|
||||||
#ifdef ILI9486_DRIVER
|
#if defined (ILI9486_DRIVER) || defined (ST7796_DRIVER)
|
||||||
return bgr;
|
return bgr;
|
||||||
#else
|
#else
|
||||||
// Swap Red and Blue (could check MADCTL setting to see if this is needed)
|
// Swap Red and Blue (could check MADCTL setting to see if this is needed)
|
||||||
|
Reference in New Issue
Block a user