Skip to content

Commit

Permalink
Move Wireless Paper V1.1 custom hibernate behavior to GxEPD2
Browse files Browse the repository at this point in the history
  • Loading branch information
todd-herbert committed Mar 8, 2024
1 parent 7da1153 commit 5d4d91f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/graphics/EInkDisplay2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ bool EInkDisplay::forceDisplay(uint32_t msecLimit)
adafruitDisplay->nextPage();
#endif

#ifndef EINK_NO_HIBERNATE // Only hibernate if controller IC will preserve image memory
// Put screen to sleep to save power (possibly not necessary because we already did poweroff inside of display)
// Power off display hardware
// Most models: deep sleep.
// Wireless Paper V1.1: power off only. Deep sleep clears memory - problems with fast refresh
adafruitDisplay->hibernate();
#endif

LOG_DEBUG("done\n");
return true;
Expand Down
1 change: 0 additions & 1 deletion variants/heltec_wireless_paper/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#define I2C_SCL SCL

#define USE_EINK
#define EINK_NO_HIBERNATE

/*
* eink display pins
Expand Down

0 comments on commit 5d4d91f

Please sign in to comment.