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

Debug screen support #101

Merged
merged 4 commits into from
Jul 22, 2023
Merged

Debug screen support #101

merged 4 commits into from
Jul 22, 2023

Conversation

CalamityJames
Copy link
Contributor

@CalamityJames CalamityJames commented Jul 21, 2023

Fixes #100

Adds a debug screen either replace the splash screen or the train departure info (permanent mode).

Setting debug to True replaces the main screen permanently.

Setting debug to an integer (except 1, because 1 == True) will replace the NRE attribution screen with the debug info for debug seconds. (This option hides the clock as it is a static display with time.sleep())

I've tested it on a 3B with no detrimental effects but not got my Pi Zero boxed up into a display to real-world test it yet, although I don't anticipate any performance issues.

I've also added what I believe to be the correct code to render this on both screens but again I haven't got my testing ready for that just yet!

@CalamityJames
Copy link
Contributor Author

I should have also noted that I abstracted the code to get the version number into a function as it's now used in more than one place, efficiency yay!

@chrisys
Copy link
Owner

chrisys commented Jul 22, 2023

Tested on my Zero 2 W, all seems fine as you'd expect! Looks great - thanks for another great contribution 👍

@chrisys chrisys merged commit 302e8fd into chrisys:main Jul 22, 2023
1 check failed
@CalamityJames CalamityJames deleted the debug-screen branch July 27, 2023 00:51
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.

Debug screen
2 participants