Nextion. What library to use?

Hi!

I'm new to Nextion. As I've understood, there is quite a few libraries, but I can't figure all out.

I've set up a simple layout with mostly dual state buttons. They will control relays.

At one point I actually got to change the output for one pin, but could not change it back.

Have tried different libraries and their examples, with obscure results. I need to start from scratch with some helpful hints from you.

I'm using a Arduino Mega, and 3.2" enhanced Nextion.

So where to start? With what library? Simple code example?

Hello Eirik78,

Welcome.

Support for Nextion on these fora is pretty much as follows:
You can follow the methods I set out in using Nextion displays with Arduino. My methods do not use the Nextion libraries, so I can offer help on using my methods but I cannot offer anything very helpful for any Nextion library.
The original Nextion libraries are full of bugs. There is a link from my tutorial to to some improved Nextion libraries created by Ray Livingston, I suggest those might be worth trying if you prefer to use a library.
There's also a guy on here called Seithan who has also developed his own ways of dealing with Nextion displays, you can find his methods in his tutorial on how to write code with Nextion and Arduino.
Beyond that the odd person occasionally offers a bit of help but not much.

Thanks for your reply Perry!

I guess Nextion is not for me then. Too much to learn, in too little time :wink: