mirror of
https://github.com/esphome/esphome.git
synced 2024-11-29 18:24:13 +01:00
Fix nextion display_picture argument order
Fixes https://github.com/esphome/issues/issues/613
This commit is contained in:
parent
c2028f7378
commit
be1e4c0a1d
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ void Nextion::set_component_value(const char *component, int value) {
|
||||||
this->send_command_printf("%s.val=%d", component, value);
|
this->send_command_printf("%s.val=%d", component, value);
|
||||||
}
|
}
|
||||||
void Nextion::display_picture(int picture_id, int x_start, int y_start) {
|
void Nextion::display_picture(int picture_id, int x_start, int y_start) {
|
||||||
this->send_command_printf("pic %d %d %d", picture_id, x_start, y_start);
|
this->send_command_printf("pic %d %d %d", x_start, y_start, picture_id);
|
||||||
}
|
}
|
||||||
void Nextion::set_component_background_color(const char *component, const char *color) {
|
void Nextion::set_component_background_color(const char *component, const char *color) {
|
||||||
this->send_command_printf("%s.bco=\"%s\"", component, color);
|
this->send_command_printf("%s.bco=\"%s\"", component, color);
|
||||||
|
|
Loading…
Reference in a new issue