Sending strings to Nextion Display

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Tortilla
Posts: 17
http://meble-kuchenne.info.pl
Joined: Tue Jul 05, 2022 8:54 am
Has thanked: 9 times
Been thanked: 3 times

Sending strings to Nextion Display

Post by Tortilla »

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!

BenR
Matrix Staff
Posts: 1747
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 444 times
Been thanked: 604 times

Re: Sending strings to Nextion Display

Post by BenR »

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.

Post Reply