OneWireReadByte() public method

Read 1 bit of data from the 1-Wire bus
public OneWireReadByte ( ) : byte
return byte
示例#1
0
        byte[] ReadScratchpad()
        {
            DS2482_100.OneWireWriteByte(FunctionCommand.READ_SCRATCHPAD);

            var scratchpadData = new byte[9];

            for (int i = 0; i < scratchpadData.Length; i++)
            {
                scratchpadData[i] = DS2482_100.OneWireReadByte();
            }

            return(scratchpadData);
        }