Added isLandscape()

This commit is contained in:
CommanderRedYT
2022-06-13 22:58:37 +02:00
parent bb02a6c267
commit 80e45d368e
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
namespace espgui {
TFT_eSPI tft;
}
} // namespace espgui
+4
View File
@@ -5,4 +5,8 @@
namespace espgui {
extern TFT_eSPI tft;
inline bool isLandscape()
{
return (tft.getRotation() == 1 || tft.getRotation() == 3);
}
}