Difference between revisions of "Component: Nextion Display (Graphical Color)"
From Flowcode Help
Jump to navigationJump to searchLine 15: | Line 15: | ||
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. | 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. | ||
− | ==Component | + | ==Component Source Code== |
− | + | Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_Nextion.fcfx FC_Comp_Source_Nextion.fcfx] | |
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 32: | Line 34: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 244: | Line 248: | ||
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | ||
+ | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Communications | ||
|- | |- | ||
|- | |- | ||
Line 286: | Line 294: | ||
| colspan="2" | Time in milliseconds to wait for a reply to a command. | | colspan="2" | Time in milliseconds to wait for a reply to a command. | ||
|- | |- | ||
− | | width="10%" align="center" style="background-color:# | + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] |
− | | width="90%" style="background-color:# | + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation |
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
|- | |- |
Revision as of 17:49, 9 November 2022
Author | 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.
Component Source Code
Please click here for the component source code: FC_Comp_Source_Nextion.fcfx
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. | |
- UINT | Return |
GetValue | |
Gets the value from a specific item | |
- STRING | Name |
- ULONG | Return |
SetText | |
Sets the text of a specific item | |
- STRING | Name |
- STRING | Text |
- VOID | Return |
GetText | |
Gets the text of a specific item | |
- STRING | Name |
- STRING | Return |
SetFontColour | |
Sets the foreground font colour of a specific item | |
- STRING | Name |
- ULONG | Colour |
- VOID | Return |
SetPage | |
Sets the page of the display allowing multiple configurations | |
- STRING | Name |
Name of the page e.g. "page0" | |
- VOID | Return |
SetValue | |
Sets the numeric value of a specific item | |
- STRING | Name |
- ULONG | Number |
- VOID | Return |
GetTouchEvent | |
Collects the next touch event in the queue. Returns 0 for no touch event detected, 1= touch press, 2 = touch release | |
- BYTE | Return |
SetBackgroundColour | |
Sets the background colour of a specific item | |
- STRING | Name |
- ULONG | Colour |
- VOID | Return |
Initialise | |
Sets up the UART connection to the Nextion display | |
- VOID | Return |