File tree Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -97,16 +97,20 @@ void Inkplate::einkOff()
97
97
SPH_CLEAR;
98
98
SPV_CLEAR;
99
99
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 ();
104
105
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 ();
110
114
111
115
pinsZstate ();
112
116
setPanelState (0 );
Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ void Inkplate::display1b(bool leaveOn)
344
344
clean (3 , 1 );
345
345
vscan_start ();
346
346
347
- if (leaveOn)
347
+ if (! leaveOn)
348
348
einkOff ();
349
349
_blockPartial = 0 ;
350
350
}
You can’t perform that action at this time.
0 commit comments