With the release of PBP version 2.60, mister-e's USBdemo (or any other program derived from EasyHID) will no longer compile (without some changes).
The new way of doing USB with PBP is really nice.
So here's a modification to Steve's program that will allow it to be compiled with PBP 2.60, and hopefully show how much easier it is to do USB.<hr>
√. If you haven't already ... download and extract the USBDemo from the beginning of this thread.
√. Then create a new folder (USBDemo260) and copy the USBDemo.pbp file from Steve's archive into the new folder.
That is the only file that is valid with 2.60, so don't copy any of the others.
√. Download the USBDEMOdesc.bas.txt (descriptor) file attached to this post and place it in the same folder. Remove the .txt extension.
√. In the USB18 folder, inside your PBP folder ...
Copy the following files to the project ...
usb_dev.asm
usb_dev.inc
usb_hid.asm
usb_hid.inc
usb_mem.asm
√. Add this line to the USBDemo.PBP program ... and compile.
Code:
INCLUDE "USBDEMOdesc.bas"
And away you go, with a little Ding-Dong ... Or maybe a Dong-Ding.
<hr>
Make sure you change the configs if you're not using a 4Mhz crystal.
And comment out the UCFG EXT variable since it's not needed anymore.
The Visual Basic part of mister-e's demo is the same.
You can use the pre-compiled program, or modify it as desired.
Bookmarks