Hello! can anyone tell me what's wrong with my code? It's supposed to get input from my parallel port. I compiled it with turbo c++. I'm using windows me.
for( unsigned int i = 0; i < 256; i++ )
int x = inportb( 0x379 );
sleep( 1 );
the output i get is:
... and so on...
this happens even though I put one of the input pins into high logic( 5V ). Can anyone tell me what's wrong? thanks!