TUI for 128*64 px graphical display using U8g2. Holds references to a U8g2lib instance for writing to display, an EEPROMConfig instance to edit the config, and to a Humidistat instance to show/edit its state.
More...
#include <GraphicalDisplayUI.h>
|
void | begin () override |
| Initialize the display.
|
|
|
| GraphicalDisplayUI (U8G2 *u8g2, const ButtonReader *buttonReader, SingleHumidistat *humidistat, etl::span< const ThermistorReader, 4 > trs, EEPROMConfig *eepromConfig, SetpointProfileRunner *spr) |
| Constructor.
|
|
| GraphicalDisplayUI (U8G2 *u8g2, const ButtonReader *buttonReader, CascadeHumidistat *humidistat, etl::span< const ThermistorReader, 4 > trs, EEPROMConfig *eepromConfig, SetpointProfileRunner *spr) |
|
void | update () |
| Update the display and handle input: set Humidistat's setpoint.
|
|
|
| ControllerUI (Print *display, const ButtonReader *buttonReader, etl::span< const ThermistorReader, 4 > trs) |
| Constructor.
|
|
void | blink (uint8_t col, uint8_t row, const char *buf) |
| Print blinking text.
|
|
void | printNTC (uint8_t col, uint8_t row, uint8_t i) |
| Print temperature read from thermistors. Handles NaN values as 0.
|
|
template<typename... T> |
void | printf (uint8_t col, uint8_t row, const char *fmt, T... args) |
| Print formatted data to display, at (col, row). Calculates lengths and creates appropriate buffer internally.
|
|
static void | adjustValue (double delta, double &value, uint8_t min, uint8_t max) |
| In-/de-crement a variable, while clipping it to [min, max].
|
|
etl::span< const ThermistorReader, 4 > | trs |
|
unsigned long | lastRefreshed = 0 |
| Last time display was updated (in millis)
|
|
const uint16_t | refreshInterval = config::refreshInterval |
|
const uint8_t | adjustStep = config::adjustStep |
|
const double | tolerance = config::tolerance |
|
template<class Humidistat_t>
class GraphicalDisplayUI< Humidistat_t >
TUI for 128*64 px graphical display using U8g2. Holds references to a U8g2lib instance for writing to display, an EEPROMConfig instance to edit the config, and to a Humidistat instance to show/edit its state.
- Template Parameters
-
Definition at line 24 of file GraphicalDisplayUI.h.
◆ Action
template<class Humidistat_t >
◆ Selection
template<class Humidistat_t >
Config tab selection definitions.
Enumerator |
---|
par | |
number | |
actions | |
Definition at line 35 of file GraphicalDisplayUI.h.
◆ Tab
template<class Humidistat_t >
◆ GraphicalDisplayUI() [1/2]
template<class Humidistat_t >
◆ GraphicalDisplayUI() [2/2]
template<class Humidistat_t >
◆ begin()
template<class Humidistat_t >
◆ clear()
template<class Humidistat_t >
|
inlineoverrideprivatevirtual |
◆ draw()
template<class Humidistat_t >
|
inlineoverrideprivatevirtual |
◆ drawConfig()
template<class Humidistat_t >
◆ drawInfo()
template<class Humidistat_t >
|
inlineoverrideprivatevirtual |
◆ drawMain() [1/3]
template<class Humidistat_t >
◆ drawMain() [2/3]
◆ drawMain() [3/3]
◆ DrawMainCommon()
template<class Humidistat_t >
◆ drawSplash()
template<class Humidistat_t >
|
inlineoverrideprivatevirtual |
◆ drawTabBar()
template<class Humidistat_t >
◆ drawTabInfo()
template<class Humidistat_t >
◆ handleInput()
template<class Humidistat_t >
|
inlineoverrideprivatevirtual |
Handle input.
- Parameters
-
state | Keypad state |
pressedFor | Duration the key has been pressed (in millis) |
- Returns
- 1 if button was pressed, 0 if not
Implements ControllerUI.
Definition at line 318 of file GraphicalDisplayUI.h.
◆ handleInputConfig()
template<class Humidistat_t >
◆ handleInputInfo()
template<class Humidistat_t >
◆ handleInputMain()
template<class Humidistat_t >
◆ setCursor()
template<class Humidistat_t >
|
inlineoverrideprivatevirtual |
◆ configPars
template<class Humidistat_t >
◆ configSaveCooldown
template<class Humidistat_t >
const uint8_t GraphicalDisplayUI< Humidistat_t >::configSaveCooldown = config::configSaveCooldown |
|
private |
◆ configSaveTimer
template<class Humidistat_t >
Timer containing the current value of the cooldown on saving config to EEPROM.
Definition at line 62 of file GraphicalDisplayUI.h.
◆ currentAction
template<class Humidistat_t >
◆ currentDigit
template<class Humidistat_t >
◆ currentPar
template<class Humidistat_t >
◆ currentSelection
template<class Humidistat_t >
◆ currentSPProfile
template<class Humidistat_t >
◆ currentTab
template<class Humidistat_t >
◆ eepromConfig
template<class Humidistat_t >
◆ frame
template<class Humidistat_t >
◆ humidistat
template<class Humidistat_t >
◆ longPressDuration
template<class Humidistat_t >
const uint16_t GraphicalDisplayUI< Humidistat_t >::longPressDuration = config::longPressDuration |
|
private |
◆ nConfigPars
template<class Humidistat_t >
◆ spr
template<class Humidistat_t >
◆ u8g2
template<class Humidistat_t >
The documentation for this class was generated from the following file: