I2C Read Number

Read one number from the specified 7-bit I2C address, in the specified number format.

pins.i2cReadNumber(0, NumberFormat.Int8LE);

Parameters

Example

The following example reads a number in big-endian, 16-bit, unsigned integer format from the 7-bit I2C address 32.

pins.i2cReadNumber(32, NumberFormat.UInt16BE);

This function is not supported in the simulator.

See also

I2C

Edit this page on GitHub