You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling strings
btnL.initButtonUL(x, y, BUTTON_W, BUTTON_H, TFT_WHITE, TFT_RED, TFT_BLACK, "Button", 1);
btnR.initButtonUL(x, y, BUTTON_W, BUTTON_H, TFT_WHITE, TFT_BLACK, TFT_GREEN, "OFF", 1);
Issues a warning
C:\Users\vdozhdikov\Desktop\Test Stand for Neptun Smart FB\Programm\Stend_v1.0\Stend_v1.0.ino:1166:82: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
1166 | btnL.initButtonUL(x, y, BUTTON_W, BUTTON_H, TFT_WHITE, TFT_RED, TFT_BLACK, "Button", 1);
| ^~~~~~~~
C:\Users\vdozhdikov\Desktop\Test Stand for Neptun Smart FB\Programm\Stend_v1.0\Stend_v1.0.ino:1172:84: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
1172 | btnR.initButtonUL(x, y, BUTTON_W, BUTTON_H, TFT_WHITE, TFT_BLACK, TFT_GREEN, "OFF", 1);
| ^~~~~
How can this be fixed?
The text was updated successfully, but these errors were encountered:
Hi!
I am using Arduino IDE 2.3.4
When compiling strings
btnL.initButtonUL(x, y, BUTTON_W, BUTTON_H, TFT_WHITE, TFT_RED, TFT_BLACK, "Button", 1);
btnR.initButtonUL(x, y, BUTTON_W, BUTTON_H, TFT_WHITE, TFT_BLACK, TFT_GREEN, "OFF", 1);
Issues a warning
C:\Users\vdozhdikov\Desktop\Test Stand for Neptun Smart FB\Programm\Stend_v1.0\Stend_v1.0.ino:1166:82: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
1166 | btnL.initButtonUL(x, y, BUTTON_W, BUTTON_H, TFT_WHITE, TFT_RED, TFT_BLACK, "Button", 1);
| ^~~~~~~~
C:\Users\vdozhdikov\Desktop\Test Stand for Neptun Smart FB\Programm\Stend_v1.0\Stend_v1.0.ino:1172:84: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
1172 | btnR.initButtonUL(x, y, BUTTON_W, BUTTON_H, TFT_WHITE, TFT_BLACK, TFT_GREEN, "OFF", 1);
| ^~~~~
How can this be fixed?
The text was updated successfully, but these errors were encountered: