From: "Jono Greene" Newsgroups: comp.os.msdos.djgpp Subject: Parallel Port Program? Date: 3 Apr 1997 11:19:15 GMT Organization: Mikrotec Internet Services, Inc. (MISNet) Lines: 27 Message-ID: <01bc40df$f8f93ea0$6e221cce@ppro> NNTP-Posting-Host: footh14.mis.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I am trying to write a simple program that will turn on a designated pin of the parallel port, at a designated time. I have found the following code, but I can't get it to compile under DJGPP: #include #include #include void main(void) { struct time t; unsigned port = 0x378; while() { gettime(&t); if(t.ti_hour==10 && t.ti_min==05) _outp8(port,1); else _outp8(port,0); } } It is supposed to turn on pin 2 at 10:05 everyday for one minute. Can anyone please help me? I am a VERY inexperienced programmer, and the books I have don't seem to cover par ports. Thanks. -Jono Greene jonog AT eastky DOT com