-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the new screensaver class in Pam's, Logic, and Euclid scripts (#312)
* Blank the screen * Fix a bug in the ain on-fall callback * Revert "Remove magic numbers for the I/O pins, replace with named constants" This reverts commit 327c3cc. * Show the gate length (to the nearest ms) on the screen, add the screensaver to G&T. Move the screensaver activation & blank timeouts into the Screensaver class itself instead of redefining them externally * Add a new wrapped Oled class that automatically checks for screensaver & screen-blanking. Use this wrapper instead of europi.oled in the 3 scripts that use the screensaver * Revert "Increase the sensitivity of the knobs for waking up the screensaver" This reverts commit 0f21705. * Change centre_text so it doesn't call .show() by default, add clear_first and auto_show arguments to centre_text, modify all extant calls to centre_text to use the correct auto_show behaviour * Go back to high-sensitivity for the knobs * More Linting. Remove the time import from euclid as it's not used anymore * Remove lingering references to .screensaver * Move module imports first, re-add time to deal with CI failures * Try using utime instead of time to see if that makes CI happier * Revert the change to make centre_text auto-show by default, revert associated changes to other scripts * Revert screensaver-related changes & linting updates to non-essential scripts * Use the new screensaver class in Euclid and Logic * Use the new screensaver class in Pam's * Revert changes to europi.py resulting from rebase * Use the new screensaver in Kompari, add button handlers to clear the screensaver
- Loading branch information
Showing
4 changed files
with
83 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.