EtherMania.com.WeatherShield1.sendByte C# (CSharp) Method

sendByte() private method

private sendByte ( Byte ucData ) : void
ucData Byte
return void
        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);
            }
        }