Fix #1547 for RP2040 processor with ST7789 TFT

Add Arduino Nano Connect setup example 62
This commit is contained in:
Bodmer
2022-01-26 22:20:34 +00:00
parent 420165904c
commit e61fb8c78d
12 changed files with 251 additions and 43 deletions
+2 -2
View File
@@ -65,8 +65,8 @@ void TFT_eSPI_Button::drawButton(bool inverted, String long_name) {
_gfx->drawRoundRect(_x1, _y1, _w, _h, r, outline);
if (_gfx->textfont == 255) {
_gfx->setCursor(_x1 + (_w / 2) - (strlen(_label) * 3 * _textsize),
_y1 + (_h / 2) - (4 * _textsize));
_gfx->setCursor(_x1 + (_w / 8),
_y1 + (_h / 4));
_gfx->setTextColor(text);
_gfx->setTextSize(_textsize);
_gfx->print(_label);