As the title says, I'm looking to simply use the Nextion display as my serial monitor. I have a run button on page 0 that should initiate the code and I'd like page 1 to display the serial monitor output. Thanks for any help.
Welcome to the forum.
That is possible, but you have to do the scrolling in the sketch.
Suppose the Nextion display has nothing, no elements, no page, nothing.
Then it is possible to fill the background with the "fill" command and then send text with the "xstr" command.
To be able to scroll, all the texts have to be stored in the sketch. That way the text can be written again to create a scroll effect.
Do you also want to use the Serial.println() functions ? Then you have to create a class that does the same as the Serial class.
That is a major project. I don't know a better way, maybe someone else knows one.
What problem are you trying to solve. I think there are better ways.
Right now I have an arduino code that tests if a wire harness has the wires in the correct position or not. Id like to use the Nextion to display the results as opposed to displaying the results to the serial monitor
So you don't need scrolling ? So it is not like the Serial Monitor ?
Then you can make text fields in the Nextion Editor and send text to it.
The ITEAD Nextion library is not handy and not well written.
Have you seen the Nextion article that everyone should read: https://forum.arduino.cc/t/using-nextion-displays-with-arduino/580289
I understand that you want a flexible easy solution, but no, sorry, you have to use the Nextion display as a Nextion display and the Serial Monitor as a Serial Monitor.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.