User Manual
MCP Series
Brushed DC Motor Controllers
MCP Series User Manual
169
I2CIN
Syntax
i2cin {label, timeout}, [databyte1,...,databyteN]
• Label - is a label to jump to if the timeout triggers.
• Timeout - is the time in milliseconds to wait for a byte to transfer.
• DataBytes - is a list of byte sized variables that store the
values read from an attached I2C device. The only limit to the number of data bytes in one
command is determined by the device itself.
Description
The I2CIN command is used to received data back from an I2C device after an appropriate
I2COUT or I2COUTNS command has been sent. The exact format of the data to be received will
depend on the I2C device being used.
Example
See I2COUT