/*Sensor Interface Program*/
#include<stdio.h>
#include<conio.h>
#include<dos.h>
void main()
{
int in,ctr=0;
outportb(0x378,1);
while(!kbhit())
{
in=inportb(0x379);
in=in&0x08;
if (in==0x08)
{
outportb(0x378,0); /*turn LED on*/
delay(1000);
}
outportb(0x378,1);
}
}
/* Note: Use the BACK button of your browser to return to the previous page */