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?

In principle you can, just set a pointer to the hardware address with 
which you wish to 'talk'. but, imho you'd be much better off using one 
of the existing drivers to do all the grunt work for you.

> Or am I going to have to get to know c?

Yes, start off here.

ftp://ftp-svr.eng.cam.ac.uk/misc/sawtell_C.shar

reported to be still one of the best "Starting out with C" tutorials on 
the 'Net. The prose is digestable.

--
C. S.





Reply via email to