aboutsummaryrefslogtreecommitdiffstats
path: root/glcd.h
diff options
context:
space:
mode:
Diffstat (limited to 'glcd.h')
-rw-r--r--[-rwxr-xr-x]glcd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/glcd.h b/glcd.h
index f00039fc..2af3ddf0 100755..100644
--- a/glcd.h
+++ b/glcd.h
@@ -7,6 +7,9 @@
#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 240
+#define PORTRAIT (orientation == portrait || orientation == portraitInv)
+#define LANDSCAPE (orientation == landscape || orientation == landscapeInv)
+
/* uncomment if no board.h file used
#define LCD_DATA_PORT GPIOE
#define LCD_CMD_PORT GPIOD