Added isLandscape()

This commit is contained in:
CommanderRedYT
2022-06-13 17:58:01 +02:00
parent bb02a6c267
commit 80e45d368e
2 changed files with 5 additions and 1 deletions

View File

@ -2,4 +2,4 @@
namespace espgui {
TFT_eSPI tft;
}
} // namespace espgui

View File

@ -5,4 +5,8 @@
namespace espgui {
extern TFT_eSPI tft;
inline bool isLandscape()
{
return (tft.getRotation() == 1 || tft.getRotation() == 3);
}
}