Quote Originally Posted by skimask View Post
Same thing applies going either sending or receiving...

variableword var word
variable_highbyte var byte
variable_lowbyte var byte

variableword = (variable_highbyte * 256) + variable_lowbyte
variable_lowbyte = variableword.lowbyte
variable_highbyte = variableword.highbyte
In english please
But look at this:
Code:
USBBufferSizeMax   con 8  ' maximum buffer size
USBBufferSizeTX    con 8  ' input 
USBBufferSizeRX    con 8  ' output

' the USB buffer...
USBBufferIn        Var Byte[USBBufferSizeMax] 
USBBufferOut        Var Byte[USBBufferSizeMax]
USBBufferCount   Var Byte 

   USBBufferCount = USBBufferSizeTX              ' TX buffer size
   USBService                                    ' keep connection alive
   USBOut 1, USBBufferOut, USBBufferCount, DoOutBuf ' if bus available, transmit data