LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

Low Speed comms protocol codes

This feels like a really dumb question but I am stumped.

 

The example for reading measurement byte 0 from Ultrasonic sensor in "Ultrasoninc Sensor I2C Protocol" defines the data to be sent as 0x02, 0x42, R + 0x03

 

What is the significance of "R"

 

TIA

 

John Prentice 

0 Kudos
Message 1 of 2
(6,216 Views)

The significance of "R" is restart condition of i2c protocol.

 

It's necesary to switch from writing to reading data from the device, the byte next the  "R" is the device address with the R/W bit value of '1'.

 

bye.

 

 

0 Kudos
Message 2 of 2
(6,079 Views)