1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

Nextion send_command method (#6540)

This is a simplified version of `send_command_printf` without the `printf` support.
Manually send a raw command to the display.
param command The pcommand, like "page 0"
return Whether the send was successful.
This commit is contained in:
Edward Firmo
2024-04-18 04:16:49 +02:00
committed by GitHub
parent 2fed6955de
commit 2e7ac26ada
2 changed files with 17 additions and 0 deletions

View File

@@ -970,6 +970,12 @@ class Nextion : public NextionBase, public PollingComponent, public uart::UARTDe
// This function has been deprecated
void set_wait_for_ack(bool wait_for_ack);
/**
* Manually send a raw command to the display.
* @param command The pcommand, like "page 0"
* @return Whether the send was successful.
*/
bool send_command(const char *command);
/**
* Manually send a raw formatted command to the display.
* @param format The printf-style command format, like "vis %s,0"