14 TftDDDebugInterface(TFT_eSPI& tft,
int x = 0,
int y = 0, uint8_t fontSize = 2, uint8_t font = 1,
bool indicateSendCommand =
false): tft(tft) {
17 this->fontSize = fontSize;
19 this->indicateSendCommand = indicateSendCommand;
23 if (indicateSendCommand) {
25 tft.fillRect(x, y, x + 10, y + 10, TFT_WHITE);
27 tft.fillCircle(x + 5, y + 5, 5, TFT_RED);
30 tft.fillRect(x + 2, y + 2, x + 12, y + 12, TFT_WHITE);
32 tft.fillCircle(x + 7, y + 7, 5, TFT_RED);
38 virtual void drawText(
const char* text,
bool isError) {
54 void showMsg(
const char* msg,
int xOff) {
55 uint32_t textcolor = tft.textcolor;
56 uint32_t textbgcolor = tft.textbgcolor;
57 uint8_t textsize = tft.textsize;
58 tft.setTextColor(TFT_RED, TFT_WHITE);
59 tft.setTextSize(fontSize);
60 tft.drawString(msg, x + xOff, y, font);
61 tft.setTextColor(textcolor, textbgcolor);
62 tft.setTextSize(textsize);
70 bool indicateSendCommand;
Definition: ddtftutil.h:12
virtual void logSendCommand(int state)
Definition: ddtftutil.h:22