Component: Nextion Display (Graphical Color)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.0 |
Category | Graphical Color |
Contents
Nextion Display component
A simple libray to interface a Nextion display. The elements on the nextion display are built using the Nextion Editor software and uploaded to the display. The component can then interact with the display elements.
Detailed description
No detailed description exists yet for this component
Examples
Handling Buttons
This example looks for button presses with IDs 1 and 2. On a button release event the corresponding LEDs will be toggled.
Downloadable macro reference
![]() |
GetTouchID |
Gets the ID of the corresponding touch event. Must be called after calling GetTouchEvent component macro. | |
![]() |
Return |
![]() |
GetValue |
Gets the value from a specific item | |
![]() |
Name |
![]() |
Return |
![]() |
SetText |
Sets the text of a specific item | |
![]() |
Name |
![]() |
Text |
![]() |
Return |
![]() |
GetText |
Gets the text of a specific item | |
![]() |
Name |
![]() |
Return |
![]() |
SetFontColour |
Sets the foreground font colour of a specific item | |
![]() |
Name |
![]() |
Colour |
![]() |
Return |
![]() |
SetPage |
Sets the page of the display allowing multiple configurations | |
![]() |
Name |
Name of the page e.g. "page0" | |
![]() |
Return |
![]() |
SetValue |
Sets the numeric value of a specific item | |
![]() |
Name |
![]() |
Number |
![]() |
Return |
![]() |
GetTouchEvent |
Collects the next touch event in the queue. Returns 0 for no touch event detected, 1= touch press, 2 = touch release | |
![]() |
Return |
![]() |
SetBackgroundColour |
Sets the background colour of a specific item | |
![]() |
Name |
![]() |
Colour |
![]() |
Return |
![]() |
Initialise |
Sets up the UART connection to the Nextion display | |
![]() |
Return |
![]() |
Start |
Startup routine required by the hardware device. | |
![]() |
Return |
![]() |
SetBackgroundColour |
Specifies the colour of the background by creating a mixture of red, green and blue. | |
![]() |
PixelColour |
0=White, 1=Black | |
![]() |
Return |
![]() |
SetForegroundColour |
Specifies the colour of the foreground by creating a mixture of red, green and blue. | |
![]() |
PixelColour |
0=White, 1=Black | |
![]() |
Return |
![]() |
Initialise |
The Init macro must be called once to initialise the Graphical LCD display before any other Graphical LCD component macros are called. | |
![]() |
Return |
![]() |
InvertDisplay |
![]() |
Return |