Added isLandscape()
This commit is contained in:
@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
namespace espgui {
|
namespace espgui {
|
||||||
TFT_eSPI tft;
|
TFT_eSPI tft;
|
||||||
}
|
} // namespace espgui
|
||||||
|
@ -5,4 +5,8 @@
|
|||||||
|
|
||||||
namespace espgui {
|
namespace espgui {
|
||||||
extern TFT_eSPI tft;
|
extern TFT_eSPI tft;
|
||||||
|
inline bool isLandscape()
|
||||||
|
{
|
||||||
|
return (tft.getRotation() == 1 || tft.getRotation() == 3);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user