On Mon, Aug 19, 2002 at 11:43:08AM +1200, Nick Rout wrote: > I have built a little kit from DSE (part no K2805) that connects to the > parallel port and allows control and reading of of external circuits > (Digital/Analog conversion, etc). The instructions in the kit are for > QBASIC and the general idea is to read and write directly to/from the > parallel port adresses. eg > > OUTP &H0378,DATA > OUTP &H0379, MOREDATA etc etc. > > Naturally I want to do something in linux, preferably from a higher > level language such as python (I have never learned c and don't propose > to if i can avoid it). Forth would be fine too. > > Can you interface directly to the parallel port from such languages? Or > am I going to have to get to know c?
Oooo! I have one of those.... I even have a C program to interface with it. but It is hideously written, while I was learning C... so I'm not (ever) giving it out, unless I re-write it. Oh, one thing... QBASIC is slow. slow enough that the card could keep up with the output to the port. you need to use a liberal lashing of usleep() between your writes to the port... If you pressure me enough, I could turn this "program" into a daemon.... (might take me a week or two) Mike. -- Michael Beattie <[EMAIL PROTECTED]> "Sometimes I think that the surest sign that intellegent life exists elsewhere in the universe is that none of it has tried to contact us."
