Component: LCD (Grove UART) (Displays: Alphanumeric)

From Flowcode Help
Jump to navigationJump to search


Author Matrix Ltd
Version 1.4 (Release)
Category Displays: Alphanumeric
This inherits from LCD (Generic)


Image LCD (Grove _ UART) component

Standard alphanumeric LCD based on the Grove display module.

Examples

No additional examples


Downloadable macro reference

This component inherits downloadable macros from LCD (Generic)

Clear

No additional information


Parameters

This macro has no parameters


Return value

This call does not return a value


PrintString

No additional information


Parameters

<- STRING Text
This parameter may be returned back to the caller


Return value

This call does not return a value


PrintAscii

Takes the ascii value for a character and prints the character

Parameters

BYTE character


Return value

This call does not return a value


PrintNumber

Allows you to print a number. This is limited to a signed-INT, -32768 to 32767

Parameters

INT Number


Return value

This call does not return a value


RAMWrite

Modifies the internal memory of the LCD to allow for up to 8 customised characters to be created and stored in the device memory

This call is provided by LCD (Generic)

Parameters

BYTE Index
Values 0 to 7
BYTE d0
BYTE d1
BYTE d2
BYTE d3
BYTE d4
BYTE d5
BYTE d6
BYTE d7


Return value

This call does not return a value


ClearLine

No additional information


Parameters

BYTE Line


Return value

This call does not return a value


Cursor

Moves the cursor on the LCD Display

Parameters

BYTE x
BYTE y


Return value

This call does not return a value


Command

Use this method/macro to send a specific command to the LCD. Refer to the Matrix Multimedia EB006 datasheet for a list of supported instructions. For Non-Matrix LCD's refer to the manufacturers datasheet.

This call is provided by LCD (Generic)

Parameters

BYTE instruction
Send a defined command to the LCD Screen. See datasheet for supported commands.


Return value

This call does not return a value


PrintFormattedNumber

Will allow you to print a number up to 32-bits with signed or unsigned formatting.

Signed = -2147483648 to 2147483647

Unsigned = 0 to 4294967295

This call is provided by LCD (Generic)

Parameters

ULONG Number
Enter the number or variable to print to the LCD
BOOL Format
0=Signed, 1=Unsigned


Return value

This call does not return a value


ScrollDisplay

Scrolls the display left or right by a number of given positions.

Parameters

BYTE position
Number of positions to scroll the display
BYTE direction
Direction to scroll the display: 0=Left, 1=Right


Return value

This call does not return a value


RawSend

Sends data to the LCD display

This call is provided by LCD (Generic)

Parameters

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


Return value

This call does not return a value


RemapCharacter

Assigns a remap character allowing the PrintString function to automatically swap between pre-defined characters.

The characters can be custom (in the range 0-9) or can point to an existing character in the LCD character map.

This call is provided by LCD (Generic)

Parameters

BYTE RemapIdx
Remap Index, Range: 0 to (Remap Characters - 1)
BYTE SearchCharacter
Character to look for a replace
BYTE ReplacementCharacter
New character value to use in place of the search character.


Return value

This call does not return a value


Start

Startup routine required by the hardware device.

Parameters

This macro has no parameters


Return value

This call does not return a value


BacklightControl

No additional information


Parameters

BYTE State
0=Backlight Off, 1=Backlight On


Return value

This call does not return a value


Simulation macro reference

This component does not contain any simulation macros


Property reference

Channel

This property is of type Fixed list of ints and can be referenced with the variable name Channel.

No additional information


TX Pin

This property is of type Single digital pin and can be referenced with the variable name tx_pin.

UART transmit pin - connected to the RX pin on the Grove display

RX Pin

This property is of type Single digital pin and can be referenced with the variable name rx_pin.

UART receive pin - connected to the TX pin on the Grove display

Rows

This property is of type Fixed list of ints and can be referenced with the variable name Rows.

No additional information


Columns

This property is of type Fixed list of ints and can be referenced with the variable name Columns.

No additional information