OneWireWriteByte() 공개 메소드

Send 8 bits of data to the 1-Wire bus
public OneWireWriteByte ( byte byte_value ) : void
byte_value byte byte to send
리턴 void
예제 #1
0
        void ResetOneWireAndMatchDeviceRomAddress()
        {
            DS2482_100.OneWireReset();

            DS2482_100.OneWireWriteByte(RomCommand.MATCH);

            foreach (var item in OneWireAddress)
            {
                DS2482_100.OneWireWriteByte(item);
            }
        }
예제 #2
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);
        }
예제 #3
0
        void StartTemperatureConversion()
        {
            DS2482_100.OneWireWriteByte(FunctionCommand.CONVERT_T);

            Task.Delay(TimeSpan.FromSeconds(1)).Wait();
        }