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

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

View File

@@ -16,7 +16,7 @@
#ifndef _TFT_eSPIH_ #ifndef _TFT_eSPIH_
#define _TFT_eSPIH_ #define _TFT_eSPIH_
#define TFT_ESPI_VERSION "2.4.77" #define TFT_ESPI_VERSION "2.4.78"
// Bit level feature flags // Bit level feature flags
// Bit 0 set: viewport capability // Bit 0 set: viewport capability

View File

@@ -1,6 +1,6 @@
{ {
"name": "TFT_eSPI", "name": "TFT_eSPI",
"version": "2.4.77", "version": "2.4.78",
"keywords": "Arduino, tft, display, ttgo, LilyPi, WT32-SC01, ePaper, display, Pico, RP2040 Nano Connect, RP2040, STM32, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9481, ILI9486, ILI9488, ST7789, ST7796, RM68140, SSD1351, SSD1963, ILI9225, HX8357D, GC9A01, R61581", "keywords": "Arduino, tft, display, ttgo, LilyPi, WT32-SC01, ePaper, display, Pico, RP2040 Nano Connect, RP2040, STM32, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9481, ILI9486, ILI9488, ST7789, ST7796, RM68140, SSD1351, SSD1963, ILI9225, HX8357D, GC9A01, R61581",
"description": "A TFT and ePaper SPI graphics library with optimisation for Raspberry Pi Pico, RP2040, ESP8266, ESP32 and STM32", "description": "A TFT and ePaper SPI graphics library with optimisation for Raspberry Pi Pico, RP2040, ESP8266, ESP32 and STM32",
"repository": "repository":

View File

@@ -1,5 +1,5 @@
name=TFT_eSPI name=TFT_eSPI
version=2.4.77 version=2.4.78
author=Bodmer author=Bodmer
maintainer=Bodmer maintainer=Bodmer
sentence=TFT graphics library for Arduino processors with performance optimisation for RP2040, STM32, ESP8266 and ESP32 sentence=TFT graphics library for Arduino processors with performance optimisation for RP2040, STM32, ESP8266 and ESP32