This block Writes to the Register ? of an IIC (Inter-Integrated Circuit) sensor connected to port ? at Address ?.
Display Settings
- The number (upper right corner) 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 writes to. You can change this number in the configuration panel at 'Address' field.
- The number (Left middle with the 'R') shows the Register this block writes to. You can change this number in the configuration panel at 'WReg' field. Some IIC sensors have only one register. In this case you need to turn off writing the WReg value so WValue will be writen to the only register. Uncheck the WriteReg field to turn off WReg. The number (Left middle with the 'R') will appear grayed out.
- The number (Left bottom with the 'V') shows the value this block writes. You can change this number in the configuration panel at 'WValue' field. (enter all values as decimal. example 64 = Hx40, 111 = Hx6F).
IIC Write 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 write to. (0 - 127)
- This plug wires the Register to write to of the IIC device.
- This plug wires the Value to write to the IIC device. (0 - 255)
- 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)