ESPHome
2024.4.0
esphome
esphome
components
nextion
nextion_component.h
Go to the documentation of this file.
1
#pragma once
2
#include "
esphome/core/defines.h
"
3
#include "
esphome/core/color.h
"
4
#include "
nextion_base.h
"
5
6
namespace
esphome
{
7
namespace
nextion {
8
class
NextionComponent;
9
10
class
NextionComponent
:
public
NextionComponentBase
{
11
public
:
12
void
update_component_settings
()
override
{ this->
update_component_settings
(
false
); };
13
14
void
update_component_settings
(
bool
force_update)
override
;
15
16
void
set_background_color
(
Color
bco);
17
void
set_background_pressed_color
(
Color
bco2);
18
void
set_foreground_color
(
Color
pco);
19
void
set_foreground_pressed_color
(
Color
pco2);
20
void
set_font_id
(uint8_t font_id);
21
void
set_visible
(
bool
visible);
22
23
protected
:
24
NextionBase
*
nextion_
;
25
26
bool
bco_needs_update_
=
false
;
27
bool
bco_is_set_
=
false
;
28
Color
bco_
;
29
bool
bco2_needs_update_
=
false
;
30
bool
bco2_is_set_
=
false
;
31
Color
bco2_
;
32
bool
pco_needs_update_
=
false
;
33
bool
pco_is_set_
=
false
;
34
Color
pco_
;
35
bool
pco2_needs_update_
=
false
;
36
bool
pco2_is_set_
=
false
;
37
Color
pco2_
;
38
uint8_t
font_id_
= 0;
39
bool
font_id_needs_update_
=
false
;
40
bool
font_id_is_set_
=
false
;
41
42
bool
visible_
=
true
;
43
bool
visible_needs_update_
=
false
;
44
bool
visible_is_set_
=
false
;
45
46
// void send_state_to_nextion() = 0;
47
};
48
}
// namespace nextion
49
}
// namespace esphome
esphome::nextion::NextionComponent::pco_needs_update_
bool pco_needs_update_
Definition:
nextion_component.h:32
esphome::nextion::NextionComponent::bco2_needs_update_
bool bco2_needs_update_
Definition:
nextion_component.h:29
esphome::nextion::NextionComponentBase
Definition:
nextion_component_base.h:30
esphome::nextion::NextionComponent::set_background_pressed_color
void set_background_pressed_color(Color bco2)
Definition:
nextion_component.cpp:16
esphome::nextion::NextionBase
Definition:
nextion_base.h:25
esphome::nextion::NextionComponent::update_component_settings
void update_component_settings() override
Definition:
nextion_component.h:12
esphome::nextion::NextionComponent::nextion_
NextionBase * nextion_
Definition:
nextion_component.h:24
esphome::nextion::NextionComponent::visible_is_set_
bool visible_is_set_
Definition:
nextion_component.h:44
esphome::nextion::NextionComponent::bco2_
Color bco2_
Definition:
nextion_component.h:31
esphome::nextion::NextionComponent::pco2_is_set_
bool pco2_is_set_
Definition:
nextion_component.h:36
esphome::nextion::NextionComponent::pco2_needs_update_
bool pco2_needs_update_
Definition:
nextion_component.h:35
esphome::nextion::NextionComponent::bco_is_set_
bool bco_is_set_
Definition:
nextion_component.h:27
esphome::nextion::NextionComponent::bco_needs_update_
bool bco_needs_update_
Definition:
nextion_component.h:26
esphome::nextion::NextionComponent::font_id_
uint8_t font_id_
Definition:
nextion_component.h:38
esphome::nextion::NextionComponent::set_background_color
void set_background_color(Color bco)
Definition:
nextion_component.cpp:6
esphome::nextion::NextionComponent::set_visible
void set_visible(bool visible)
Definition:
nextion_component.cpp:57
esphome::nextion::NextionComponent::visible_
bool visible_
Definition:
nextion_component.h:42
esphome::nextion::NextionComponent::font_id_needs_update_
bool font_id_needs_update_
Definition:
nextion_component.h:39
nextion_base.h
esphome::nextion::NextionComponent::bco_
Color bco_
Definition:
nextion_component.h:28
esphome::nextion::NextionComponent::visible_needs_update_
bool visible_needs_update_
Definition:
nextion_component.h:43
esphome::nextion::NextionComponent::pco_
Color pco_
Definition:
nextion_component.h:34
esphome::nextion::NextionComponent::font_id_is_set_
bool font_id_is_set_
Definition:
nextion_component.h:40
defines.h
esphome::nextion::NextionComponent::set_font_id
void set_font_id(uint8_t font_id)
Definition:
nextion_component.cpp:47
esphome::Color
Definition:
color.h:10
esphome::nextion::NextionComponent::pco_is_set_
bool pco_is_set_
Definition:
nextion_component.h:33
esphome::nextion::NextionComponent::pco2_
Color pco2_
Definition:
nextion_component.h:37
color.h
esphome::nextion::NextionComponent::set_foreground_color
void set_foreground_color(Color pco)
Definition:
nextion_component.cpp:27
esphome::nextion::NextionComponent::bco2_is_set_
bool bco2_is_set_
Definition:
nextion_component.h:30
esphome::nextion::NextionComponent
Definition:
nextion_component.h:10
esphome::nextion::NextionComponent::set_foreground_pressed_color
void set_foreground_pressed_color(Color pco2)
Definition:
nextion_component.cpp:37
esphome
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition:
a01nyub.cpp:7
Generated by
1.8.13