Skip to content

retry refreshing a few times, let us update faster too #19

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

Merged
merged 2 commits into from
Nov 23, 2020

Conversation

ladyada
Copy link
Member

@ladyada ladyada commented Nov 22, 2020

avoid accidental exceptions when force-refreshing after, say, updating the background

@ladyada ladyada requested a review from makermelissa November 22, 2020 23:35
Copy link
Collaborator

@makermelissa makermelissa 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.

@ladyada ladyada merged commit 056ad75 into adafruit:main Nov 23, 2020
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Nov 23, 2020
self.graphics.display.refresh()
while True:
try:
self.graphics.display.refresh()
Copy link
Member

Choose a reason for hiding this comment

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

Instead do time.sleep(self.graphics.display.time_to_refresh).

Copy link
Member Author

Choose a reason for hiding this comment

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

does time_to_refresh count down or is it the 'max seconds' to refresh

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