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>
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
◆ DDReconnectPassiveConnectionHelper()
DDReconnectPassiveConnectionHelper::DDReconnectPassiveConnectionHelper |
( |
DumbDisplay & |
dumbdisplay, |
|
|
const String & |
layerSetupPersistId |
|
) |
| |
|
inline |
◆ loop()
bool DDReconnectPassiveConnectionHelper::loop |
( |
void(*)() |
initializeCallback, |
|
|
void(*)() |
updateCallback |
|
) |
| |
|
inline |
- Parameters
-
initializeCallback | called after DumbDisplay is connected (or reconnected) |
updateCallback | called to update DumbDisplay components |
disconnectedCallback | called after "master reset" DumbDisplay, i.e. lost previous connection |