Fix nextion display_picture argument order

Fixes https://github.com/esphome/issues/issues/613
This commit is contained in:
Otto Winter 2019-08-31 21:14:33 +02:00
parent c2028f7378
commit be1e4c0a1d
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E

View file

@ -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);