File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -396,48 +396,19 @@ void Inkplate::setIOExpanderForLowPower()
396
396
397
397
void Inkplate::sleepColorPanel ()
398
398
{
399
- // Serial.println("In sleep colorpanel!");
400
-
401
- delay (3000 );
402
- // Serial.println("JUST BEFORE SET PANEL DEEP SLEEP FALSE!");
403
- Serial.flush ();
404
399
405
400
setPanelDeepSleep (false ); // First, wake the panel back up
406
401
407
- delay (3000 );
408
- // Serial.println("JUST BEFORE SENDING SLEEP STUFF!");
409
- Serial.flush ();
410
-
411
- // put the panel to sleep via command
412
402
delay (10 );
413
403
sendCommand (DEEP_SLEEP_REGISTER);
414
404
sendData (0xA5 );
415
- delay (100 ); // Wait a bit until it's surely in sleep
416
-
417
- delay (3000 );
418
- // Serial.println("JUST BEFORE SDCARD SLEEP!");
419
- Serial.flush ();
420
405
421
406
422
407
// Make sure the SD card is in sleep
423
408
sdCardSleep ();
424
409
delay (10 );
425
410
426
- delay (3000 );
427
- // Serial.println("JUST BEFORE WRITING HIGH RST PIN!");
428
- Serial.flush ();
429
-
430
-
431
411
digitalWrite (EPAPER_RST_PIN, HIGH);
432
-
433
- delay (3000 );
434
- // Serial.println("just before sleep hold en!");
435
- Serial.flush ();
436
-
437
412
gpio_deep_sleep_hold_en (); // Make sure RST pin stays high during sleep
438
-
439
- delay (3000 );
440
- // Serial.println("just after sleep hold en!");
441
- Serial.flush ();
442
413
}
443
414
#endif
You can’t perform that action at this time.
0 commit comments