112 of 323
ZBasic System Library 102 ZX Microcontroller Family Get1WireByte Type Function returning Byte Invocation Get1WireByte(pin) Parameter Method Type Description pin ByVal Byte The pin to be used for 1-Wire I/O. Discussion This function reads a byte value (LSB first) using the 1-Wire protocol. It may be used instead of a series of calls to Get1Wire() in order to read a byte at a time. To perform a 1-Wire operation, this function along with related 1-Wire routines must be used in the proper sequence. See the specifications of your 1- Wire device for more information. Resource Usage This routine uses the I/O Timer and disables interrupts for about 100µS for each bit received. Example Dim b as Byte b = Get1WireByte(12) Compatibility This routine is not available in BasicX compatibility mode. See Also Get1Wire, Get1WireData, Put1Wire, Put1WireByte, Put1WireData, Reset1Wire