mirror of https://github.com/arendst/Tasmota.git
fix ssd1306 rotate
This commit is contained in:
parent
d62d33bc4d
commit
13b0161919
|
@ -584,6 +584,22 @@ boolean Adafruit_SSD1306::begin(uint8_t vcs, uint8_t addr, boolean reset,
|
|||
}
|
||||
|
||||
|
||||
void Adafruit_SSD1306::DisplayInit(int8_t p,int8_t size,int8_t rot,int8_t font) {
|
||||
// ignore update mode
|
||||
//if (p==DISPLAY_INIT_MODE) {
|
||||
setRotation(rot);
|
||||
invertDisplay(false);
|
||||
setTextWrap(false); // Allow text to run off edges
|
||||
cp437(true);
|
||||
setTextFont(font);
|
||||
setTextSize(size);
|
||||
setTextColor(WHITE,BLACK);
|
||||
setCursor(0,0);
|
||||
fillScreen(BLACK);
|
||||
Updateframe();
|
||||
//}
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
// DRAWING FUNCTIONS -------------------------------------------------------
|
||||
|
|
|
@ -141,6 +141,7 @@ public:
|
|||
void invertDisplay(boolean i);
|
||||
void dim(boolean dim);
|
||||
void DisplayOnff(int8_t on);
|
||||
void DisplayInit(int8_t p,int8_t size,int8_t rot,int8_t font);
|
||||
|
||||
#if 0
|
||||
void clearDisplay(void);
|
||||
|
|
Loading…
Reference in New Issue