Difference between revisions of "Component: LCD (EB005) (E-blocks 1)"
From Flowcode Help
Jump to navigationJump to search| Line 20: | Line 20: | ||
==Detailed description== | ==Detailed description== | ||
| + | |||
| + | |||
''No detailed description exists yet for this component'' | ''No detailed description exists yet for this component'' | ||
==Examples== | ==Examples== | ||
| + | |||
| + | |||
| Line 49: | Line 53: | ||
{{Fcfile|LCD Example.fcfx|LCD Example}} | {{Fcfile|LCD Example.fcfx|LCD Example}} | ||
| − | == | + | ==Macro reference== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
Revision as of 14:12, 20 January 2023
| Author | Matrix TSL |
| Version | 1.1 |
| Category | E-blocks 1 |
Contents
LCD 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_EB005.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Connections
Example of a typical LCD pinout.
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.
Macro reference
| Clear | |
| Clears the entire contents of the display. | |
| Return | |
| PrintString | |
| Breaks down a string of text and sends it to the LCD via the private RawSend(byte, mask) macro | |
| Text | |
| Enter the text or variable to print to the LCD | |
| Return | |
| PrintAscii | |
| Takes the ascii value for a character and prints the character | |
| character | |
| Holds an ascii value. | |
| Return | |
| PrintNumber | |
| Based on v5 macro, will allow you to print a number. This is limited to a signed-INT, -32768 to 32767 | |
| Number | |
| Enter the number or variable to print to the LCD | |
| Return | |
| ScrollDisplay | |
| Scrolls the display left or right by a number of given positions. | |
| Position | |
| Holds the number of positions to shift the display | |
| Direction | |
| 0 = left, 1 = right | |
| Return | |
| RawSend | |
| Sends data to the LCD display | |
| data | |
| The data byte to send to the LCD | |
| type | |
| A boolean to indicate command type: true to write data, false to write a command | |
| Return | |
| Start | |
| Startup routine required by the hardware device. Automatically clears the display after initialising. | |
| Return | |

