This block reads from Register ? of an IIC (Inter-Integrated Circuit) sensor connected to port ? at Address ?. Enter Address and Register values in decimal form. (example 64 = Hx40, 111 = Hx6F). Output is in decimal.
You must drag at least one output data wire from this block’s data hub to another block for any information to be sent.
Plug | Data Type | Possible Range | What the Values Mean | This Plug is Ignored When... | |
![]() |
Port | Number | 1 - 4 | Selects the port the IIC device is connected to | |
![]() |
Address | Number | 2 - 254 | The address of the device to read from (even numbers only) | |
![]() |
Reg | Number | 0 - 255 | The register of the device to read from | Ignored if 'WriteReg' = True |
![]() |
WriteReg | Logic | True/False | True = write register value, False = do not write register value | |
![]() |
Yes / No | Logic | True/False | True = an error on the bus occurred, False = no error | |
![]() |
Status Out | Number | 32 - -35 | 0 = no error. 32 = Port is busy performing a transaction. -35 = Last transaction failed (possible device failure). -33 = Specified port is out of range. -32 = Specified port is not properly configured. |
|
![]() |
Raw Value | Number | 0 - 255 | value returned from the IIC device | If error, this plug is set to port number |