private Byte readByte()
{
Byte result = 0;
for (int n = 0; n < 8; n++)
{
m_clockPort.Write(true);
Thread.Sleep(5);
result = (Byte)(result << 1);
bool input = m_dataPort.Read();
result |= (Byte)((input) ? 1 : 0);
m_clockPort.Write(false);
Thread.Sleep(5);
}
return result;
}