TUI for 16x2 character LCD. Holds a reference to a LiquidCrystal instance for writing to display. Displays current mode, PV, SP, and CV the first line of the display, and temperatures on the second line. Use keypad to adjust setpoint (UP/DOWN for fine, LEFT/RIGHT for coarse).
More...
#include <CharDisplayUI.h>
|
void | draw () override |
| Draw main interface (main loop).
|
|
void | drawSplash () override |
| Draw splash screen.
|
|
void | drawInfo () override |
| Draw info screen.
|
|
void | clear () override |
| Clear screen.
|
|
void | setCursor (uint8_t col, uint8_t row) override |
| Set cursor to coordinates.
|
|
bool | handleInput (Buttons state, uint16_t pressedFor) override |
| Handle input.
|
|
|
| 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 |
|
TUI for 16x2 character LCD. Holds a reference to a LiquidCrystal instance for writing to display. Displays current mode, PV, SP, and CV the first line of the display, and temperatures on the second line. Use keypad to adjust setpoint (UP/DOWN for fine, LEFT/RIGHT for coarse).
Definition at line 14 of file CharDisplayUI.h.
◆ CharDisplayUI()
◆ begin()
void CharDisplayUI::begin |
( |
| ) |
|
|
overridevirtual |
◆ clear()
void CharDisplayUI::clear |
( |
| ) |
|
|
overrideprivatevirtual |
◆ draw()
void CharDisplayUI::draw |
( |
| ) |
|
|
overrideprivatevirtual |
◆ drawInfo()
void CharDisplayUI::drawInfo |
( |
| ) |
|
|
overrideprivatevirtual |
◆ drawSplash()
void CharDisplayUI::drawSplash |
( |
| ) |
|
|
overrideprivatevirtual |
◆ handleInput()
bool CharDisplayUI::handleInput |
( |
Buttons | state, |
|
|
uint16_t | pressedFor ) |
|
overrideprivatevirtual |
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 71 of file CharDisplayUI.cpp.
◆ setCursor()
void CharDisplayUI::setCursor |
( |
uint8_t | col, |
|
|
uint8_t | row ) |
|
overrideprivatevirtual |
◆ humidistat
◆ liquidCrystal
LiquidCrystal& CharDisplayUI::liquidCrystal |
|
private |
The documentation for this class was generated from the following files: