Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add epd_powerdown for lilygo #179

Merged
merged 10 commits into from
May 10, 2022
Merged

Conversation

Yardie-
Copy link
Contributor

@Yardie- Yardie- commented May 8, 2022

Add lilygo specific function that did my head in for a while.
When the power is turned off to the epd it seems the power to the touch screen is also disabled. Below are the notes I added.

On lilygo disable display power but not touch screen.
The epd power flag was re-purposed as power enable
however it also disables the touch.
this workaround may still leave power on to epd
and as such may cause other problems such as grey screen.
please also use poweroff when you sleep the system
wake on touch will still work just not the I2C interface.

On lilygo disable display power but not touch screen.
  The epd power flag was re-purposed as power enable
   however it also disables the touch.
  this workaround may still leave power on to epd
  and as such may cause other problems such as grey screen.
  please also use poweroff when you sleep the system
  wake on touch will still work just not the I2C interface.
Copy link
Collaborator

@martinberlin martinberlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, go ahead and merge

@martinberlin martinberlin marked this pull request as ready for review May 9, 2022 03:16
@Yardie-
Copy link
Contributor Author

Yardie- commented May 9, 2022

Thanks @martinberlin I'm not sure how to deal with the documentation side of this.

@martinberlin
Copy link
Collaborator

Just add a small addition in the Readme please mentioning what is the use-case for this function.
I suggested Valentin that we start a Wiki to add specific documentation for different Boards / Epaper models but I guess that has to wait.

@Yardie-
Copy link
Contributor Author

Yardie- commented May 9, 2022

Thanks @martinberlin.
No worries.

Sorry it's not the prettiest thing.
@Yardie-
Copy link
Contributor Author

Yardie- commented May 9, 2022

Ok that's done. Sorry I had to do it by hand and don't know markdown,

@Yardie- Yardie- requested a review from martinberlin May 10, 2022 07:32
Deoxygenised the comments on the function so it will be explained in the readthedocs.io
Copy link
Collaborator

@martinberlin martinberlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the readme and remove the epd_poweroff_all() since I think is a function that does not exist anymore

@martinberlin martinberlin dismissed their stale review May 10, 2022 12:56

It’s done

@martinberlin martinberlin merged commit 3ffb83c into vroland:master May 10, 2022
@martinberlin
Copy link
Collaborator

This merge in a single commit: fd8a290

was reversed since it added a function cfg_powerdown is a exact copy of existing funcion cfg_poweroff

CC @mickeprag

@martinberlin martinberlin mentioned this pull request Jun 2, 2022
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.

3 participants