Page 1 of 1

USB and QBasic

Posted: Thu Jun 12, 2003 1:53 am
by interzone
Is it possible to control a USB peripheral using QBasic ???

Re: USB and QBasic

Posted: Thu Jun 12, 2003 2:57 am
by Guest
In a word, no.

Re: USB and QBasic

Posted: Thu Jun 26, 2003 4:15 pm
by jakykong
USB was new to windows 98 for the fact it resets every ten seconds unless in use, so you can plug a piece of hardware into it and it will find it without restarting, but that also means that in qbasic, you would need to reset the variable at exactly the same time the port resets, that mkaes it sound possible but difficult, but, i am leaving out one major detail: there is an interrupt rate on a usb port that the call absolute cannot handle, so there is, sufficive to say, no technical way to do that using only qbasic, however, if you know asm, get turbo assembler and link that using this syntax in qbasic:

SHELL "tasm.exe /command "+"the single line of code here"

and you can access most everything there, but i am not 100% shure that even that will work!