140 of 307
ZBasic System Library 130 ZX Microcontroller Family I2CStop Type Subroutine Invocation I2CStop(channel) Parameter Method Type Description channel ByVal Byte The I2C channel number (0-4). Discussion This subroutine terminates an I2C bus cycle by implementing the proper sequence of transitions on the SDA and SCL lines. This subroutine can be used in conjunction with I2CStart(), I2CGetByte() and I2CPutByte() to perform a lower level interaction with an I2C slave device. Knowledge of the I2C protocol and the specifications of the particular I2C device are required in order to use this function. If the specified I2C channel has not been properly prepared using OpenI2C(), the results are undefined. If an invalid channel number is specified, the function returns immediately without doing anything. Compatibility This subroutine is not available in BasicX compatibility mode. See Also OpenI2C, CloseI2C, I2CGetByte, I2CPutByte, I2CStart, I2CCmd