I'm working with a display nextion NX8048T070, i'm trying to change a text with a serials instructions In the Nextion debug the code works and text change, but in my display didn't change, I used software serial and nextion library (all it)
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
Serial.print("t0.txt="); // This is sent to the nextion display to set what object name (before the dot) and what atribute (after the dot) are you going to change.
Serial.print("\""); // Since we are sending text, and not a number, we need to send double quote before and after the actual text.
Serial.print("De entrada"); // This is the text you want to send to that object and atribute mentioned before.
Serial.print("\""); // Since we are sending text, and not a number, we need to send double quote before and after the actual text.
Serial.write(0xff); // We always have to send this three lines after each command sent to the nextion display.
Serial.write(0xff);
Serial.write(0xff);
delay(1000);
Serial.print("t0.txt="); // This is sent to the nextion display to set what object name (before the dot) and what atribute (after the dot) are you going to change.
Serial.print("\""); // Since we are sending text, and not a number, we need to send double quote before and after the actual text.
Serial.print("Apoco si"); // This is the text you want to send to that object and atribute mentioned before.
Serial.print("\""); // Since we are sending text, and not a number, we need to send double quote before and after the actual text.
Serial.write(0xff); // We always have to send this three lines after each command sent to the nextion display.
Serial.write(0xff);
Serial.write(0xff);
delay(1000);
}