File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ bool Inkplate::begin()
145
145
sendCommand (0x50 ); // VCOM and data interval setting
146
146
sendData (0x77 ); // WBmode:VBDF 17|D7 VBDW 97 VBDB 57 WBRmode:VBDF F7 VBDW 77 VBDB 37 VBDR B7
147
147
148
+ _panelState = true ;
148
149
return true ;
149
150
}
150
151
@@ -224,6 +225,8 @@ void Inkplate::setPanelDeepSleep(bool _state)
224
225
pinMode (EPAPER_BUSY_PIN, INPUT);
225
226
pinMode (EPAPER_CLK, INPUT);
226
227
pinMode (EPAPER_DIN, INPUT);
228
+
229
+ _panelState = false ;
227
230
}
228
231
}
229
232
Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ bool Inkplate::begin()
131
131
if (!waitForEpd (BUSY_TIMEOUT_MS))
132
132
return 0 ; // Waiting for the electronic paper IC to release the idle signal
133
133
134
+ _panelState = true ;
134
135
return true ;
135
136
}
136
137
@@ -211,6 +212,8 @@ void Inkplate::setPanelDeepSleep(bool _state)
211
212
pinMode (EPAPER_BUSY_PIN, INPUT);
212
213
pinMode (EPAPER_CLK, INPUT);
213
214
pinMode (EPAPER_DIN, INPUT);
215
+
216
+ _panelState = false ;
214
217
}
215
218
}
216
219
Original file line number Diff line number Diff line change @@ -175,6 +175,8 @@ void Inkplate::setPanelDeepSleep(bool _state)
175
175
176
176
// Wait until ePaper is ready (power on is complete)
177
177
waitForEpd (BUSY_TIMEOUT_MS);
178
+
179
+ _panelState = true ;
178
180
}
179
181
else
180
182
{
@@ -200,6 +202,8 @@ void Inkplate::setPanelDeepSleep(bool _state)
200
202
pinMode (EPAPER_BUSY_PIN, INPUT);
201
203
pinMode (EPAPER_CLK, INPUT);
202
204
pinMode (EPAPER_DIN, INPUT);
205
+
206
+ _panelState = false ;
203
207
}
204
208
}
205
209
You can’t perform that action at this time.
0 commit comments