USB control of Digital I/O

Everything else that doesn't fall into one of the other PB categories.
rgdavidson
New User
New User
Posts: 2
Joined: Fri Dec 03, 2021 12:56 am

USB control of Digital I/O

Post by rgdavidson »

Hello, this is my first post. I'm currently using PowerBasic but plan on switching to PureBasic for its 64-bit capability and more. My question concerns USB <--> digital I/O <--> stepper motor drivers and various sensors. Does anyone know of a solution in PureBasic for controlling, say, 32 lines of digital I/O via USB? Or, are there functions or library routines that would facilitate such control? Thanks in advance.
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: USB control of Digital I/O

Post by BarryG »

Hi, don't know if the HID_Lib library can help? See link in this topic -> https://www.purebasic.fr/english/viewtopic.php?t=42203
infratec
Always Here
Always Here
Posts: 6817
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: USB control of Digital I/O

Post by infratec »

Or the manufacturer of the device use an own dll.
Then you can import the needed functions.
But for 64bit PB you need also a 64bit dll of the device.
Post Reply