From fa9d47310b047dffff2756e146c1460a42aa9f1a Mon Sep 17 00:00:00 2001 From: Josh Goebel Date: Sun, 21 Feb 2016 01:42:24 -0500 Subject: [PATCH] move additional OLED command defines to .h --- src/core/core.cpp | 3 --- src/core/core.h | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/core.cpp b/src/core/core.cpp index 9af109e..336ad85 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -274,9 +274,6 @@ void ArduboyCore::flipVertical(boolean flipped) sendLCDCommand(flipped ? OLED_VERTICAL_FLIPPED : OLED_VERTICAL_NORMAL); } -#define OLED_HORIZ_FLIPPED 0xA0 // reversed segment re-map -#define OLED_HORIZ_NORMAL 0xA1 // normal segment re-map - // flip the display horizontally or set to normal void ArduboyCore::flipHorizontal(boolean flipped) { diff --git a/src/core/core.h b/src/core/core.h index 79b16fd..ff8bdc2 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -121,6 +121,10 @@ #define OLED_VERTICAL_FLIPPED 0xC0 // reversed COM scan direction #define OLED_VERTICAL_NORMAL 0xC8 // normal COM scan direction +#define OLED_HORIZ_FLIPPED 0xA0 // reversed segment re-map +#define OLED_HORIZ_NORMAL 0xA1 // normal segment re-map + + // ----- #define COLUMN_ADDRESS_END (WIDTH - 1) & 0x7F // 128 pixels wide