I2C Write Number

Write the specified number to the specified 7-bit I2C address in the specified number format.

pins.i2cWriteNumber(0, 0, NumberFormat.Int8LE);

Parameters

Example

The following example sends the value 2055 to the 7-bit I2C address 32 in big-endian 32-bit integer format.

pins.i2cWriteNumber(32, 2055, NumberFormat.Int32BE);

This function is not supported in the simulator.

See also

I2C

Edit this page on GitHub