aboutsummaryrefslogtreecommitdiffstats
path: root/glcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'glcd.c')
-rw-r--r--glcd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/glcd.c b/glcd.c
index bd9b269b..acf779df 100644
--- a/glcd.c
+++ b/glcd.c
@@ -146,6 +146,10 @@ void lcdSetOrientation(uint8_t newOrientation) {
}
}
+uint16_t lcdGetOrientation(void) {
+ return orientation;
+}
+
void lcdSetWindow(uint16_t x, uint16_t y, uint16_t width, uint16_t height) {
if(orientation == portrait) {
lcdWriteReg(0x0050, x); /* Horizontal GRAM Start Address */