Arduino Toolkit - @device/read
- :
data =
read(dev, numbytes)
- :
data =
read(dev, numbytes, precision)
Read a specified number of bytes from a i2c or serial device object using optional precision for bytesize.
Inputs
dev - connected i2c or serial device opened using device
numbytes - number of bytes to read.
precision - Optional precision for the output data read data. Currently known precision values are uint8 (default), int8, uint16, int16
Outputs
data - data read from the device
See also: arduino, device.