|
Aquarium Cooling Controller
ESP32 firmware for aquarium cooling fan control, monitoring, telemetry, and fault handling.
|
Optional OLED renderer with fail-open behavior. More...
#include <oled_status_display.h>
Public Member Functions | |
| bool | begin (uint32_t nowMs) |
| Probes and initializes a compatible OLED if one is present. | |
| void | update (uint32_t nowMs, const SensorSnapshot &sensorSnapshot, bool faultSnapshotValid, const FaultPolicySnapshot &policySnapshot) |
| Updates the visible OLED state from current controller snapshots. | |
| bool | isAvailable () const |
| Indicates whether a compatible OLED is currently available. | |
| OledDisplayMode | mode () const |
| Returns the last rendered or selected display mode. | |
| const char * | modeLabel () const |
| Returns a short diagnostic label for the current mode. | |
| const char * | primaryText () const |
| Returns the primary visible text used for the current mode. | |
| const char * | secondaryText () const |
| Returns the secondary visible text used for the current mode. | |
| uint8_t | address () const |
| Returns the detected I2C address when the display is available. | |
Optional OLED renderer with fail-open behavior.
The display is intentionally non-critical. If the OLED is missing, cannot be initialized, or later fails during I2C writes, the class disables itself and leaves the rest of the controller unaffected.
| uint8_t OledStatusDisplay::address | ( | ) | const |
Returns the detected I2C address when the display is available.
| bool OledStatusDisplay::begin | ( | uint32_t | nowMs | ) |
Probes and initializes a compatible OLED if one is present.
| nowMs | Current monotonic timestamp in milliseconds. |
| bool OledStatusDisplay::isAvailable | ( | ) | const |
Indicates whether a compatible OLED is currently available.
| OledDisplayMode OledStatusDisplay::mode | ( | ) | const |
Returns the last rendered or selected display mode.
| const char * OledStatusDisplay::modeLabel | ( | ) | const |
Returns a short diagnostic label for the current mode.
| const char * OledStatusDisplay::primaryText | ( | ) | const |
Returns the primary visible text used for the current mode.
| const char * OledStatusDisplay::secondaryText | ( | ) | const |
Returns the secondary visible text used for the current mode.
| void OledStatusDisplay::update | ( | uint32_t | nowMs, |
| const SensorSnapshot & | sensorSnapshot, | ||
| bool | faultSnapshotValid, | ||
| const FaultPolicySnapshot & | policySnapshot | ||
| ) |
Updates the visible OLED state from current controller snapshots.
| nowMs | Current monotonic timestamp in milliseconds. |
| sensorSnapshot | Latest sensor state. |
| faultSnapshotValid | True when policy/fault snapshots are valid. |
| policySnapshot | Latest fault policy state. |