I2CSEND
Action

Send data to an I2C-device.

Syntax

I2CSEND slave, var

I2CSEND slave, var , bytes

Remarks

slave The slave address off the I2C-device.
var A byte, integer/word or number that holds the value which will be send to the I2C-device.
bytes The number of bytes to send.

This command works only with additional hardware. See appendix D.

See also
I2CRECEIVE

Example
x = 5 'assign variable to 5
Dim ax(10) As Byte
slave = &H40 'slave address of a PCF 8574 I/O IC
bytes = 1 'send 1 byte
I2CSEND slave, x 'send the value or


For a = 1 to 10
ax(a) = a 'Fill dataspace
Next
bytes
= 10
I2CSEND slave,ax(),bytes
END