[fpc-pascal] USB Human Interface Devices

James Richters james at productionautomation.net
Mon Aug 5 13:00:09 CEST 2019


Hi Jean, 

 

Thank you very much for posting the zip, I’ll download it and see if I can figure it out.  Also thank you very much for your efforts and help with this.   It is VERY much appreciated!

 

James

 

From: fpc-pascal <fpc-pascal-bounces at lists.freepascal.org> On Behalf Of Jean SUZINEAU
Sent: Monday, August 5, 2019 6:49 AM
To: James Richters <james at productionautomation.net>; 'FPC-Pascal users discussions' <fpc-pascal at lists.freepascal.org>
Subject: Re: [fpc-pascal] USB Human Interface Devices

 

Hi James,

 

Le 05/08/2019 à 04:40, James Richters a écrit :



Hi Jean,  Thank you very much for your help getting this to work. I’ve been out of town on a business trip but I’m finally back now, and trying to follow all this.  I’ve been trying to follow along the conversation with Email but I did not have a very reliable internet connection. I did see a zip file you posted, but then it seems you made more changes since then, I’m not sure how to apply .diff files.  

 

Would it be possible to get an update zip file of the current files?  

 

I put a zip of my working directory of pas-libusb as a pseudo "convenience" release on my github repository :

https://github.com/jsuzineau/pascal_o_r_mapping/releases/tag/pas-libusb_convenience_release

You should find every thing needed in it, you can even see my modifications with Tortoise Git, the .git subdirectory is included.

Let me know if I forgot something or if you get a problem.

 

 

I’m afraid a lot of this is just way over my head, I did not expect it to be anywhere near this complicated to get this to work, they python code I am trying to duplicate in my FPC application is so simple, but without access to the packages it uses, it’s turning out to be very complicated indeed..  ironically,  the unit I am trying to get to work is called EasyHID, but it seem to be anything but easy.

 

Here is the python code that I am trying to implement in my FPC program:

https://github.com/wolfmanjm/kivy-smoothie-host/blob/master/modules/hb04.py

I'm busy today, I had a quick look at hb04.py, I haven't yet tried to open a device with pas-usb but I don't think it would be too much difficult.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190805/540f8fe2/attachment.html>


More information about the fpc-pascal mailing list