Update TFT_eSPI to v2.5.43

This commit is contained in:
lewisxhe
2024-12-20 10:30:59 +08:00
parent 7f7f0022fe
commit 7abc5fb795
215 changed files with 3400 additions and 1114 deletions
@@ -63,7 +63,7 @@ int max_allowed = 1000; // Maximum number of save images allowed before a resta
// These are default values, this sketch obtains the actual values from the Arduino board
int tft_width = 480; // default TFT width (automatic - sent by Arduino)
int tft_height = 480; // default TFT height (automatic - sent by Arduino)
int color_bytes = 2; // 2 for 16 bit, 3 for three RGB bytes (automatic - sent by Arduino)
int color_bytes = 2; // 2 for 16-bit, 3 for three RGB bytes (automatic - sent by Arduino)
import processing.serial.*;
@@ -2,8 +2,8 @@
// over the serial port. Use a high baud rate, e.g. for an ESP8266:
// Serial.begin(921600);
// At 921600 baud a 320 x 240 image with 16 bit colour transfers can be sent to the
// PC client in ~1.67s and 24 bit colour in ~2.5s which is close to the theoretical
// At 921600 baud a 320 x 240 image with 16-bit colour transfers can be sent to the
// PC client in ~1.67s and 24-bit colour in ~2.5s which is close to the theoretical
// minimum transfer time.
// This sketch has been created to work with the TFT_eSPI library here:
@@ -40,7 +40,7 @@
// Number of pixels to send in a burst (minimum of 1), no benefit above 8
// NPIXELS values and render times:
// NPIXELS 1 = use readPixel() = >5s and 16 bit pixels only
// NPIXELS 1 = use readPixel() = >5s and 16-bit pixels only
// NPIXELS >1 using rectRead() 2 = 1.75s, 4 = 1.68s, 8 = 1.67s
#define NPIXELS 8 // Must be integer division of both TFT width and TFT height
@@ -104,7 +104,7 @@ bool serialScreenServer(String filename)
wait = false; // No need to wait anymore
lastCmdTime = millis(); // Set last received command time
// Send screen size etc using a simple header with delimiters for client checks
// Send screen size etc.using a simple header with delimiters for client checks
sendParameters(filename);
}
}
@@ -169,7 +169,7 @@ bool serialScreenServer(String filename)
}
//====================================================================================
// Send screen size etc using a simple header with delimiters for client checks
// Send screen size etc.using a simple header with delimiters for client checks
//====================================================================================
void sendParameters(String filename)
{
@@ -183,7 +183,7 @@ void sendParameters(String filename)
Serial.write('Y'); // Bits per pixel (16 or 24)
if (NPIXELS > 1) Serial.write(BITS_PER_PIXEL);
else Serial.write(16); // readPixel() only provides 16 bit values
else Serial.write(16); // readPixel() only provides 16-bit values
Serial.write('?'); // Filename next
Serial.print(filename);