-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved Help screen into main loop, now it's just another view of many
- Loading branch information
Showing
4 changed files
with
83 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,12 @@ | |
Software: Barry Hansen, K7BWH, [email protected], Seattle, WA | ||
Hardware: John Vanderbeck, KM7O, Seattle, WA | ||
Purpose: This is a brief screen displayed at startup to | ||
remind the user about the controls on the main | ||
screen. They are not outlined or shown and you | ||
will need to simply remember where they are. | ||
Purpose: This is a brief screen displayed at startup to remind | ||
the user about the controls on the main screen. After | ||
that, the controls are not outlined or shown. The users | ||
need to simply remember where they are. | ||
Note: The Help screen duration is controlled by the controller | ||
and not by the view itself. See timer named 'viewTimer'. | ||
+-Hint:-------+-----------------------------+ | ||
| | | | ||
|
@@ -30,6 +32,8 @@ | |
// ========== extern =========================================== | ||
extern Logger logger; // Griduino.ino | ||
extern void showDefaultTouchTargets(); // Griduino.ino | ||
extern void selectNewView(int cmd); // Griduino.ino | ||
extern int grid_view; // Griduino.ino | ||
|
||
// ========== class ViewHelp =================================== | ||
class ViewHelp : public View { | ||
|
@@ -56,23 +60,21 @@ class ViewHelp : public View { | |
enum txtIndex { | ||
SETTINGS = 0, | ||
NEXTVIEW, | ||
REBOOT, | ||
BRIGHTNESS, | ||
VIEWNAME, | ||
}; | ||
|
||
// ----- static screen text | ||
// const int cl = gScreenWidth/2; | ||
// clang-format off | ||
#define nHelpButtons 3 | ||
Button helpButtons[nHelpButtons] = { | ||
// text x,y w,h r color | ||
{"Settings", margin, margin, 98, 105, radius, cBUTTONLABEL}, //[SETTINGS] | ||
{"Next view", margin+108, margin, 192, 105, radius, cBUTTONLABEL}, //[NEXTVIEW] | ||
{"Brightness", margin, 126, 300, 105, radius, cBUTTONLABEL}, //[BRIGHTNESS] | ||
//{"Hint", cl-38, 4, 76, 26, radius/2, cHIGHLIGHT}, //[VIEWNAME] | ||
//{"Hint:", 1,1, 10, 10, 0, cWARN}, //[VIEWNAME] | ||
}; | ||
// clang-format on | ||
// clang-format on | ||
|
||
}; // end class ViewHelp | ||
|
||
|
@@ -112,7 +114,6 @@ void ViewHelp::startScreen() { | |
// ----- label this view in upper left corner | ||
showNameOfView("Hint: ", cWARN, cBACKGROUND); | ||
|
||
delay(2000); // give user time to read the hint screen | ||
} // end startScreen() | ||
|
||
bool ViewHelp::onTouch(Point touch) { | ||
|
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