Hello,
I am trying to incorporate a Nextion NX4827T043 display into my project using the Flowcode Nextion component .
I have studied the Flowcode example file that uses two buttons and LED's to show how to detect button presses but I cannot find a Flowcode example file that shows how to transmit data to the display.
For example, if I have created a text box on the Nextion display called "TextBox" and I want to send a string to this text box using the "SetText" command from the Nextion component, do I first create a string variable called "TextBox.txt" and enter that for the "Name" line and then create a string to display and enter that string on the "Text" line?
And is it basically the same procedure to send integers to the display using the SetValue command?
I hope that makes sense.
Thanks!
Sending strings to Nextion Display
-
- Posts: 17
- http://meble-kuchenne.info.pl
- Joined: Tue Jul 05, 2022 8:54 am
- Has thanked: 9 times
- Been thanked: 3 times
-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 503 times
- Been thanked: 686 times
Re: Sending strings to Nextion Display
Hello,
I think you just use the SetText macro and yes it should be very similar to the SetValue macro.
Let us know if you're having any problems.
I think you just use the SetText macro and yes it should be very similar to the SetValue macro.
Let us know if you're having any problems.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel