ArduinoDumbDisplay v0.9.9-r40
DumbDisplay Arduino Library -- https://github.com/trevorwslee/Arduino-DumbDisplay
 
Loading...
Searching...
No Matches
DDReconnectPassiveConnectionHelper Class Reference

Helper class to manage passive connection to DumbDisplay. The only method that should be called in void loop() {} is DDPassiveConnectionHelper::loop(), passing to it some callbacks Note that it will surround call to initializeCallback with calls to DumbDisplay::recordLayerSetupCommands() and DumbDisplay::playbackLayerSetupCommands() More...

#include <_dd_misc.h>

Public Member Functions

 DDReconnectPassiveConnectionHelper (DumbDisplay &dumbdisplay, const String &layerSetupPersistId)
 
bool loop (void(*initializeCallback)(), void(*updateCallback)())
 
bool initialized ()
 

Public Attributes

DumbDisplaydumbdisplay
 

Detailed Description

Helper class to manage passive connection to DumbDisplay. The only method that should be called in void loop() {} is DDPassiveConnectionHelper::loop(), passing to it some callbacks Note that it will surround call to initializeCallback with calls to DumbDisplay::recordLayerSetupCommands() and DumbDisplay::playbackLayerSetupCommands()

Since
v0.9.9

Constructor & Destructor Documentation

◆ DDReconnectPassiveConnectionHelper()

DDReconnectPassiveConnectionHelper::DDReconnectPassiveConnectionHelper ( DumbDisplay dumbdisplay,
const String &  layerSetupPersistId 
)
inline
Parameters
layerSetupPersistIdused when calling DumbDisplay::playbackLayerSetupCommands()

Member Function Documentation

◆ loop()

bool DDReconnectPassiveConnectionHelper::loop ( void(*)()  initializeCallback,
void(*)()  updateCallback 
)
inline
Parameters
initializeCallbackcalled after DumbDisplay is connected (or reconnected)
updateCallbackcalled to update DumbDisplay components
disconnectedCallbackcalled after "master reset" DumbDisplay, i.e. lost previous connection