Mail Archives: djgpp/2000/11/30/08:06:40
From: | Chris <chrisr AT es DOT co DOT nz>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Parallel port in DJGPP
|
Date: | Thu, 30 Nov 2000 19:33:16 +1300
|
Organization: | ihug ( New Zealand )
|
Lines: | 19
|
Message-ID: | <3A25F4AC.9ADC3516@es.co.nz>
|
NNTP-Posting-Host: | p41-max7.dun.ihug.co.nz
|
Mime-Version: | 1.0
|
X-Trace: | lust.ihug.co.nz 975565878 12652 203.173.237.169 (30 Nov 2000 06:31:18 GMT)
|
X-Complaints-To: | abuse AT ihug DOT co DOT nz
|
NNTP-Posting-Date: | Thu, 30 Nov 2000 06:31:18 +0000 (UTC)
|
X-Mailer: | Mozilla 4.72 [en] (Win98; I)
|
X-Accept-Language: | en
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Hi,
I'm new to C/C++ and djgpp in general. What I need to do is write some
information to the parallel port on a PC (that is to say make pin 2 high
or pin3 or pin2 and pin3 etc). Can someone give me a few tips on the
commands I need, how to implement them and the header files to include?
I imagine its something like
portout (portaddress here), (value to write to port),
In basic its just
OUT 888, (value to write out), Where 888 is decimal for 0x 378 I think
Thanks,
Chris.
- Raw text -