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

Custom startup text #78

Merged
merged 4 commits into from
Dec 7, 2019
Merged

Custom startup text #78

merged 4 commits into from
Dec 7, 2019

Conversation

VK2EFL
Copy link
Collaborator

@VK2EFL VK2EFL commented Nov 14, 2019

The purpose of the change is to allow the end user to define a custom string that will be displayed briefly (for the default 4 seconds) on the startup screen as the keyer is powered up or reset.
The custom string is defined in keyer_settings.h
The option OPTION_PERSONALIZED_STARTUP_SCREEN is in keyer_features_and_options.h
The code changes in the main sketch check if the display is specified to have just two lines. If so then saying 'hi' takes precedence on the second line and we do not display the custom string, so if we are not saying 'hi' then we can display the custom text on the second line.
If the display is specified to have three lines then we will display the custom text on the third line (we can still say 'hi' on the second line) and if we have four or more lines then we also display the code version on the fourth line.
No string length checking is performed (although it would be easy to add in) and the onus is on the end user to take care that the string length does not exceed the number of columns on the display.
Different displays behave differently with oversized strings. Some will scroll right and the leading characters get dropped off the left hand side, other displays simply will not display any more characters than the number of columns that the display has and excess characters don't appear.

@k3ng k3ng merged commit 3abcade into master Dec 7, 2019
@k3ng k3ng deleted the Custom_Startup_Text branch December 7, 2019 16:16
k3ng added a commit that referenced this pull request Dec 7, 2019
      Updated version number for multiple merged pull requests
        #78 - Custom startup text - Thanks, Fred, VK2EFL
        #80 - FK-11 Support - Thanks, Ben git1k2
        #82 - Additional display info - Thanks, Fred, VK2EFL
      Fixed errant text at line 7293 from merge of pull request 82
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.

None yet

2 participants