Hibernation mode while updating eink display

hertugen
Posts: 10
Joined: Thu Jan 06, 2022 10:22 am

Hibernation mode while updating eink display

Postby hertugen » Wed Nov 16, 2022 12:27 am

I have a little ESP32-circuit, that updates an eink display (Waveshare with integrated controllerboard), once and a while.

Code: Select all

display.init();
  display.setTextColor(GxEPD_BLACK);
  display.setRotation(0);
  //display.setFullWindow();
  display.firstPage();
  do
  {
  	// Set the individual pixels to a color (7 in total)
  }
  } while (display.nextPage());
  // Now we put the ESP into hibernation mode
 
It works as intended, but the thing is that the circuit is battery-operated and since the 7-color display can take quite some time to update, my question is: Is it possible to send image data to the eink display and then put the ESP into hibernation mode while the display finishes updating?

lbernstone
Posts: 831
Joined: Mon Jul 22, 2019 3:20 pm

Re: Hibernation mode while updating eink display

Postby lbernstone » Wed Nov 16, 2022 12:47 am

This ultimately is going to depend on the display controller, but it certainly won't work with a paged buffer like that. Use a full framebuffer, compose the whole image, and pass it to the display. The power domain for the display can't be under the control of the esp, since that will be going to sleep. If you can get it all lined up so the display is not dependent on the mcu being active, then it should work.

Who is online

Users browsing this forum: No registered users and 72 guests