HI2COUT [newslave],location,(variable,...) (X2 parts only)
HI2COUT [newslave],(variable,...) (X2 parts only)
Location - is a variable/constant specifying a byte or word address.
Variable(s) - contains the data byte(s) to be written.
Newslave - is an optional new slave address for this (and all future) commands (X2 parts only)
Write to i2c bus when acting as an i2c master device.
Use of i2c parts is covered in more detail in the separate 'i2c Tutorial' datasheet.
This command is used to write byte data to an i2c slave. Location defines the start address of the data to be written, although it is also possible to write more than one byte sequentially (if the i2c device supports sequential writes).
Location must be a byte or word as defined within the hi2csetup command. A hi2csetup command must have been issued before this command is used. The hi2csetup commands sets the default slave address for this command. However when addressing multiple parts it may be necessary to repeatedly change the default slave address. This can be achieved via the optional [newslave] variable.