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