mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 17:05:21 +01:00
Update nextion.h
This commit is contained in:
parent
7b5c4359c6
commit
0d9f5ef363
1 changed files with 7 additions and 2 deletions
|
@ -23,8 +23,13 @@ class Nextion : public PollingComponent, public uart::UARTDevice {
|
||||||
* Set the text of a component to a static string.
|
* Set the text of a component to a static string.
|
||||||
* @param component The component name.
|
* @param component The component name.
|
||||||
* @param text The static text to set.
|
* @param text The static text to set.
|
||||||
* Example: `it.set_component_text("textview", "Hello World!");`
|
*
|
||||||
* Component named `textview` `txt` value has been changed to `Hello World`.
|
* Example:
|
||||||
|
* ```cpp
|
||||||
|
* it.set_component_text("textview", "Hello World!");
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* This will set the `txt` property of the component `textview` to `Hello World`.
|
||||||
*/
|
*/
|
||||||
void set_component_text(const char *component, const char *text);
|
void set_component_text(const char *component, const char *text);
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue