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.
Display Settings
- The number shows which of your NXT’s ports are connected to the
IIC sensor. You can change this number in the configuration panel if you need to.
- The number (Left top with the 'A') shows the address this block reads from. You can change this number in the configuration panel at 'Address' field.
- The number (Left bottom with the 'R') shows the Register this block reads from. You can change this number in the configuration panel at 'Reg' field. Some IIC sensors have only one register. In this case you need to turn off writing the Reg value so Value is readed from the only register. Uncheck the WriteReg field to turn off Reg. The number (Left bottom with the 'R') will appear grayed out. (enter all values as decimal. example 64 = Hx40, 111 = Hx6F)
IIC Read block Data Hub plugs
-
This plug wires the number for which of your NXT’s ports are connected to the IIC device.
- This plug wires the address of the IIC device to read. (0 - 127)
- This plug wires the Register to read from the IIC device.
- This plug wires the WriteReg Booleen.
- This plug outputs the Error Booleen of the IIC bus.
- This plug outputs the Status 'CommLSCheckStatus' codes of the IIC bus. (0 = OK, -35 = Comm Bus Error)
- This plug outputs the RawValue from the IIC device.