I think it is working, but I am having some security issues trying to access the port (I need to test on another machine at home). The new machines we are using won't even let me access the printer port with _outp and _inp. I use userport (
http://www.writelog.com/support/lpt_port_support_on_windows_nt.htm) to grant direct access to the ports, its just not working on the current machines...
I also did this to send text to the serial port. But I cant receive text...
#include <stdio.h>
#include <stdlib.h>
void main(void)
{
int menuoption = 0;
for(;;) //forever
{
system("cls");
printf (" 1 Turn LED on \n");
printf (" 2 Turn LED off \n");
printf (" 3 Exit \n");
printf (" Select Option and RETURN \n");
scanf("%d", &menuoption);
if (menuoption == 1)
system("echo led on > com3");
if (menuoption == 2)
system("echo led off > com3");
if (menuoption == 3)
break;
}
}
The system command was quite helpful. I can control all of the outputs using this, but like I said I cannot receive text with it to read the inputs
Regards,