Beta Innovations USB SDK Wrapper Library for .NET/COM v2.0.0.0 reference library |
BIUSB..::.CmdGLCD Method |
BIUSB Class See Also Send Feedback |
Sends specified command iCmd to a graphic
LCD on the port specified by inPort. This function can be
used on modules supporting graphic based LCDs.
Namespace:
BIUSBWrapper
Assembly:
BIUSBWrapper (in BIUSBWrapper.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function CmdGLCD ( _ ByRef iDeviceList As DeviceParam, _ inPort As Byte, _ iBGColor As Byte, _ iCmd As Byte _ ) As Integer |
C# |
---|
public static int CmdGLCD( ref DeviceParam iDeviceList, byte inPort, byte iBGColor, byte iCmd ) |
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.
- iBGColor
- Type: System..::.Byte
Set the background color of the LCD display.0 = Black text on white background.
1 = White text on black background.
- iCmd
- Type: System..::.Byte
GLCD Commands:GLCD_CLEAR: Clear contents of LCD.
GLCD_TEST: Display test message.
GLCD_BGCOLOR: Set background color of LCD specified by iGBColor.
Return Value
0: If failure writing to device.>0: if success, returns number of bytes written to device.