Skip to content

Commit 5ef9e62

Browse files
committed
Fixed vertical lines on Inkplate6Plus after panel power down, fixed leaveOn bug on Inkplate6Plus on 1 bit full refresh mode
1 parent f5b54ea commit 5ef9e62

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

src/Inkplate.cpp

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,20 @@ void Inkplate::einkOff()
9797
SPH_CLEAR;
9898
SPV_CLEAR;
9999

100-
VCOM_CLEAR;
101-
delay(6);
102-
PWRUP_CLEAR;
103-
WAKEUP_CLEAR;
100+
// Put TPS65186 into standby mode (leaving 3V3 SW active)
101+
Wire.beginTransmission(0x48);
102+
Wire.write(0x01);
103+
Wire.write(0x6f);
104+
Wire.endTransmission();
104105

105-
unsigned long timer = millis();
106-
do
107-
{
108-
delay(1);
109-
} while ((readPowerGood() != 0) && (millis() - timer) < 250);
106+
// Wait for all PWR rails to shut down
107+
delay(100);
108+
109+
// Disable 3V3 to the panel
110+
Wire.beginTransmission(0x48);
111+
Wire.write(0x01);
112+
Wire.write(0x4f);
113+
Wire.endTransmission();
110114

111115
pinsZstate();
112116
setPanelState(0);

src/boards/Inkplate6plus.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ void Inkplate::display1b(bool leaveOn)
344344
clean(3, 1);
345345
vscan_start();
346346

347-
if (leaveOn)
347+
if (!leaveOn)
348348
einkOff();
349349
_blockPartial = 0;
350350
}

0 commit comments

Comments
 (0)