Hello
I'm stuck on a CS1501 compile error for this line
value = PortAccess.Out(PortNum + 1);
its supposed to change the Port from 888 to 889
Am I over complicating it?
It's late, I can no longer see the forest for all these trees.. =P
public bool inportbit() // Reads input bit from the LPT port
{
bool result;
byte value;
int value2;
value = PortAccess.Out(PortNum + 1);
value2 = value;
if (((value2 - 128) >= 0))
{
value2 = value2 - 128;
}
if (((value2 - 64) >= 0))
{
value2 = value2 - 64;
}
if (((value2 - 32) >= 0))
{
result = true;
}
else
{
result = false;
}
return result;
}