Update drawButton comments

This commit is contained in:
Just Call Me Koko 2020-02-01 13:58:48 -05:00
parent 5d345138d7
commit c569c8725a
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,8 @@ void TFT_eSPI_Button::drawButton(uint8_t d, int padding, String button_name, boo
uint8_t tempdatum = _gfx->getTextDatum();
_gfx->setTextDatum(d);
// Button label will be limited length unless string argument is provided
if (button_name == "")
_gfx->drawString(_label, _x1 + padding, _y1 + (_h/2));
else