110 of 318
ZBasic System Library 100 ZX Microcontroller Family Get1Wire Type Function returning Byte Invocation Get1Wire(pin) Parameter Method Type Description pin ByVal Byte The pin to be used for 1-Wire I/O. Discussion This function retrieves a single bit using the 1-Wire protocol. 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. The value returned will be either 0 or 1. Resource Usage This routine uses the I/O Timer and disables interrupts for approximately 100µS. Example Dim b as Byte b = Get1Wire(12) See Also Get1WireByte, Get1WireData, Put1Wire, Put1WireByte, Put1WireData, Reset1Wire