<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi,<br>
</p>
<div class="moz-cite-prefix">Στις 26/7/2019 1:04 π.μ., ο James
Richters έγραψε:<br>
</div>
<blockquote type="cite"
cite="mid:166601d54334$de9c6710$9bd53530$@productionautomation.net">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Does Freepascal have support for USB Human
Interface devices? I am attempting to interface to an
WHB04B-4 <a
href="https://www.amazon.com/gp/product/B07M5ZY1P2"
moz-do-not-send="true">https://www.amazon.com/gp/product/B07M5ZY1P2</a>
<o:p></o:p></p>
<p class="MsoNormal">I have an example of how to do it that was
written in Python, so I’m trying to figure out how to get it
to work with my FPC console application. Figuring out how to
interface with the device at all is what is holding me up, I
don’t have any experience with direct interfacing to any USB
devices.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any suggestions?<o:p></o:p><o:p></o:p> <br>
</p>
</div>
</blockquote>
<p>you could try Alfred's HID library ( works in windows and linux )
.</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/LongDirtyAnimAlf/FPC-USB-HID">https://github.com/LongDirtyAnimAlf/FPC-USB-HID</a>.</p>
<p>regards,</p>
<p>-- <br>
</p>
<p>Dimitrios Chr. Ioannidis<br>
</p>
</body>
</html>