Page 1 of 1

USB control of Digital I/O

Posted: Fri Dec 03, 2021 5:05 am
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.

Re: USB control of Digital I/O

Posted: Fri Dec 03, 2021 8:07 am
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

Re: USB control of Digital I/O

Posted: Fri Dec 03, 2021 10:04 am
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.