mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-03 12:44:46 +02:00
Not all processors support buffered write()
This commit is contained in:
@@ -4339,18 +4339,21 @@ uint32_t TFT_eSPI::alphaBlend24(uint8_t alpha, uint32_t fgc, uint32_t bgc, uint8
|
||||
** Function name: write
|
||||
** Description: draw characters piped through serial stream
|
||||
***************************************************************************************/
|
||||
/* // Not all processors support buffered write
|
||||
#ifndef ESP8266 // Avoid ESP8266 board package bug
|
||||
size_t TFT_eSPI::write(const uint8_t *buf, size_t len)
|
||||
{
|
||||
inTransaction = true;
|
||||
|
||||
uint8_t *lbuf = (uint8_t *)buf;
|
||||
while(len--) write(*lbuf++);
|
||||
while(*lbuf !=0 && len--) write(*lbuf++);
|
||||
|
||||
inTransaction = lockTransaction;
|
||||
end_tft_write();
|
||||
return 1;
|
||||
}
|
||||
|
||||
#endif
|
||||
*/
|
||||
/***************************************************************************************
|
||||
** Function name: write
|
||||
** Description: draw characters piped through serial stream
|
||||
|
@@ -16,7 +16,7 @@
|
||||
#ifndef _TFT_eSPIH_
|
||||
#define _TFT_eSPIH_
|
||||
|
||||
#define TFT_ESPI_VERSION "2.4.37"
|
||||
#define TFT_ESPI_VERSION "2.4.38"
|
||||
|
||||
// Bit level feature flags
|
||||
// Bit 0 set: viewport capability
|
||||
@@ -611,7 +611,7 @@ class TFT_eSPI : public Print { friend class TFT_eSprite; // Sprite class has ac
|
||||
|
||||
// Support function to UTF8 decode and draw characters piped through print stream
|
||||
size_t write(uint8_t);
|
||||
size_t write(const uint8_t *buf, size_t len);
|
||||
// size_t write(const uint8_t *buf, size_t len);
|
||||
|
||||
// Used by Smooth font class to fetch a pixel colour for the anti-aliasing
|
||||
void setCallback(getColorCallback getCol);
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "TFT_eSPI",
|
||||
"version": "2.4.37",
|
||||
"version": "2.4.38",
|
||||
"keywords": "Arduino, tft, ePaper, display, Pico, RP2040, STM32, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9481, ILI9486, ILI9488, ST7789, RM68140, SSD1351, SSD1963, ILI9225, HX8357D",
|
||||
"description": "A TFT and ePaper SPI graphics library with optimisation for Raspberry Pi Pico, ESP8266, ESP32 and STM32",
|
||||
"repository":
|
||||
|
@@ -1,5 +1,5 @@
|
||||
name=TFT_eSPI
|
||||
version=2.4.37
|
||||
version=2.4.38
|
||||
author=Bodmer
|
||||
maintainer=Bodmer
|
||||
sentence=TFT graphics library for Arduino processors with performance optimisation for RP2040, STM32, ESP8266 and ESP32
|
||||
|
Reference in New Issue
Block a user