Skip to content

Conversation

@ducktec
Copy link

@ducktec ducktec commented Apr 23, 2025

When calling the sleep function on the 3.7inch e-Paper HAT (with a Pico 2W as MCU), the display stops responding altogether and a power-cycle is needed to revive it.

The implemented sleep routine is not matching the driver spec PDF linked in the Waveshare wiki page:

  • The currently used command sequence (Sleep - 0x50, PowerOff - 0x02, and Sleep2 - 0x07) is not to be found in the document and the Sleep and Sleep2 commands are not listed.
  • On page 41, the DeepSleep - 0x10 command is listed in the flow chart instead.

This PR modifies the sleep implementation for epd3in7 to use the deep sleep command instead of the previous command sequence.

With the change in place, the display responds when being waken up with wake_up. The wake_up routine is already doing the correct full re-initialization as specified in the datasheet.

This is likely the same issue as reported in #227.

This fixes an issue where after issuing a `sleep`, the display never wakes up again.
@auto-assign auto-assign bot requested a review from caemor April 23, 2025 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants