Support forum for Nextion displays

I want to create a UI on Nextion display to do the following ...

  1. Create a HEX keypad , Text display , Enter button
  2. Text display will show what the user enters
  3. When user presses the Enter , it will send all characters in the display to the connected Mega 2560 board.

Anyone do something similar ?

Sadly there is no official Forum for Nextion Library and the one "Unofficial Nextion Forum" is also now unresponsive .

@Ardubit ,

Your topic was moved to its current location as it is more suitable.

Could you also take a few moments to Learn How To Use The Forum.

It will help you get the best out of the forum in the future.

Thank you

1 Like

I suggest you start here:

When user presses the Enter , it will send all characters in the display to the connected Mega 2560 board.

I suggest not. Send the key presses as they are made, let the Mega do the work. It's just all round easier that way.

1 Like

I was looking for the category but missed it in the drop down menu. Thanks ..

I use Nextion with Arduino for many projects as a UI for code running on Arduino ( without using the Nextion library ) . Thats no problem .

But in this case I need to concatenate the individual HEX digits on the display field and once Enter is pressed I will send it the Mega which will handle it as required.

Was googling and came across this. Works fine but no clue on how they did it !!

1 Like

THAT is a good suggestion... will try it out !! Yes the Mega can do the concatenation as required !! In other words as each key is pressed it can build the build the required HEX number and send it back to the display till Enter is pressed !!

1 Like

If you look in my tutorial you will find a simple calculator, which does a lot of what you are trying to do. The calculator itself isn't very good, the idea was to show what can be done with a Nextion with a keyboard, not to show how to make a good calculator.

1 Like

There is a sort of programming language on the Nextion, like a stripped down version of C, I call it C--. I guess you can do anything on the Nextion that you can do on an Arduino, but it's going to be hard work.