I have interfaced Nextion LCD touch display with Arduino. It's working absolutely fine. In this I have used numerus text boxes and able to display at which text box user is by changing color of box but what I want to do is " indication of the each digit[in particular text box] on which cursor is by changing color or underline or anything which works. but unfortunately I am not able to do.
It will be great help to have guidance regarding the same. Thanks in Advance.
Hello out there,
I have interfaced Arduino with Nextion Display. It's working properly. The problem I am facing is about indicating cursor. I have numerus number box on the screen. I am taking value as input and displaying it on Screen.
The confusion is how can I indicate that this particular digit of this number box is being entering?
It would be great to have some guidance for the same. Thanks in advance
Does it work if you draw a hollow rectangle around the box where data is being entered ?
This is doable with the "draw" command.
Drawing a custom cursor should also be possible. You will have to use "line" command if a cursor which is a line thick works, if you want more thickness then you can use "fill" to represent the cursor as a thin rectangle filled with color of your choice.
If you want the cursor to blink, assuming you use "fill" to draw the cursor, you'll have to toggle between two rectangles, one will have the color of your choice the other will have the color same as background color so that it appears as if it has dissolved in the background and it has disappeared.
I've not had cause to put a flashing cursor on a Nextion display, but if I did I would do it be using a text box to display whatever it is and sending the data to the box every, say, half second while alternating the text to contain a cursor or contain a space at the location of the cursor.
Thank you so much. Actually I wanted to do something as shown in pic. I wanted to indicate next individual digit which is being entered by one. Your approach came out as prefect solution for me.
Hello out there,
I am facing one more issue. If I touch or press related button (in short give command)in fast manner screen does not get changed and about cursor gets invisible.
It would be great to have some guidance for the same. Thanks in advance
Hello everyone,
Now I am facing one more issue. I have set the range of input for one number box and if it goes out of range It shows Error in text box placed besides it. Also when it comes in range error has to be disappear. What happening is when value goes out of range Error is being displayed but when it comes ageing in rang error does not get disappear until I go to other screen and come back to same screen.
I have used "-=" command to remove error.
It would be great to have some guidance for the same. Thanks in advance.