From a44ea8d94511de8018736bc1a8b4646758a9eeda Mon Sep 17 00:00:00 2001 From: Bodmer Date: Fri, 23 Feb 2018 23:42:34 +0000 Subject: [PATCH 1/3] Add comment about Smooth_font branch --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index da4a689..d509063 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Configuration of the library font selections, pins used to interface with the TF I have made some changes that will be uploaded soon that improves sprite and image rendering performance by up to 3x faster on the ESP8266. These updates are currently being tested/debugged. -**2. Anti-aliased fonts** +**2. Anti-aliased fonts - see Smooth_font branch for beta test version ** I have been experimenting with anti-aliased font files in "vlw" format generated by the free [Processing IDE](https://processing.org/). This IDE can be used to generate font files from your computer's font set and include **any** Unicode characters. This means Greek, Japanese and any other UTF-16 glyphs can be used. From 3d993afe7e71a3b10a6fead3a4c0115ed49be95f Mon Sep 17 00:00:00 2001 From: Bodmer Date: Fri, 23 Feb 2018 23:44:12 +0000 Subject: [PATCH 2/3] see Smooth_font branch for beta version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d509063..4647721 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Configuration of the library font selections, pins used to interface with the TF I have made some changes that will be uploaded soon that improves sprite and image rendering performance by up to 3x faster on the ESP8266. These updates are currently being tested/debugged. -**2. Anti-aliased fonts - see Smooth_font branch for beta test version ** +**2. Anti-aliased fonts - see Smooth_font branch for beta version** I have been experimenting with anti-aliased font files in "vlw" format generated by the free [Processing IDE](https://processing.org/). This IDE can be used to generate font files from your computer's font set and include **any** Unicode characters. This means Greek, Japanese and any other UTF-16 glyphs can be used. From 02a902f617cbfa37f0143dd423bf050c41b601b4 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Sat, 24 Feb 2018 18:35:03 +0000 Subject: [PATCH 3/3] Potential fix for issue #96 --- TFT_eSPI.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/TFT_eSPI.cpp b/TFT_eSPI.cpp index 31ab2f5..a7c535c 100644 --- a/TFT_eSPI.cpp +++ b/TFT_eSPI.cpp @@ -4377,7 +4377,7 @@ void TFT_eSPI::calibrateTouch(uint16_t *parameters, uint32_t color_fg, uint32_t for(uint8_t j= 0; j<8; j++){ // Use a lower detect threshold as corners tend to be less sensitive - while(!validTouch(&x_tmp, &y_tmp, Z_THRESHOLD/2)) delay(10); + while(!validTouch(&x_tmp, &y_tmp, Z_THRESHOLD/4)); values[i*2 ] += x_tmp; values[i*2+1] += y_tmp; } @@ -4389,14 +4389,14 @@ void TFT_eSPI::calibrateTouch(uint16_t *parameters, uint32_t color_fg, uint32_t // check orientation // from case 0 to case 1, the y value changed. - // If the meassured delta of the touch x axis is bigger than the delta of the y axis, the touch and TFT axes are switched. + // If the measured delta of the touch x axis is bigger than the delta of the y axis, the touch and TFT axes are switched. touchCalibration_rotate = false; if(abs(values[0]-values[2]) > abs(values[1]-values[3])){ touchCalibration_rotate = true; - touchCalibration_x1 = (values[0] + values[4])/2; // calc min x - touchCalibration_x0 = (values[2] + values[6])/2; // calc max x - touchCalibration_y1 = (values[1] + values[3])/2; // calc min y - touchCalibration_y0 = (values[5] + values[7])/2; // calc max y + touchCalibration_x0 = (values[0] + values[4])/2; // calc min x + touchCalibration_x1 = (values[2] + values[6])/2; // calc max x + touchCalibration_y0 = (values[1] + values[3])/2; // calc min y + touchCalibration_y1 = (values[5] + values[7])/2; // calc max y } else { touchCalibration_x0 = (values[0] + values[2])/2; // calc min x touchCalibration_x1 = (values[4] + values[6])/2; // calc max x