|
|
ME Labs, Inc. | 1-719-520-5323 | Example Program - USBJADEM.pbp
PICBASIC PRO USB sample program implements the
functionality of the Jan Axelson demo which accepts two numbers
from the host, increments each and sends them back. An application
running on the host sends the numbers and displays the returned values.
Compilation of this program requires that specific support files be
available in the source directory. You may also need to modify the
file USBDESC.ASM so that the proper descriptor files are included. For
detailed information, see the file PBP\USB18\USB.TXT.
31 | USBIn 1, buffer, cnt, idleloop |
34 | buffer[0] = buffer[0] + 1 |
35 | buffer[1] = buffer[1] + 1 |
39 | USBOut 1, buffer, 2, outloop |
Download the program file.
|