Rroblem with TFT_eSPI.cpp text color and background color

I have a number of sketches which use the TFT_eSPI library to display text and graphics on an ILI9341 TFT display. All of them have suddenly quit working when sketch execution reaches statements in the TFT_eSPI.cpp and TFT_eSPI.h files.

Looking at the code in these two files, I think that the text color, "c" and background color, "b" are somehow defined within these files, but I don't understand how the values for B and c are determined within these two TFT_eSPI.cpp and TFT_eSPI.h files.

The associated error messages printed in red are:

C:\Users\Jerry Renken\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:2726:6: error: prototype for 'void TFT_eSPI::setTextColor(uint16_t, uint16_t)' does not match any in class 'TFT_eSPI'
void TFT_eSPI::setTextColor(uint16_t c, uint16_t b)
In file included from C:\Users\Jerry Renken\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:17:0:
C:\Users\Jerry Renken\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.h:586:12: error: candidates are: void TFT_eSPI::setTextColor(uint16_t, uint16_t, bool)
setTextColor(uint16_t fgcolor, uint16_t bgcolor, bool bgfill = false), // Set character (glyph) foreground and background colour, optional background fill for smooth fonts
C:\Users\Jerry Renken\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:2714:6: error: void TFT_eSPI::setTextColor(uint16_t)

void TFT_eSPI::setTextColor(uint16_t c)

My sketches, such as the one attached, worked just fine in February. Can someone help me solve this problem?

TFT_eSPI.cpp (168.5 KB)

TFT_eSPI.h (41.6 KB)

My setup sketches are:

User_Setup.h (6.1 KB)

User_Setup_Select.h (2.2 KB)

Setup1_ILI9341.h (1.3 KB)

Setup109_ILI9341_JR_PD.h (2.3 KB)

The simple sketch that I am trying to run is:

Bodmer_TFT_eSPI_Draw_Text_and_Square.ino (1.6 KB)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.