WriteGLCD Method

Beta Innovations USB SDK .NET/COM

Writes contents of iDataBuffer to the graphic LCD located on the port specified by inPort at the line number indicated by inLine. This function can be used on modules supporting graphical based LCDs.

Namespace:  BIUSBWrapper
Assembly:  BIUSBWrapper (in BIUSBWrapper.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function WriteGLCD ( _
	ByRef iDeviceList As DeviceParam, _
	inPort As Byte, _
	inLine As Byte, _
	iNumLines As Byte, _
	iBGColor As Byte, _
	iDataBuffer As Byte() _
) As Integer
C#
public static int WriteGLCD(
	ref DeviceParam iDeviceList,
	byte inPort,
	byte inLine,
	byte iNumLines,
	byte iBGColor,
	byte[] iDataBuffer
)

Parameters

iDeviceList
Type: BIUSBWrapper..::.DeviceParam %
A DeviceParam structure. Must contain valid device information returned from call to DetectHID.
inPort
Type: System..::.Byte
Zero based index of output Port to write to.
inLine
Type: System..::.Byte
Starting line number to write contents of iDataBuffer to LCD. Values range from 1 to 5.
iNumLines
Type: System..::.Byte
Number of lines contained in iDataBuffer. Maximum buffer length is 2 lines at 24 characters per line (48 bytes).
iBGColor
Type: System..::.Byte
Set the background color of the LCD display.

0 = Black text on white background.

1 = White text on black background.

iDataBuffer
Type: array< System..::.Byte >[]()[]
Character array. Empty spaces on the LCD should be filled with the ASCII value of 0x20 (blank space). Do not NULL terminate this buffer.

Special characters:

0x01: Arrow glyph.

0x02: Star glyph.

0x03: Degree glyph.

0x04: Star glyph.

Return Value

0: If failure writing to device.

>0: if success, returns number of bytes written to device.

See Also