I2C Input Block

I2C Input Block

The I2C Input block reads data from a given I2C address and register.

Inputs

  • Sim Input: Optional bytes data that will be passed through in simulation mode

Outputs

  • bytes: bytes received by the read command. The number of bytes is controlled by the Read Bytes parameter.
  • Is Valid: A boolean representing whether the data is valid as determined by the Stale Age (ms) param

Parameters

  • Address (default = 0): I2C address to read from.
  • Command (default = 0): Command to send to the device. This is typically the register number you want to read.
  • Read Bytes (default = 1): Number of bytes to read from the register.
  • Stale Age (ms) (default = 1000): Age from last valid data received when the block will output Is Valid as False