ESPHome 2025.5.0
Loading...
Searching...
No Matches
nextion_component.h
Go to the documentation of this file.
1#pragma once
4#include "nextion_base.h"
5
6namespace esphome {
7namespace nextion {
8class NextionComponent;
9
11 public:
12 void update_component_settings() override { this->update_component_settings(false); };
13
14 void update_component_settings(bool force_update) override;
15
20 void set_font_id(uint8_t font_id);
21 void set_visible(bool visible);
22
23 protected:
25
26 bool bco_needs_update_ = false;
27 bool bco_is_set_ = false;
29 bool bco2_needs_update_ = false;
30 bool bco2_is_set_ = false;
32 bool pco_needs_update_ = false;
33 bool pco_is_set_ = false;
35 bool pco2_needs_update_ = false;
36 bool pco2_is_set_ = false;
38 uint8_t font_id_ = 0;
40 bool font_id_is_set_ = false;
41
42 bool visible_ = true;
44 bool visible_is_set_ = false;
45
46 // void send_state_to_nextion() = 0;
47};
48} // namespace nextion
49} // namespace esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7