Hi Bruce,
I have now ordered the book as you recommended, i'm sure it will come in very handy.
I have figured out that if you use EasyHID to set the maximum Buffer size to 32, then you can increase the amount of outputs on the PIC that you can set HIGH or LOW. ie the PIC side is odd numbers 1 - 31 and the VB side is even numbers 2 - 32.
ie on the PIC side requires:
PORTC.1 = USBBuffer[23]
where as on the VB side requires:
BufferOut(24) = 1 ' LED on
If i want to use all of PORTA and PORTB, is there an easy way of listing these in the two codes, or do they have to be done seperately? ie:
PIC
PORTA.1 = USBBuffer[1]
PORTA.2 = USBBuffer[3]
PORTA.3 = USBBuffer[5]
PORTA.4 = USBBuffer[7]
PORTA.5 = USBBuffer[9]
VB
BufferOut(2) = 1 ' LED on
BufferOut(4) = 1 ' LED on
BufferOut(6) = 1 ' LED on
BufferOut(8) = 1 ' LED on
BufferOut(10) = 1 ' LED on
Moving on from the switching of outputs HIGH or LOW, how would one send say text from the PIC to a text box in VB. For example, on the PIC, if a certain routine is executed, it sends a command to the VB application which is then displayed in a text window. Or is this getting too advanced for a quick explanation??
Thanks again for you assistance,
Steve
Bookmarks