mirror of https://github.com/MLXXXp/Arduboy2.git
move additional OLED command defines to .h
This commit is contained in:
parent
a591ce7705
commit
fa9d47310b
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue