mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-07-30 02:37:33 +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
|
||||
busDir(GPIO_DIR_MASK, OUTPUT);
|
||||
|
||||
#ifdef ILI9486_DRIVER
|
||||
#if defined (ILI9486_DRIVER) || defined (ST7796_DRIVER)
|
||||
return bgr;
|
||||
#else
|
||||
// Swap Red and Blue (could check MADCTL setting to see if this is needed)
|
||||
|
Reference in New Issue
Block a user