private void sendByte(Byte ucData) { for (int n = 0; n < 8; n++) { bool bit = (ucData & 0x80) != 0; m_dataPort.Write(bit); pulseClockPin(); ucData = (Byte)(ucData << 1); } }