8static const char *
const TAG =
"lcd_menu";
24 " Columns: %u, Rows: %u\n"
25 " Mark characters: %02x, %02x, %02x, %02x",
29 ESP_LOGE(TAG,
"The connected display failed, the menu is disabled!");
56 size_t n = std::min(text.size(), (
size_t) this->columns_ - 2);
57 memcpy(data + 1, item->
get_text().c_str(), n);
64 size_t val_width = std::min((
size_t) this->
columns_ - 7, value.length());
65 memcpy(data + this->
columns_ - val_width - 4,
" [", 2);
66 memcpy(data + this->
columns_ - val_width - 2, value.c_str(), val_width);
virtual void mark_failed()
Mark this component as failed.
virtual void setup()
Where the component's initialization should happen.
void print(uint8_t column, uint8_t row, const char *str)
Print the given text at the specified column and row.
const float PROCESSOR
For components that use data from sensors like displays.
Providing packet encoding functions for exchanging data with a remote host.