This commit is contained in:
egonza1661 2023-11-27 17:48:37 +01:00 committed by GitHub
commit 103b3e1947
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -294,6 +294,14 @@ public:
/**********************************************************************/
bool isPressed(void) { return currstate; };
/**********************************************************************/
/*!
@brief Get the label text
@returns the const char pointer of the buttoś label
*/
/**********************************************************************/
const char *getLabel(void) const { return _label; };
private:
Adafruit_GFX *_gfx;
int16_t _x1, _y1; // Coordinates of top-left corner