Difference between revisions of "Component: LCD (Generic, 16x2) (Alphanumeric)"
From Flowcode Help
Jump to navigationJump to search|  (Created page with "{| style="width:50%"  |-  | width="20%" style="color:gray;" | Author  | Matrix TSL  |-  | width="20%" style="color:gray;" | Version  | 1.1  |-  | width="20%" style="color:gray...") | |||
| Line 20: | Line 20: | ||
| ==Detailed description== | ==Detailed description== | ||
| + | |||
| + | |||
| Line 26: | Line 28: | ||
| ==Examples== | ==Examples== | ||
| + | |||
| + | |||
Revision as of 14:41, 16 January 2023
| Author | Matrix TSL | 
| Version | 1.1 | 
| Category | Alphanumeric | 
Contents
LCD (Generic, 16x2) component
LCD based on the unit used in the Matrix EB005 E-block
Component Source Code
Please click here for the component source code: FC_Comp_Source_LCD_16X2.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Example of a typical LCD pinout.
 
Connections
For the LCDs to work with the Flowcode LCD component they need to be connected up in 4-bit data mode.
The 4 data signals actually go to the upper data nibble on the LCD as shown below.
A simple example that shows how to use some common functions.
Downloadable macro reference
|   | Clear | 
| Clears the entire contents of the display. | |
|  - VOID | Return | 
|   | PrintString | 
| Breaks down a string of text and sends it to the LCD via the private RawSend(byte, mask) macro | |
|  - STRING | Text | 
| Enter the text or variable to print to the LCD | |
|  - VOID | Return | 
|   | PrintAscii | 
| Takes the ascii value for a character and prints the character | |
|  - BYTE | character | 
| Holds an ascii value. | |
|  - VOID | Return | 
|   | PrintNumber | 
| Based on v5 macro, will allow you to print a number. This is limited to a signed-INT, -32768 to 32767 | |
|  - INT | Number | 
| Enter the number or variable to print to the LCD | |
|  - VOID | Return | 
|   | ScrollDisplay | 
| Scrolls the display left or right by a number of given positions. | |
|  - BYTE | Position | 
| Holds the number of positions to shift the display | |
|  - BYTE | Direction | 
| 0 = left, 1 = right | |
|  - VOID | Return | 
|   | RawSend | 
| Sends data to the LCD display | |
|  - BYTE | data | 
| The data byte to send to the LCD | |
|  - BOOL | type | 
| A boolean to indicate command type: true to write data, false to write a command | |
|  - VOID | Return | 
|   | Start | 
| Startup routine required by the hardware device. Automatically clears the display after initialising. | |
|  - VOID | Return | 










