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

Remove clean and set brightness from begin #42

Merged
merged 3 commits into from
Nov 2, 2024

Conversation

smaryus
Copy link
Contributor

@smaryus smaryus commented Oct 8, 2024

Remove clean and set brightness from begin method because on ESP8266 when resuming from deep sleep would create flickering. This is because ESP8266 when it wakes up from deep sleep the device does a restart, which would invoke begin().

Begin method will not clean or change the brightness because on ESP8266
when resuming from deep sleep would create flickering.
@smaryus smaryus changed the title Remove clean and set brightness Remove clean and set brightness from begin Oct 8, 2024
@jasonacox
Copy link
Owner

I would like to test this on the Arduino Uno and an ATtiny to make sure we don't have unintended side effects.

Thanks for submitting this!

@smaryus
Copy link
Contributor Author

smaryus commented Oct 11, 2024

Sure, thanks for checking it.
if you want not to change the current behavior of the library, then maybe you can change the PR and have a parameter for begin to control the clean and it is true by default?

@jasonacox
Copy link
Owner

change the PR and have a parameter for begin to control the clean and it is true by default

This is brilliant! I like this!

smaryus and others added 2 commits October 13, 2024 09:40
The parameter will control if begin needs will clear the display and set the brightness to maximum.
@jasonacox jasonacox merged commit 848382a into jasonacox:master Nov 2, 2024
1 check passed
@jasonacox
Copy link
Owner

Thanks @smaryus !

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