WriteLCD Method

Beta Innovations USB SDK .NET/COM

Writes contents of iDataBuffer to the LCD specified by inLCD at the line number indicated by inLine. This function can be used on modules supporting character based LCDs.

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

Syntax

Visual Basic (Declaration)
Public Shared Function WriteLCD ( _
	ByRef iDeviceList As DeviceParam, _
	inLCD As Byte, _
	inLine As Byte, _
	iDataBuffer As Byte(), _
	inLevel As Byte _
) As Integer
C#
public static int WriteLCD(
	ref DeviceParam iDeviceList,
	byte inLCD,
	byte inLine,
	byte[] iDataBuffer,
	byte inLevel
)

Parameters

iDeviceList
Type: BIUSBWrapper..::.DeviceParam %
A DeviceParam structure. Must contain valid device information returned from call to DetectHID.
inLCD
Type: System..::.Byte
Zero based index of LCD to be cleared. Currently not support. Leave as 0.
inLine
Type: System..::.Byte
Line number to write buffer to. Values range from 1 to 4.
iDataBuffer
Type: array< System..::.Byte >[]()[]
Character array. Must be at least 20 characters in length. Empty spaces on the LCD should be filled with the ASCII value of 0x20 (blank space). Do not NULL terminate this buffer. NULL value will display character 0x00 stored in the LCD ROM.
inLevel
Type: System..::.Byte
LCD backlight brightness level if supported. Values range from 0 (min brightness) to 255 (maximum brightness).

Return Value

0: If failure writing to device.

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

See Also