From 588d4e6b2ae6708de0da264cd8abb66f8424c253 Mon Sep 17 00:00:00 2001
From: BadWolf42 <BadWolf42@users.noreply.github.com>
Date: Sat, 20 May 2017 15:33:14 +0200
Subject: [PATCH] Added mirrorScreen() to OLEDDisplay.cpp

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

diff --git a/OLEDDisplay.cpp b/OLEDDisplay.cpp
index f8fc226..a5b777b 100644
--- a/OLEDDisplay.cpp
+++ b/OLEDDisplay.cpp
@@ -555,6 +555,11 @@ void OLEDDisplay::flipScreenVertically() {
   sendCommand(COMSCANDEC);           //Rotate screen 180 Deg
 }
 
+void OLEDDisplay::mirrorScreen() {
+  sendCommand(SEGREMAP);
+  sendCommand(COMSCANDEC);           //Mirror screen
+}
+
 void OLEDDisplay::clear(void) {
   memset(buffer, 0, DISPLAY_BUFFER_SIZE);
 }
-- 
GitLab