From b9d12db985f2cf302ba12cddbaabd7acd15cd4fb Mon Sep 17 00:00:00 2001
From: BadWolf42 <BadWolf42@users.noreply.github.com>
Date: Sat, 17 Jun 2017 16:23:00 +0200
Subject: [PATCH] Added resetOrientation

---
 OLEDDisplay.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/OLEDDisplay.cpp b/OLEDDisplay.cpp
index a5b777b..f064270 100644
--- a/OLEDDisplay.cpp
+++ b/OLEDDisplay.cpp
@@ -550,6 +550,11 @@ void OLEDDisplay::setContrast(char contrast) {
   sendCommand(contrast);
 }
 
+void OLEDDisplay::resetOrientation() {
+  sendCommand(SEGREMAP);
+  sendCommand(COMSCANINC);           //Reset screen rotation or mirroring
+}
+
 void OLEDDisplay::flipScreenVertically() {
   sendCommand(SEGREMAP | 0x01);
   sendCommand(COMSCANDEC);           //Rotate screen 180 Deg
-- 
GitLab