mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 16:37:52 +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
@ -46,7 +46,7 @@ void Nextion::set_component_value(const char *component, int value) {
|
||||
this->send_command_printf("%s.val=%d", component, value);
|
||||
}
|
||||
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) {
|
||||
this->send_command_printf("%s.bco=\"%s\"", component, color);
|
||||
|
Loading…
Reference in New Issue
Block a user