| Online Development Notebook > Index > ODN > USBm DLL Programming > Device Commands > WriteB |
WriteB
Description:
This is a USBm.dll function that writes a byte value to port B. The possible values range from 0-255 (00h to FFh).
Command Syntax: (USBm.dll)
USBm_WriteB(device, data)
The USBm_WriteB function syntax has these parts:
| Description | Description |
| device | A zero-based index to address the appropriate USB device. |
| data | Byte to write to Port B. |
Remarks:
VB Declaration
| Public Declare Function USBm_WriteB _ Lib "USBm.dll" _ (ByVal device As Byte, _ ByVal data As Byte) _ As Integer |
VB Example
| USBm_WriteB 7, &H0F |
This code fragment writes the value of &H0F to port B of device 7.
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 |