move additional OLED command defines to .h

This commit is contained in:
Josh Goebel 2016-02-21 01:42:24 -05:00 committed by Scott Allen
parent a591ce7705
commit fa9d47310b
2 changed files with 4 additions and 3 deletions

View File

@ -274,9 +274,6 @@ void ArduboyCore::flipVertical(boolean flipped)
sendLCDCommand(flipped ? OLED_VERTICAL_FLIPPED : OLED_VERTICAL_NORMAL); 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 // flip the display horizontally or set to normal
void ArduboyCore::flipHorizontal(boolean flipped) void ArduboyCore::flipHorizontal(boolean flipped)
{ {

View File

@ -121,6 +121,10 @@
#define OLED_VERTICAL_FLIPPED 0xC0 // reversed COM scan direction #define OLED_VERTICAL_FLIPPED 0xC0 // reversed COM scan direction
#define OLED_VERTICAL_NORMAL 0xC8 // normal 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 #define COLUMN_ADDRESS_END (WIDTH - 1) & 0x7F // 128 pixels wide