Difference between revisions of "Component: LCD control (Alphanumeric)"
From Flowcode Help
Jump to navigationJump to search|  (Created page with "{| style="width:50%"  |-  | width="20%" style="color:gray;" | Author  | Matrix Ltd  |-  | width="20%" style="color:gray;" | Version  | 1.0  |-  | width="20%" style="color:gray...") | |||
| Line 13: | Line 13: | ||
| ==LCD control component== | ==LCD control component== | ||
| − | An LCD control pane supporting up to  | + | An LCD control pane supporting up to 40 x 4 units Suitable for simulation only   | 
| − | ==Component  | + | ==Component Source Code== | 
| − | + | Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_LCD_Alphanumeric_Sim.fcfx FC_Comp_Source_LCD_Alphanumeric_Sim.fcfx] | |
| ==Detailed description== | ==Detailed description== | ||
| + | |||
| + | |||
| ''No detailed description exists yet for this component'' | ''No detailed description exists yet for this component'' | ||
| ==Examples== | ==Examples== | ||
| + | |||
| + | |||
| Line 36: | Line 40: | ||
| | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Clear''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Clear''' | ||
| |- | |- | ||
| − | | colspan="2" |   | + | | colspan="2" | Clears all text from the display  | 
| |- | |- | ||
| |- | |- | ||
| Line 49: | Line 53: | ||
| | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddChar''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddChar''' | ||
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" | Prints a single ASCII character to the display  | 
| |- | |- | ||
| |- | |- | ||
| Line 55: | Line 59: | ||
| | width="90%" | X | | width="90%" | X | ||
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" |   | 
| |- | |- | ||
| | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | ||
| | width="90%" | Y | | width="90%" | Y | ||
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" |   | 
| |- | |- | ||
| | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| − | | width="90%" |  | + | | width="90%" | Char | 
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" | Holds an ASCII value e.g. 'A'  | 
| |- | |- | ||
| | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| Line 88: | Line 92: | ||
| |- | |- | ||
| | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ClearLine''' | 
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" | Clears one row of  text from the display  | 
| |- | |- | ||
| |- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | 
| − | | width="90%" |  | + | | width="90%" | Line | 
| |- | |- | ||
| | colspan="2" |   | | colspan="2" |   | ||
| Line 106: | Line 110: | ||
| |- | |- | ||
| | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetScrollX''' | 
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" | Sets the scroll offset in X of the LCD   | 
| |- | |- | ||
| |- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | 
| − | | width="90%" |  | + | | width="90%" | Pos | 
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" |   | 
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| |- | |- | ||
| | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| Line 134: | Line 128: | ||
| |- | |- | ||
| | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AddText''' | 
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" | Prints a string of ASCII characters to the display  | 
| |- | |- | ||
| |- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | 
| | width="90%" | X | | width="90%" | X | ||
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" |   | 
| |- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | 
| | width="90%" | Y | | width="90%" | Y | ||
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" |   | 
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING | ||
| + | | width="90%" | Text | ||
| + | |- | ||
| + | | colspan="2" | Enter the text or variable to print to the display  | ||
| |- | |- | ||
| | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| Line 164: | Line 163: | ||
| |- | |- | ||
| |- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9-type- | + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | 
| − | | width="90%" |  | + | | width="90%" | Columns | 
| |- | |- | ||
| | colspan="2" |   | | colspan="2" |   | ||
| |- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9-type- | + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | 
| − | | width="90%" |  | + | | width="90%" | Rows | 
| |- | |- | ||
| | colspan="2" |   | | colspan="2" |   | ||
| Line 179: | Line 178: | ||
| | colspan="2" |   | | colspan="2" |   | ||
| |- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9-type- | + | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | 
| − | | width="90%" |  | + | | width="90%" | Show Background Elements | 
| |- | |- | ||
| − | | colspan="2" |   | + | | colspan="2" | Show or hide features like the title and background.  | 
| |- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9-type- | + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | 
| − | | width="90%" |  | + | | width="90%" | Component Label | 
| |- | |- | ||
| | colspan="2" |   | | colspan="2" |   | ||
| |- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9-type- | + | | width="10%" align="center" | [[File:Fc9-type-15-icon.png]] | 
| − | | width="90%" |  | + | | width="90%" | Component Label Scale | 
| |- | |- | ||
| − | | colspan="2" |   | + | | colspan="2" | The label scale can be change if the amout of text is too wide for the display   | 
| |- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9-type- | + | | width="10%" align="center" | [[File:Fc9-type-1-icon.png]] | 
| − | | width="90%" |  | + | | width="90%" | Text Colour | 
| |- | |- | ||
| − | | colspan="2" |   | + | | colspan="2" | Colour of the font characters drawn on the display  | 
| |- | |- | ||
| − | | width="10%" align="center | + | | width="10%" align="center" | [[File:Fc9-type-1-icon.png]] | 
| − | | width="90% | + | | width="90%" | Text Background | 
| |- | |- | ||
| + | | colspan="2" | Colour surrounding the font characters drawn on the display  | ||
| |- | |- | ||
| − | | width="10%" align="center | + | | width="10%" align="center" | [[File:Fc9-type-1-icon.png]] | 
| − | | width="90% | + | | width="90%" | Display Background | 
| |- | |- | ||
| + | | colspan="2" | Colour of the background of the display  | ||
| |} | |} | ||
Revision as of 17:48, 9 November 2022
| Author | Matrix Ltd | 
| Version | 1.0 | 
| Category | Alphanumeric | 
Contents
LCD control component
An LCD control pane supporting up to 40 x 4 units Suitable for simulation only
Component Source Code
Please click here for the component source code: FC_Comp_Source_LCD_Alphanumeric_Sim.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
|   | Clear | 
| Clears all text from the display | |
|  - VOID | Return | 
|   | AddChar | 
| Prints a single ASCII character to the display | |
|  - INT | X | 
|  - INT | Y | 
|  - BYTE | Char | 
| Holds an ASCII value e.g. 'A' | |
|  - VOID | Return | 
|   | GetScrollX | 
| Gets the scroll position in X set by SetScrollX() | |
|  - UINT | Return | 
|   | ClearLine | 
| Clears one row of text from the display | |
|  - BYTE | Line | 
|  - VOID | Return | 
|   | SetScrollX | 
| Sets the scroll offset in X of the LCD | |
|  - BYTE | Pos | 
|  - VOID | Return | 
|   | AddText | 
| Prints a string of ASCII characters to the display | |
|  - INT | X | 
|  - INT | Y | 
|  - STRING | Text | 
| Enter the text or variable to print to the display | |
|  - VOID | Return | 






