Vypinani zaporneho napeti OLED rizeno direktivou OLED_REAL_OFF
This commit is contained in:
parent
ab95c7e60d
commit
19b1d3069e
@ -72,7 +72,9 @@ void OLEDUIPlus::startAnim(int open)
|
||||
_anim.height = _oled->height() / 2;
|
||||
_anim.lineClosing = false;
|
||||
_anim.lineWidth = 0;
|
||||
#if defined(OLED_REAL_OFF)
|
||||
_oled->displayOn();
|
||||
#endif
|
||||
_displayon = true;
|
||||
} else {
|
||||
_anim.closing = true;
|
||||
@ -123,7 +125,11 @@ void onOffOverlay(OLEDDisplay *display, OLEDDisplayUiState *state)
|
||||
|
||||
if (_anim.lineClosing && _anim.closing) {
|
||||
_anim.active = false;
|
||||
display->clear();
|
||||
display->display();
|
||||
#if defined(OLED_REAL_OFF)
|
||||
display->displayOff();
|
||||
#endif
|
||||
if (_oledoff != nullptr)
|
||||
_oledoff();
|
||||
_displayon = false;
|
||||
@ -339,8 +345,10 @@ void OLEDUIPlus::OTAStart(void)
|
||||
{
|
||||
|
||||
if (_oled) {
|
||||
#if defined(OLED_REAL_OFF)
|
||||
if (false == _displayon)
|
||||
_oled->displayOn();
|
||||
#endif
|
||||
_oled->clear();
|
||||
_oled->setFont(ArialMT_Plain_10);
|
||||
_oled->setTextAlignment(TEXT_ALIGN_CENTER_BOTH);
|
||||
|
Loading…
Reference in New Issue
Block a user