This function is not supported in the simulator.
Read one number from the specified 7-bit I2C address, in the specified number format.
pins.i2cReadNumber(0, NumberFormat.Int8LE);
address
: the 7-bit I2C address from which to read the number.format
: the number format. Formats include
Int8LE, UInt8LE, Int16LE, UInt16LE, Int32LE,
Int8BE, UInt8BE, Int16BE, UInt16BE, and
Int32BE.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);