#include <ErrorScreen.h>
◆ ErrorScreen()
ErrorScreen::ErrorScreen |
( |
| ) |
|
Constructor for the error screen.
◆ drawScreen()
Implement this method to draw the associated screen object on the specified display.
- Parameters
-
display | Pointer to the display object |
Implements ScreenInterface.
◆ handleUserConfirmationAction()
Implement this method to define what to do when user confirmation actions are performed.
- Parameters
-
action | UserConfirmationAction::[None|SingleClick|DoubleClick|LongPress] |
Implements ScreenInterface.
◆ handleUserSelectionAction()
void ErrorScreen::handleUserSelectionAction |
( |
UserSelectionAction |
action, |
|
|
bool |
throttleInverted = false |
|
) |
| |
|
overridevirtual |
Implement this method to define what to do when user selection actions are performed throttleInverted enables an interface to decrease speed when moving up and vice versa, which is handy for a rotary encoder.
- Parameters
-
action | UserSelectionAction::[None|Up|UpFaster|UpFastest|Down|DownFaster|DownFastest] |
throttleInverted | True|False |
Implements ScreenInterface.
◆ setErrorMessage()
void ErrorScreen::setErrorMessage |
( |
const char * |
errorMessage | ) |
|
Set the error message to be displayed.
- Parameters
-
errorMessage | Error message |
◆ _errorMessage
const char* ErrorScreen::_errorMessage |
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/DCCEXSimpleThrottle/DCCEXSimpleThrottle/ErrorScreen.h
- /home/runner/work/DCCEXSimpleThrottle/DCCEXSimpleThrottle/ErrorScreen.cpp