EX-Display
EX-Display
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
DisplayManager Class Reference

Manages all physical displays. More...

#include <DisplayManager.h>

Collaboration diagram for DisplayManager:
[legend]

Public Member Functions

 DisplayManager ()
 Constructor for the DisplayManager.
 
void addDisplay (DisplayInterface *display)
 Add a DisplayInterface derived instance to the list of displays.
 
void createDisplays ()
 Parses the displays configured in myConfig.h and creates the list of displays (this is implemented in CreateDeviceMacros.h, not DisplayManager.cpp)
 
void startDisplays ()
 Call the begin() method for all associated Display instances.
 
void clearAllDisplays ()
 Clear all displays.
 
void displayStartupInfo (const char *version)
 Calls the displayStartupInfo of all Display instances to display the version.
 
void update (ScreenManager *screenManager)
 Call this routinely to ensure all displays are updated with screens.
 
DisplayInterfacegetFirstDisplay ()
 Get the first DisplayInterface derived instance in the list of displays.
 
DisplayInterfacegetDisplayById (uint8_t displayId)
 Get a DisplayInterface derived instance by its ID.
 
void setLogger (Logger *logger)
 Set the Logger instance.
 
 ~DisplayManager ()
 Destructor for the DisplayManager.
 

Private Member Functions

void _setupAllSPICSPins ()
 Set the chip select pin state for all displays that have it set and select them.
 
void _selectSPIDisplay (DisplayInterface *display)
 Manually selects SPI displays that require manual selecting via the CS pin - sets pin low.
 

Private Attributes

DisplayInterface_firstDisplay
 
Logger_logger
 
uint8_t _nextDisplayId
 

Detailed Description

Manages all physical displays.

Constructor & Destructor Documentation

◆ DisplayManager()

DisplayManager::DisplayManager ( )

Constructor for the DisplayManager.

◆ ~DisplayManager()

DisplayManager::~DisplayManager ( )

Destructor for the DisplayManager.

Here is the call graph for this function:

Member Function Documentation

◆ _selectSPIDisplay()

void DisplayManager::_selectSPIDisplay ( DisplayInterface display)
private

Manually selects SPI displays that require manual selecting via the CS pin - sets pin low.

Parameters
displayPointer to the DisplayInterface instance
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _setupAllSPICSPins()

void DisplayManager::_setupAllSPICSPins ( )
private

Set the chip select pin state for all displays that have it set and select them.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addDisplay()

void DisplayManager::addDisplay ( DisplayInterface display)

Add a DisplayInterface derived instance to the list of displays.

Parameters
displayPointer to the instance to add
Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearAllDisplays()

void DisplayManager::clearAllDisplays ( )

Clear all displays.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createDisplays()

void DisplayManager::createDisplays ( )

Parses the displays configured in myConfig.h and creates the list of displays (this is implemented in CreateDeviceMacros.h, not DisplayManager.cpp)

Here is the caller graph for this function:

◆ displayStartupInfo()

void DisplayManager::displayStartupInfo ( const char *  version)

Calls the displayStartupInfo of all Display instances to display the version.

Parameters
versionEX-Display version
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getDisplayById()

DisplayInterface * DisplayManager::getDisplayById ( uint8_t  displayId)

Get a DisplayInterface derived instance by its ID.

Returns
Pointer to the specified instance
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFirstDisplay()

DisplayInterface * DisplayManager::getFirstDisplay ( )

Get the first DisplayInterface derived instance in the list of displays.

Returns
Pointer to the first instance
Here is the caller graph for this function:

◆ setLogger()

void DisplayManager::setLogger ( Logger logger)

Set the Logger instance.

Parameters
loggerPointer to the Logger
Here is the caller graph for this function:

◆ startDisplays()

void DisplayManager::startDisplays ( )

Call the begin() method for all associated Display instances.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update()

void DisplayManager::update ( ScreenManager screenManager)

Call this routinely to ensure all displays are updated with screens.

Parameters
screenManagerPointer to the ScreenManager instance
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _firstDisplay

DisplayInterface* DisplayManager::_firstDisplay
private

◆ _logger

Logger* DisplayManager::_logger
private

◆ _nextDisplayId

uint8_t DisplayManager::_nextDisplayId
private

The documentation for this class was generated from the following files: