public OneWireWriteByte ( byte byte_value ) : void | ||
byte_value | byte | byte to send |
Результат | void |
void ResetOneWireAndMatchDeviceRomAddress() { DS2482_100.OneWireReset(); DS2482_100.OneWireWriteByte(RomCommand.MATCH); foreach (var item in OneWireAddress) { DS2482_100.OneWireWriteByte(item); } }
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); }
void StartTemperatureConversion() { DS2482_100.OneWireWriteByte(FunctionCommand.CONVERT_T); Task.Delay(TimeSpan.FromSeconds(1)).Wait(); }