| Online Development Notebook > Index > ODN > USBm DLL Programming > Device Commands > LCDData |
LCDData
Description:
This is a USBm.dll function that writes a character to the LCD. The RS, RW, E lines and the data port are selected by the InitLCDCmd. The data byte is written to the selected port and the control lines are set appropriately. The E line is toggled for five to eight microseconds.
Command Syntax: (USBm.dll)
USBm_LCDData(device, data)
The USBm_LCDData function syntax has these parts:
| Part | Description |
| device | A zero-based index to address the appropriate USB device. |
| data | The value to transfer to the LCD data register. |
Remarks:
VB Declaration
| Public Declare Function USBm_LCDData _ Lib "USBm.dll" _ (ByVal device As Byte, _ ByVal data As Byte) _ As Integer |
VB Example
| USBm_LCDData 2, 'H' |
This code fragment will write the command byte of "H" to the LCD display connected to device 2.
C Example
-TBD-
| Hardware: U401 USB Interface U421 USB Interface |
| Programming: USBm DLL Programming Download Files |
| Application Notes: U4x1 Application Notes Misc Applications and Information FAQ |